firefly-iii/app/views/preferences/index.blade.php

106 lines
4.0 KiB
PHP
Raw Normal View History

@extends('layouts.default')
@section('content')
2014-11-28 09:09:18 -06:00
{{ Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName()) }}
2014-07-14 23:58:08 -05:00
<!-- form -->
2014-12-24 15:39:23 -06:00
{{Form::open(['class' => 'form-horizontal','id' => 'preferences'])}}
2014-07-14 23:58:08 -05:00
<div class="row">
2014-11-15 02:23:07 -06:00
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-credit-card fa-fw"></i> Home screen accounts
</div>
<div class="panel-body">
<p class="text-info">Which accounts should be displayed on the home page?</p>
@foreach($accounts as $account)
<div class="form-group">
<div class="col-sm-10">
<div class="checkbox">
<label>
2014-12-24 14:20:47 -06:00
@if(in_array($account->id,$frontPageAccounts->data) || count($frontPageAccounts->data) == 0)
<input type="checkbox" name="frontPageAccounts[]" value="{{$account->id}}" checked> {{{$account->name}}}
2014-11-15 02:23:07 -06:00
@else
2014-12-24 14:20:47 -06:00
<input type="checkbox" name="frontPageAccounts[]" value="{{$account->id}}"> {{{$account->name}}}
2014-11-15 02:23:07 -06:00
@endif
</label>
</div>
</div>
</div>
2014-11-15 02:23:07 -06:00
@endforeach
</div>
2014-07-14 23:58:08 -05:00
</div>
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-credit-card fa-fw"></i> Budget settings
</div>
<div class="panel-body">
<p class="text-info">
What's the maximum amount of money a budget envelope may contain?
</p>
{{Form::ffAmount('budgetMaximum',$budgetMaximum,['label' => 'Budget maximum'])}}
</div>
</div>
2014-11-15 02:23:07 -06:00
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-clock-o fa-fw"></i> Home view range
</div>
<div class="panel-body">
<p class="text-info">By default, Firefly will show you one month of data.</p>
<div class="radio">
<label>
<input type="radio" name="viewRange" value="1D" @if($viewRange == '1D') checked @endif>
One day
</label>
</div>
2014-07-14 23:58:08 -05:00
2014-11-15 02:23:07 -06:00
<div class="radio">
<label>
<input type="radio" name="viewRange" value="1W" @if($viewRange == '1W') checked @endif>
One week
</label>
</div>
2014-07-14 23:58:08 -05:00
2014-11-15 02:23:07 -06:00
<div class="radio">
<label>
<input type="radio" name="viewRange" value="1M" @if($viewRange == '1M') checked @endif>
One month
</label>
</div>
2014-07-14 23:58:08 -05:00
2014-11-15 02:23:07 -06:00
<div class="radio">
<label>
<input type="radio" name="viewRange" value="3M" @if($viewRange == '3M') checked @endif>
Three months
</label>
</div>
2014-07-14 23:58:08 -05:00
2014-11-15 02:23:07 -06:00
<div class="radio">
<label>
<input type="radio" name="viewRange" value="6M" @if($viewRange == '6M') checked @endif>
Six months
</label>
</div>
</div>
2014-07-14 23:58:08 -05:00
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="form-group">
<div class="col-sm-12">
2014-11-15 02:23:07 -06:00
<button type="submit" class="btn btn-success btn-lg">Save settings</button>
</div>
2014-07-14 23:58:08 -05:00
</div>
</div>
</div>
2014-07-14 23:58:08 -05:00
<!-- form close -->
{{Form::close()}}
@stop
@section('scripts')
2015-01-01 23:16:49 -06:00
@stop