@extends('header') @section('head') @parent @include('money_script') @include('proposals.grapesjs_header') @stop @section('content') {!! Former::open($url) ->method($method) ->onsubmit('return onFormSubmit(event)') ->id('mainForm') ->autocomplete('off') ->addClass('warn-on-exit') ->rules([ 'invoice_id' => 'required', ]) !!} @if ($proposal) {!! Former::populate($proposal) !!} @endif {!! Former::text('public_id') !!} {!! Former::text('action') !!} {!! Former::text('html') !!} {!! Former::text('css') !!}
{!! Former::select('invoice_id')->addOption('', '') ->label(trans('texts.quote')) ->addGroupClass('invoice-select') !!} {!! Former::select('proposal_template_id')->addOption('', '') ->label(trans('texts.template')) ->addGroupClass('template-select') !!}
{!! Former::textarea('private_notes') ->style('height: 100px') !!}
@if(Auth::user()->canCreateOrEdit(ENTITY_PROPOSAL, $proposal))
{!! Button::normal(trans('texts.cancel')) ->appendIcon(Icon::create('remove-circle')) ->asLinkTo(HTMLUtils::previousUrl('/proposals')) !!} @if ($proposal) {!! Button::primary(trans('texts.download')) ->withAttributes(['onclick' => 'onDownloadClick()']) ->appendIcon(Icon::create('download-alt')) !!} @endif {!! Button::success(trans("texts.save")) ->withAttributes(['id' => 'saveButton']) ->submit() ->appendIcon(Icon::create('floppy-disk')) !!} {!! Button::info(trans('texts.email')) ->withAttributes(['id' => 'emailButton', 'onclick' => 'onEmailClick()']) ->appendIcon(Icon::create('send')) !!} @if ($proposal) {!! DropdownButton::normal(trans('texts.more_actions')) ->withContents($proposal->present()->moreActions()) !!} @endif
@endif {!! Former::close() !!}
@include('partials.bulk_form', ['entityType' => ENTITY_PROPOSAL]) @include('proposals.grapesjs', ['entity' => $proposal]) @stop