@extends('header') @section('head') @parent @include('proposals.grapesjs_header') @stop @section('content') {!! Former::open($url) ->method($method) ->onsubmit('return onFormSubmit(event)') ->addClass('warn-on-exit') ->rules([ 'name' => 'required', ]) !!} @if ($template) {!! Former::populate($template) !!} @endif {!! Former::text('public_id') !!} {!! Former::text('html') !!} {!! Former::text('css') !!}
{!! Former::text('name') !!}
{!! Former::textarea('private_notes') !!}
@include('proposals.grapesjs_help') {!! Button::normal(trans('texts.cancel')) ->appendIcon(Icon::create('remove-circle')) ->asLinkTo(HTMLUtils::previousUrl('/proposals')) !!} {!! Button::success(trans('texts.save')) ->submit() ->appendIcon(Icon::create('floppy-disk')) !!} @if ($template) {!! Button::primary(trans('texts.new_proposal')) ->appendIcon(Icon::create('plus-sign')) ->asLinkTo(url('/proposals/create/0/' . $template->public_id)) !!} @endif
{!! Former::close() !!}
@include('proposals.grapesjs', ['entity' => $template]) @stop