1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Proposals

This commit is contained in:
Hillel Coren 2018-02-12 15:03:12 +02:00
parent c9933331ec
commit 3a32d03bea
7 changed files with 33 additions and 2 deletions

View File

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

View File

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

View File

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

View File

@ -33,7 +33,7 @@ class ProposalSnippet extends EntityModel
/**
* @var string
*/
//protected $presenter = 'App\Ninja\Presenters\ProjectPresenter';
protected $presenter = 'App\Ninja\Presenters\ProposalSnippetPresenter';
/**
* @return mixed

View File

@ -31,7 +31,7 @@ class ProposalTemplate extends EntityModel
/**
* @var string
*/
//protected $presenter = 'App\Ninja\Presenters\ProjectPresenter';
protected $presenter = 'App\Ninja\Presenters\ProposalTemplatePresenter';
/**
* @return mixed

View File

@ -0,0 +1,14 @@
<?php
namespace App\Ninja\Presenters;
use Utils;
use DropdownButton;
/**
* Class ProposalPresenter.
*/
class ProposalSnippetPresenter extends EntityPresenter
{
}

View File

@ -0,0 +1,14 @@
<?php
namespace App\Ninja\Presenters;
use Utils;
use DropdownButton;
/**
* Class ProposalPresenter.
*/
class ProposalTemplatePresenter extends EntityPresenter
{
}