1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

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();
$defaultTemplates = ProposalTemplate::whereNull('account_id')->orderBy('public_id')->get();
$options = [];
$customLabel = trans('texts.custom');
$defaultLabel = trans('texts.default');

View File

@ -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'])

View File

@ -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')