Proposals

This commit is contained in:
Hillel Coren 2018-02-13 12:32:53 +02:00
parent 76e5001826
commit cfb2db17b9
3 changed files with 15 additions and 10 deletions

View File

@ -66,6 +66,7 @@ class ProposalTemplateController extends BaseController
$customTemplates = ProposalTemplate::scope()->orderBy('name')->get(); $customTemplates = ProposalTemplate::scope()->orderBy('name')->get();
$defaultTemplates = ProposalTemplate::whereNull('account_id')->orderBy('public_id')->get(); $defaultTemplates = ProposalTemplate::whereNull('account_id')->orderBy('public_id')->get();
$options = [];
$customLabel = trans('texts.custom'); $customLabel = trans('texts.custom');
$defaultLabel = trans('texts.default'); $defaultLabel = trans('texts.default');

View File

@ -59,9 +59,11 @@
->appendIcon(Icon::create('remove-circle')) ->appendIcon(Icon::create('remove-circle'))
->asLinkTo(HTMLUtils::previousUrl('/proposals')) !!} ->asLinkTo(HTMLUtils::previousUrl('/proposals')) !!}
{!! Button::primary(trans('texts.download')) @if ($proposal)
->withAttributes(['onclick' => 'onDownloadClick()']) {!! Button::primary(trans('texts.download'))
->appendIcon(Icon::create('download-alt')) !!} ->withAttributes(['onclick' => 'onDownloadClick()'])
->appendIcon(Icon::create('download-alt')) !!}
@endif
{!! Button::success(trans("texts.save")) {!! Button::success(trans("texts.save"))
->withAttributes(['id' => 'saveButton']) ->withAttributes(['id' => 'saveButton'])

View File

@ -46,13 +46,15 @@
<center class="buttons"> <center class="buttons">
{!! Former::select() @if (count($templateOptions))
->style('display:inline;width:170px;background-color:white !important') {!! Former::select()
->placeholder(trans('texts.load_template')) ->style('display:inline;width:170px;background-color:white !important')
->onchange('onTemplateSelectChange()') ->placeholder(trans('texts.load_template'))
->addClass('template-select') ->onchange('onTemplateSelectChange()')
->options($templateOptions) ->addClass('template-select')
->raw() !!} ->options($templateOptions)
->raw() !!}
@endif
@include('proposals.grapesjs_help') @include('proposals.grapesjs_help')