mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Proposals
This commit is contained in:
parent
76e5001826
commit
cfb2db17b9
@ -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');
|
||||||
|
|
||||||
|
@ -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'])
|
||||||
|
@ -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')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user