@extends('header') @section('head') @parent @include('proposals.grapesjs_header') @stop @section('content') {!! Former::open($url) ->method($method) ->id('mainForm') ->rules([ 'name' => '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::select('icon') ->addGroupClass('icon-select') ->addOption('', '') ->options($icons) !!}
{!! Former::textarea('private_notes') ->style('height:160px') !!}
@include('proposals.grapesjs_help') {!! 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() !!}
@include('proposals.grapesjs', ['entity' => $snippet]) @stop