mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Proposals
This commit is contained in:
parent
c9933331ec
commit
3a32d03bea
@ -84,6 +84,7 @@ class ProposalController extends BaseController
|
||||
|
||||
$data = array_merge($this->getViewmodel(), [
|
||||
'proposal' => $proposal,
|
||||
'entity' => $proposal,
|
||||
'method' => 'PUT',
|
||||
'url' => 'proposals/' . $proposal->public_id,
|
||||
'title' => trans('texts.edit_proposal'),
|
||||
|
@ -80,6 +80,7 @@ class ProposalSnippetController extends BaseController
|
||||
$data = [
|
||||
'account' => auth()->user()->account,
|
||||
'snippet' => $proposalSnippet,
|
||||
'entity' => $proposalSnippet,
|
||||
'method' => 'PUT',
|
||||
'url' => 'proposals/snippets/' . $proposalSnippet->public_id,
|
||||
'title' => trans('texts.edit_proposal_snippet'),
|
||||
|
@ -117,6 +117,7 @@ class ProposalTemplateController extends BaseController
|
||||
|
||||
$data = array_merge($this->getViewmodel(), [
|
||||
'template' => $template,
|
||||
'entity' => $clone ? false : $template,
|
||||
'method' => $method,
|
||||
'url' => $url,
|
||||
'title' => trans('texts.edit_proposal_template'),
|
||||
|
@ -33,7 +33,7 @@ class ProposalSnippet extends EntityModel
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
//protected $presenter = 'App\Ninja\Presenters\ProjectPresenter';
|
||||
protected $presenter = 'App\Ninja\Presenters\ProposalSnippetPresenter';
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
|
@ -31,7 +31,7 @@ class ProposalTemplate extends EntityModel
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
//protected $presenter = 'App\Ninja\Presenters\ProjectPresenter';
|
||||
protected $presenter = 'App\Ninja\Presenters\ProposalTemplatePresenter';
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
|
14
app/Ninja/Presenters/ProposalSnippetPresenter.php
Normal file
14
app/Ninja/Presenters/ProposalSnippetPresenter.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Ninja\Presenters;
|
||||
|
||||
use Utils;
|
||||
use DropdownButton;
|
||||
|
||||
/**
|
||||
* Class ProposalPresenter.
|
||||
*/
|
||||
class ProposalSnippetPresenter extends EntityPresenter
|
||||
{
|
||||
|
||||
}
|
14
app/Ninja/Presenters/ProposalTemplatePresenter.php
Normal file
14
app/Ninja/Presenters/ProposalTemplatePresenter.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Ninja\Presenters;
|
||||
|
||||
use Utils;
|
||||
use DropdownButton;
|
||||
|
||||
/**
|
||||
* Class ProposalPresenter.
|
||||
*/
|
||||
class ProposalTemplatePresenter extends EntityPresenter
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user