mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Layout updates and extensions. Found a problem I need closures for. Yay! [skip ci]
This commit is contained in:
parent
2680cd8b7a
commit
b0ddc04a0d
@ -34,6 +34,10 @@ return [
|
|||||||
'weekly' => [
|
'weekly' => [
|
||||||
'group_date' => 'Y-W',
|
'group_date' => 'Y-W',
|
||||||
'display_date' => '\W\e\e\k W, Y'
|
'display_date' => '\W\e\e\k W, Y'
|
||||||
|
],
|
||||||
|
'quarterly' => [
|
||||||
|
'group_date' => 'Y-m',
|
||||||
|
'display_date' => '\T\O\D\O \C\L\O\S\U\R\E m-Y'
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
@ -14,7 +14,7 @@ class AccountController extends \BaseController
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ARI $repository
|
* @param ARI $repository
|
||||||
* @param AI $accounts
|
* @param AI $accounts
|
||||||
*/
|
*/
|
||||||
public function __construct(ARI $repository, AI $accounts)
|
public function __construct(ARI $repository, AI $accounts)
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ class AccountController extends \BaseController
|
|||||||
{
|
{
|
||||||
$show = $this->_accounts->show($account, 40);
|
$show = $this->_accounts->show($account, 40);
|
||||||
|
|
||||||
return View::make('accounts.show')->with('account', $account)->with('show',$show);
|
return View::make('accounts.show')->with('account', $account)->with('show', $show);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,8 +13,10 @@ class BudgetController extends BaseController
|
|||||||
protected $_budgets;
|
protected $_budgets;
|
||||||
protected $_repository;
|
protected $_repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param BRI $budgets
|
* @param BI $budgets
|
||||||
|
* @param BRI $repository
|
||||||
*/
|
*/
|
||||||
public function __construct(BI $budgets, BRI $repository)
|
public function __construct(BI $budgets, BRI $repository)
|
||||||
{
|
{
|
||||||
@ -60,12 +62,52 @@ class BudgetController extends BaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function edit(Budget $budget)
|
||||||
|
{
|
||||||
|
return View::make('budgets.edit')->with('budget', $budget);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update()
|
||||||
|
{
|
||||||
|
$budget = $this->_repository->update(Input::all());
|
||||||
|
Session::flash('success', 'Budget "' . $budget->name . '" updated.');
|
||||||
|
|
||||||
|
if (Input::get('from') == 'date') {
|
||||||
|
return Redirect::route('budgets.index');
|
||||||
|
} else {
|
||||||
|
return Redirect::route('budgets.index.budget');
|
||||||
|
}
|
||||||
|
|
||||||
|
return Redirect::route('budgets.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function delete(Budget $budget)
|
||||||
|
{
|
||||||
|
return View::make('budgets.delete')->with('budget', $budget);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function destroy()
|
||||||
|
{
|
||||||
|
$result = $this->_repository->destroy(Input::get('id'));
|
||||||
|
if ($result === true) {
|
||||||
|
Session::flash('success', 'The budget was deleted.');
|
||||||
|
if (Input::get('from') == 'date') {
|
||||||
|
return Redirect::route('budgets.index');
|
||||||
|
} else {
|
||||||
|
return Redirect::route('budgets.index.budget');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Session::flash('error', 'Could not delete the budget. Check the logs to be sure.');
|
||||||
|
}
|
||||||
|
return Redirect::route('budgets.index');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO actual view, actual content.
|
* @param Budget $budget
|
||||||
*
|
*
|
||||||
* @param $budgetId
|
* @return int
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
*/
|
||||||
public function show(Budget $budget)
|
public function show(Budget $budget)
|
||||||
{
|
{
|
||||||
|
@ -21,11 +21,11 @@ class ChartController extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ARI $accounts
|
* @param ARI $accounts
|
||||||
* @param TJRI $journals
|
* @param TJRI $journals
|
||||||
* @param PHI $preferences
|
* @param PHI $preferences
|
||||||
* @param tk $toolkit
|
* @param tk $toolkit
|
||||||
* @param BRI $budgets
|
* @param BRI $budgets
|
||||||
*/
|
*/
|
||||||
public function __construct(ARI $accounts, TJRI $journals, PHI $preferences, tk $toolkit, BRI $budgets)
|
public function __construct(ARI $accounts, TJRI $journals, PHI $preferences, tk $toolkit, BRI $budgets)
|
||||||
{
|
{
|
||||||
|
@ -17,11 +17,11 @@ class HomeController extends BaseController
|
|||||||
protected $_tk;
|
protected $_tk;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ARI $accounts
|
* @param ARI $accounts
|
||||||
* @param PHI $preferences
|
* @param PHI $preferences
|
||||||
* @param TJRI $journal
|
* @param TJRI $journal
|
||||||
* @param Toolkit $toolkit
|
* @param Toolkit $toolkit
|
||||||
* @param BRI $budgets
|
* @param BRI $budgets
|
||||||
*/
|
*/
|
||||||
public function __construct(ARI $accounts, PHI $preferences, TJRI $journal, Toolkit $toolkit, BRI $budgets)
|
public function __construct(ARI $accounts, PHI $preferences, TJRI $journal, Toolkit $toolkit, BRI $budgets)
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,7 @@ class LimitController extends BaseController
|
|||||||
{
|
{
|
||||||
$periods = \Config::get('firefly.periods_to_text');
|
$periods = \Config::get('firefly.periods_to_text');
|
||||||
$prefilled = [
|
$prefilled = [
|
||||||
'startdate' => Input::get('startdate') ? : date('Y-m-d'),
|
'startdate' => Input::get('startdate') ? : date('Y-m-d'),
|
||||||
'repeat_freq' => Input::get('repeat_freq') ? : 'monthly'
|
'repeat_freq' => Input::get('repeat_freq') ? : 'monthly'
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -54,11 +54,11 @@ class LimitController extends BaseController
|
|||||||
$budgets = $this->_budgets->getAsSelectList();
|
$budgets = $this->_budgets->getAsSelectList();
|
||||||
|
|
||||||
$periods = [
|
$periods = [
|
||||||
'weekly' => 'A week',
|
'weekly' => 'A week',
|
||||||
'monthly' => 'A month',
|
'monthly' => 'A month',
|
||||||
'quarterly' => 'A quarter',
|
'quarterly' => 'A quarter',
|
||||||
'half-year' => 'Six months',
|
'half-year' => 'Six months',
|
||||||
'yearly' => 'A year',
|
'yearly' => 'A year',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ class TransactionController extends BaseController
|
|||||||
protected $_journal;
|
protected $_journal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ARI $accounts
|
* @param ARI $accounts
|
||||||
* @param Bud $budgets
|
* @param Bud $budgets
|
||||||
* @param Cat $categories
|
* @param Cat $categories
|
||||||
* @param TJRI $journal
|
* @param TJRI $journal
|
||||||
*/
|
*/
|
||||||
public function __construct(ARI $accounts, Bud $budgets, Cat $categories, TJRI $journal)
|
public function __construct(ARI $accounts, Bud $budgets, Cat $categories, TJRI $journal)
|
||||||
@ -167,8 +167,8 @@ class TransactionController extends BaseController
|
|||||||
|
|
||||||
// data to properly display form:
|
// data to properly display form:
|
||||||
$data = [
|
$data = [
|
||||||
'date' => $journal->date->format('Y-m-d'),
|
'date' => $journal->date->format('Y-m-d'),
|
||||||
'category' => '',
|
'category' => '',
|
||||||
'budget_id' => 0
|
'budget_id' => 0
|
||||||
];
|
];
|
||||||
$category = $journal->categories()->first();
|
$category = $journal->categories()->first();
|
||||||
|
@ -42,7 +42,7 @@ class UserController extends BaseController
|
|||||||
{
|
{
|
||||||
$rememberMe = Input::get('remember_me') == '1';
|
$rememberMe = Input::get('remember_me') == '1';
|
||||||
$data = [
|
$data = [
|
||||||
'email' => Input::get('email'),
|
'email' => Input::get('email'),
|
||||||
'password' => Input::get('password')
|
'password' => Input::get('password')
|
||||||
];
|
];
|
||||||
if (Auth::attempt($data, $rememberMe)) {
|
if (Auth::attempt($data, $rememberMe)) {
|
||||||
|
@ -21,6 +21,12 @@ interface BudgetRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function get();
|
public function get();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $data
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function update($data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $data
|
* @param $data
|
||||||
*
|
*
|
||||||
@ -28,6 +34,12 @@ interface BudgetRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function store($data);
|
public function store($data);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $data
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function destroy($data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $budgetId
|
* @param $budgetId
|
||||||
*
|
*
|
||||||
|
@ -29,7 +29,7 @@ class EloquentBudgetRepository implements BudgetRepositoryInterface
|
|||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
$set = \Auth::user()->budgets()->with(
|
$set = \Auth::user()->budgets()->with(
|
||||||
['limits' => function ($q) {
|
['limits' => function ($q) {
|
||||||
$q->orderBy('limits.startdate', 'ASC');
|
$q->orderBy('limits.startdate', 'ASC');
|
||||||
}, 'limits.limitrepetitions' => function ($q) {
|
}, 'limits.limitrepetitions' => function ($q) {
|
||||||
$q->orderBy('limit_repetitions.startdate', 'ASC');
|
$q->orderBy('limit_repetitions.startdate', 'ASC');
|
||||||
@ -46,6 +46,31 @@ class EloquentBudgetRepository implements BudgetRepositoryInterface
|
|||||||
return $set;
|
return $set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $data
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function update($data) {
|
||||||
|
$budget = $this->find($data['id']);
|
||||||
|
if ($budget) {
|
||||||
|
// update account accordingly:
|
||||||
|
$budget->name = $data['name'];
|
||||||
|
if ($budget->validate()) {
|
||||||
|
$budget->save();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $budget;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function destroy($budgetId) {
|
||||||
|
$budget = $this->find($budgetId);
|
||||||
|
if($budget) {
|
||||||
|
$budget->delete();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array|mixed
|
* @return array|mixed
|
||||||
*/
|
*/
|
||||||
@ -72,7 +97,7 @@ class EloquentBudgetRepository implements BudgetRepositoryInterface
|
|||||||
{
|
{
|
||||||
|
|
||||||
$set = \Auth::user()->budgets()->with(
|
$set = \Auth::user()->budgets()->with(
|
||||||
['limits' => function ($q) use ($date) {
|
['limits' => function ($q) use ($date) {
|
||||||
$q->orderBy('limits.startdate', 'ASC');
|
$q->orderBy('limits.startdate', 'ASC');
|
||||||
}, 'limits.limitrepetitions' => function ($q) use ($date) {
|
}, 'limits.limitrepetitions' => function ($q) use ($date) {
|
||||||
$q->orderBy('limit_repetitions.startdate', 'ASC');
|
$q->orderBy('limit_repetitions.startdate', 'ASC');
|
||||||
@ -156,7 +181,7 @@ class EloquentBudgetRepository implements BudgetRepositoryInterface
|
|||||||
$limit->save();
|
$limit->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($budget->validate()) {
|
if ($budget->validate()) {
|
||||||
$budget->save();
|
$budget->save();
|
||||||
}
|
}
|
||||||
return $budget;
|
return $budget;
|
||||||
|
@ -54,12 +54,12 @@ Route::group(['before' => 'auth'], function () {
|
|||||||
Route::get('/accounts/{account}/delete', ['uses' => 'AccountController@delete', 'as' => 'accounts.delete']);
|
Route::get('/accounts/{account}/delete', ['uses' => 'AccountController@delete', 'as' => 'accounts.delete']);
|
||||||
|
|
||||||
// budget controller:
|
// budget controller:
|
||||||
Route::get('/budget/create',['uses' => 'BudgetController@create', 'as' => 'budgets.create']);
|
Route::get('/budgets/create',['uses' => 'BudgetController@create', 'as' => 'budgets.create']);
|
||||||
Route::get('/budgets',['uses' => 'BudgetController@indexByDate','as' => 'budgets.index']);
|
Route::get('/budgets',['uses' => 'BudgetController@indexByDate','as' => 'budgets.index']);
|
||||||
Route::get('/budgets/budget',['uses' => 'BudgetController@indexByBudget','as' => 'budgets.index.budget']);
|
Route::get('/budgets/budget',['uses' => 'BudgetController@indexByBudget','as' => 'budgets.index.budget']);
|
||||||
Route::get('/budget/show/{budget}',['uses' => 'BudgetController@show', 'as' => 'budgets.show']);
|
Route::get('/budgets/show/{budget}',['uses' => 'BudgetController@show', 'as' => 'budgets.show']);
|
||||||
Route::get('/budget/edit/{budget}',['uses' => 'BudgetController@edit', 'as' => 'budgets.edit']);
|
Route::get('/budgets/edit/{budget}',['uses' => 'BudgetController@edit', 'as' => 'budgets.edit']);
|
||||||
Route::get('/budget/delete/{budget}',['uses' => 'BudgetController@delete', 'as' => 'budgets.delete']);
|
Route::get('/budgets/delete/{budget}',['uses' => 'BudgetController@delete', 'as' => 'budgets.delete']);
|
||||||
|
|
||||||
// limit controller:
|
// limit controller:
|
||||||
Route::get('/budgets/limits/create/{id?}',['uses' => 'LimitController@create','as' => 'budgets.limits.create']);
|
Route::get('/budgets/limits/create/{id?}',['uses' => 'LimitController@create','as' => 'budgets.limits.create']);
|
||||||
@ -89,7 +89,9 @@ Route::group(['before' => 'csrf|auth'], function () {
|
|||||||
Route::post('/profile/change-password', ['uses' => 'ProfileController@postChangePassword']);
|
Route::post('/profile/change-password', ['uses' => 'ProfileController@postChangePassword']);
|
||||||
|
|
||||||
// budget controller:
|
// budget controller:
|
||||||
Route::post('/budget/store',['uses' => 'BudgetController@store', 'as' => 'budgets.store']);
|
Route::post('/budgets/store',['uses' => 'BudgetController@store', 'as' => 'budgets.store']);
|
||||||
|
Route::post('/budgets/update', ['uses' => 'BudgetController@update', 'as' => 'budgets.update']);
|
||||||
|
Route::post('/budgets/destroy', ['uses' => 'BudgetController@destroy', 'as' => 'budgets.destroy']);
|
||||||
|
|
||||||
// migration controller
|
// migration controller
|
||||||
Route::post('/migrate', ['uses' => 'MigrationController@postIndex']);
|
Route::post('/migrate', ['uses' => 'MigrationController@postIndex']);
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{Form::model($account, ['class' => 'form-horizontal','url' => route('accounts.destroy')])}}
|
{{Form::open(['class' => 'form-horizontal','url' => route('accounts.destroy')])}}
|
||||||
{{Form::hidden('id',$account->id)}}
|
{{Form::hidden('id',$account->id)}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
@if($account->transactions()->count() > 0)
|
@if($account->transactions()->count() > 0)
|
||||||
<p class="text-info">
|
<p class="text-info">
|
||||||
|
|
||||||
|
51
app/views/budgets/delete.blade.php
Normal file
51
app/views/budgets/delete.blade.php
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
@extends('layouts.default')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
|
<h1>Firefly
|
||||||
|
<small>Delete "{{{$budget->name}}}"</small>
|
||||||
|
</h1>
|
||||||
|
<p class="lead">
|
||||||
|
Remember that deleting something is permanent.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{Form::open(['class' => 'form-horizontal','url' => route('budgets.destroy')])}}
|
||||||
|
{{Form::hidden('id',$budget->id)}}
|
||||||
|
{{Form::hidden('from',e(Input::get('from')))}}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
|
@if($budget->transactionjournals()->count() > 0)
|
||||||
|
<p class="text-info">
|
||||||
|
|
||||||
|
Account "{{{$budget->name}}}" still has {{$budget->transactionjournals()->count()}} transaction(s) associated to it.
|
||||||
|
These will NOT be deleted but will lose their connection to the budget.
|
||||||
|
</p>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<p class="text-danger">
|
||||||
|
Press "Delete permanently" If you are sure you want to delete "{{{$budget->name}}}".
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
|
||||||
|
@if(Input::get('from') == 'date')
|
||||||
|
<a href="{{route('budgets.index')}}" class="btn-default btn">Cancel</a>
|
||||||
|
@else
|
||||||
|
<a href="{{route('budgets.index.budget')}}" class="btn-default btn">Cancel</a>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{Form::close()}}
|
||||||
|
@stop
|
51
app/views/budgets/edit.blade.php
Normal file
51
app/views/budgets/edit.blade.php
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
@extends('layouts.default')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
|
<h1>Firefly
|
||||||
|
<small>Edit budget "{{{$budget->name}}}"</small>
|
||||||
|
</h1>
|
||||||
|
<p class="lead">Use budgets to organize and limit your expenses.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{Form::open(['class' => 'form-horizontal','url' => route('budgets.update')])}}
|
||||||
|
|
||||||
|
{{Form::hidden('id',$budget->id)}}
|
||||||
|
{{Form::hidden('from',e(Input::get('from')))}}
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
|
<h4>Mandatory fields</h4>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name" class="col-sm-4 control-label">Name</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input type="text" name="name" class="form-control" id="name" value="{{Input::old('name') ?: $budget->name}}" placeholder="Name">
|
||||||
|
@if($errors->has('name'))
|
||||||
|
<p class="text-danger">{{$errors->first('name')}}</p>
|
||||||
|
@else
|
||||||
|
<span class="help-block">For example: groceries, bills</span>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-offset-4 col-sm-8">
|
||||||
|
<button type="submit" class="btn btn-default btn-success">Update the budget</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{Form::close()}}
|
||||||
|
|
||||||
|
|
||||||
|
@stop
|
@ -74,11 +74,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<small>
|
<small>
|
||||||
@if($limit->repeat_freq == 'monthly')
|
CLOSURE TODO
|
||||||
{{$rep->startdate->format('F Y')}}
|
|
||||||
@else
|
|
||||||
NO FORMAT
|
|
||||||
@endif
|
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
@if($limit->repeats == 1)
|
@if($limit->repeats == 1)
|
||||||
@ -104,8 +100,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group btn-group-sm">
|
<div class="btn-group btn-group-sm">
|
||||||
<a href="#" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></a>
|
<a href="{{route('budgets.edit',$budget->id)}}?from=budget" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></a>
|
||||||
<a href="#" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
<a href="{{route('budgets.delete',$budget->id)}}?from=budget" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -48,8 +48,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a title="Edit budget {{{$repetition->limit->budget->name}}}" href="{{route('budgets.edit',$repetition->limit->budget->id)}}" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
|
<a title="Edit budget {{{$repetition->limit->budget->name}}}" href="{{route('budgets.edit',$repetition->limit->budget->id)}}?from=date" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
|
||||||
<a title="Delete budget {{{$repetition->limit->budget->name}}}" href="{{route('budgets.delete',$repetition->limit->budget->id)}}" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
<a title="Delete budget {{{$repetition->limit->budget->name}}}" href="{{route('budgets.delete',$repetition->limit->budget->id)}}?from=date" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
6
ide-helper.bat
Normal file
6
ide-helper.bat
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
composer update
|
||||||
|
php artisan clear-compiled --env=local
|
||||||
|
php artisan ide-helper:generate --env=local
|
||||||
|
php artisan ide-helper:models --env=local --write
|
||||||
|
php artisan optimize --env=local
|
||||||
|
php artisan dump-autoload --env=local
|
Loading…
Reference in New Issue
Block a user