Proposals
This commit is contained in:
parent
76e5001826
commit
cfb2db17b9
3 changed files with 15 additions and 10 deletions
|
|
@ -66,6 +66,7 @@ class ProposalTemplateController extends BaseController
|
|||
$customTemplates = ProposalTemplate::scope()->orderBy('name')->get();
|
||||
$defaultTemplates = ProposalTemplate::whereNull('account_id')->orderBy('public_id')->get();
|
||||
|
||||
$options = [];
|
||||
$customLabel = trans('texts.custom');
|
||||
$defaultLabel = trans('texts.default');
|
||||
|
||||
|
|
|
|||
|
|
@ -59,9 +59,11 @@
|
|||
->appendIcon(Icon::create('remove-circle'))
|
||||
->asLinkTo(HTMLUtils::previousUrl('/proposals')) !!}
|
||||
|
||||
{!! Button::primary(trans('texts.download'))
|
||||
->withAttributes(['onclick' => 'onDownloadClick()'])
|
||||
->appendIcon(Icon::create('download-alt')) !!}
|
||||
@if ($proposal)
|
||||
{!! Button::primary(trans('texts.download'))
|
||||
->withAttributes(['onclick' => 'onDownloadClick()'])
|
||||
->appendIcon(Icon::create('download-alt')) !!}
|
||||
@endif
|
||||
|
||||
{!! Button::success(trans("texts.save"))
|
||||
->withAttributes(['id' => 'saveButton'])
|
||||
|
|
|
|||
|
|
@ -46,13 +46,15 @@
|
|||
|
||||
<center class="buttons">
|
||||
|
||||
{!! Former::select()
|
||||
->style('display:inline;width:170px;background-color:white !important')
|
||||
->placeholder(trans('texts.load_template'))
|
||||
->onchange('onTemplateSelectChange()')
|
||||
->addClass('template-select')
|
||||
->options($templateOptions)
|
||||
->raw() !!}
|
||||
@if (count($templateOptions))
|
||||
{!! Former::select()
|
||||
->style('display:inline;width:170px;background-color:white !important')
|
||||
->placeholder(trans('texts.load_template'))
|
||||
->onchange('onTemplateSelectChange()')
|
||||
->addClass('template-select')
|
||||
->options($templateOptions)
|
||||
->raw() !!}
|
||||
@endif
|
||||
|
||||
@include('proposals.grapesjs_help')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue