diff --git a/app/routes.php b/app/routes.php index 77da0dc4e6..103c63eaca 100644 --- a/app/routes.php +++ b/app/routes.php @@ -37,7 +37,7 @@ Route::bind('limit', function($value, $route) where('limits.id', $value)-> leftJoin('components','components.id','=','limits.component_id')-> where('components.class','Budget')-> - where('components.user_id',Auth::user()->id)->first(); + where('components.user_id',Auth::user()->id)->first(['limits.*']); } return null; }); diff --git a/app/views/limits/delete.blade.php b/app/views/limits/delete.blade.php index 73e3852579..7f63c93b6d 100644 --- a/app/views/limits/delete.blade.php +++ b/app/views/limits/delete.blade.php @@ -6,13 +6,7 @@ Delete envelope

Remember that deleting something is permanent.

-

- This form allows you to delete the envelope for budget {{{$limit->budget->name}}}, with a content of - {{mf($limit->amount,false)}} - @if($limit->repeats == 0) - in {{$limit->limitrepetitions[0]->startdate->format('M Y')}} ({{$limit->repeat_freq}}). - @endif -

+ @@ -20,7 +14,15 @@ {{Form::open(['class' => 'form-horizontal','url' => route('budgets.limits.destroy',$limit->id)])}}
-
+
+

 

+

+ This form allows you to delete the envelope for budget {{{$limit->budget->name}}}, with a content of + {{mf($limit->amount,false)}} + @if($limit->repeats == 0) + in {{$limit->limitrepetitions[0]->startdate->format('M Y')}} ({{$limit->repeat_freq}}). + @endif +

Destroying an envelope does not remove any transactions from the budget.

@@ -38,8 +40,23 @@ @endif
-
+ @if($limit->repeats == 1) +
+

Auto repeating

+

+ This envelope is set to repeat itself; creating a new period whenever the previous period + has passed. If you change this envelope, you'll also change the following (automatically created) + envelopes. + {{$limit->limitrepetitions()->count() }} +

+ +
+ @endif diff --git a/app/views/limits/edit.blade.php b/app/views/limits/edit.blade.php index e68734bee1..fdeb1a359d 100644 --- a/app/views/limits/edit.blade.php +++ b/app/views/limits/edit.blade.php @@ -94,6 +94,22 @@ + @if($limit->repeats == 1) +
+

Auto repeating

+

+ This envelope is set to repeat itself; creating a new period whenever the previous period + has passed. If you change this envelope, you'll also change the following (automatically created) + envelopes. + {{$limit->limitrepetitions()->count() }} +

+ +
+ @endif {{Form::close()}}