These are the limit fixes, previous was category.

This commit is contained in:
James Cole 2014-09-15 17:57:46 +02:00
parent 406ae25162
commit 9e88d7a60d
4 changed files with 8 additions and 14 deletions

View File

@ -22,6 +22,9 @@ class LimitController extends BaseController
{ {
$this->_budgets = $budgets; $this->_budgets = $budgets;
$this->_limits = $limits; $this->_limits = $limits;
View::share('title','Envelopes');
View::share('mainTitleIcon', 'fa-tasks');
} }
/** /**
@ -42,7 +45,7 @@ class LimitController extends BaseController
return View::make('limits.create')->with('budgets', $budgets)->with( return View::make('limits.create')->with('budgets', $budgets)->with(
'periods', $periods 'periods', $periods
)->with('prefilled', $prefilled); )->with('prefilled', $prefilled)->with('subTitle','New envelope');
} }
/** /**
@ -52,7 +55,7 @@ class LimitController extends BaseController
*/ */
public function delete(\Limit $limit) public function delete(\Limit $limit)
{ {
return View::make('limits.delete')->with('limit', $limit); return View::make('limits.delete')->with('limit', $limit)->with('subTitle','Delete envelope');
} }
/** /**
@ -89,7 +92,7 @@ class LimitController extends BaseController
return View::make('limits.edit')->with('limit', $limit)->with('budgets', $budgets)->with( return View::make('limits.edit')->with('limit', $limit)->with('budgets', $budgets)->with(
'periods', $periods 'periods', $periods
); )->with('subTitle','Edit envelope');
} }
/** /**

View File

@ -2,9 +2,6 @@
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col-lg-12 col-md-12 col-sm-12"> <div class="col-lg-12 col-md-12 col-sm-12">
<h1>Firefly
<small>Create an envelope for a budget</small>
</h1>
<p class="text-info"> <p class="text-info">
Firefly uses an "<a href="http://en.wikipedia.org/wiki/Envelope_System" class="text-success">envelope Firefly uses an "<a href="http://en.wikipedia.org/wiki/Envelope_System" class="text-success">envelope
system</a>" for your budgets, which means that for each period of time (for example a month) a virtual system</a>" for your budgets, which means that for each period of time (for example a month) a virtual

View File

@ -2,9 +2,6 @@
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col-lg-12 col-md-12 col-sm-12"> <div class="col-lg-12 col-md-12 col-sm-12">
<h1>Firefly
<small>Delete envelope</small>
</h1>
<p class="lead">Remember that deleting something is permanent.</p> <p class="lead">Remember that deleting something is permanent.</p>
</div> </div>
@ -34,7 +31,7 @@
<div class="col-sm-8"> <div class="col-sm-8">
<input type="submit" name="submit" value="Remove envelope" class="btn btn-danger" /> <input type="submit" name="submit" value="Remove envelope" class="btn btn-danger" />
@if(Input::get('from') == 'date') @if(Input::get('from') == 'date')
<a href="{{route('budgets.index')}}" class="btn-default btn">Cancel</a> <a href="{{route('budgets.index.date')}}" class="btn-default btn">Cancel</a>
@else @else
<a href="{{route('budgets.index.budget')}}" class="btn-default btn">Cancel</a> <a href="{{route('budgets.index.budget')}}" class="btn-default btn">Cancel</a>
@endif @endif

View File

@ -2,9 +2,6 @@
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col-lg-12 col-md-12 col-sm-12"> <div class="col-lg-12 col-md-12 col-sm-12">
<h1>Firefly
<small>Edit envelope</small>
</h1>
<p class="text-info"> <p class="text-info">
Firefly uses an "<a href="http://en.wikipedia.org/wiki/Envelope_System" class="text-success">envelope Firefly uses an "<a href="http://en.wikipedia.org/wiki/Envelope_System" class="text-success">envelope
system</a>" for your budgets, which means that for each period of time (for example a month) a virtual system</a>" for your budgets, which means that for each period of time (for example a month) a virtual