diff --git a/app/controllers/PiggybankController.php b/app/controllers/PiggybankController.php index 0d4aa96c83..e47370cd1e 100644 --- a/app/controllers/PiggybankController.php +++ b/app/controllers/PiggybankController.php @@ -103,8 +103,9 @@ class PiggybankController extends BaseController /** * */ - public function show() + public function show(Piggybank $piggyBank) { + return View::make('piggybanks.show')->with('piggyBank',$piggyBank); } /** diff --git a/app/views/partials/date_nav.blade.php b/app/views/partials/date_nav.blade.php index 008e4e9f6c..9670c6ac48 100644 --- a/app/views/partials/date_nav.blade.php +++ b/app/views/partials/date_nav.blade.php @@ -3,12 +3,12 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -48,7 +48,5 @@
- -
\ No newline at end of file diff --git a/app/views/piggybanks/index.blade.php b/app/views/piggybanks/index.blade.php index c6e3986845..9843885d3b 100644 --- a/app/views/piggybanks/index.blade.php +++ b/app/views/piggybanks/index.blade.php @@ -47,7 +47,7 @@

Piggy banks

@foreach($piggybanks as $piggybank) -

{{{$piggybank->name}}} {{mf($piggybank->target)}}

+

{{{$piggybank->name}}} {{mf($piggybank->target)}}

@if(!is_null($piggybank->targetdate))

Target date: {{$piggybank->targetdate->format('jS F Y')}} diff --git a/app/views/piggybanks/show.blade.php b/app/views/piggybanks/show.blade.php new file mode 100644 index 0000000000..d6ac2ef848 --- /dev/null +++ b/app/views/piggybanks/show.blade.php @@ -0,0 +1,19 @@ +@extends('layouts.default') +@section('content') +

+
+

Firefly + Piggy bank "{{{$piggyBank->name}}}" +

+

Set targets and save money

+

+ Saving money is hard. Piggy banks allow you to group money + from an account together. If you also set a target (and a target date) you + can save towards your goals. +

+
+
+@stop + +@section('scripts') +@stop \ No newline at end of file