@extends('header') @section('head') @parent @stop @section('content') {!! Former::open($url) ->method($method) ->id('mainForm') ->rules([ 'name' => 'required', 'proposal_category_id' => 'required', ]) !!} @if ($snippet) {!! Former::populate($snippet) !!} @endif {!! Former::text('public_id') !!} {!! Former::text('html') !!} {!! Former::text('css') !!}
{!! Former::text('name') !!} {!! Former::select('proposal_category_id')->addOption('', '') ->label(trans('texts.category')) ->addGroupClass('category-select') !!}
{!! Former::textarea('private_notes') ->style('height:98px') !!}
{!! Button::normal(trans('texts.cancel')) ->appendIcon(Icon::create('remove-circle')) ->asLinkTo(HTMLUtils::previousUrl('/proposals')) !!} {!! Button::success(trans("texts.save")) ->withAttributes(array('id' => 'saveButton', 'onclick' => 'onSaveClick()')) ->appendIcon(Icon::create('floppy-disk')) !!}
{!! Former::close() !!}
@stop