firefly-iii/resources/twig/preferences/index.twig

130 lines
5.3 KiB
Twig
Raw Normal View History

2015-05-02 05:22:19 -05:00
{% extends "./layout/default.twig" %}
2015-06-19 13:59:14 -05:00
{% block breadcrumbs %}
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
{% endblock %}
2015-05-02 05:22:19 -05:00
{% block content %}
{{ Form.open({'class' : 'form-horizontal','id' : 'preferences'}) }}
2015-06-22 10:55:37 -05:00
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Home screen accounts</h3>
</div>
<div class="box-body">
<p class="text-info">Which accounts should be displayed on the home page?</p>
{% for account in accounts %}
<div class="form-group">
<div class="col-sm-10">
<div class="checkbox">
<label>
{% if account.id in frontPageAccounts.data or frontPageAccounts.data|length == 0 %}
<input type="checkbox" name="frontPageAccounts[]" value="{{ account.id }}" checked> {{ account.name }}
{% else %}
<input type="checkbox" name="frontPageAccounts[]" value="{{ account.id }}"> {{ account.name }}
{% endif %}
</label>
</div>
2015-05-02 05:22:19 -05:00
</div>
</div>
2015-06-22 10:55:37 -05:00
{% endfor %}
</div>
2015-05-02 05:22:19 -05:00
</div>
2015-06-22 10:55:37 -05:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Budget settings</h3>
</div>
<div class="box-body">
<p class="text-info">
What's the maximum amount of money a budget envelope may contain?
</p>
{{ ExpandedForm.amount('budgetMaximum',budgetMaximum,{'label' : 'Budget maximum'}) }}
</div>
2015-05-02 05:22:19 -05:00
</div>
2015-06-22 10:55:37 -05:00
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">View range</h3>
2015-05-02 05:22:19 -05:00
</div>
2015-06-22 10:55:37 -05:00
<div class="box-body">
<p class="text-info">Some charts are automatically grouped in periods. What period would you prefer?</p>
2015-05-02 05:22:19 -05:00
2015-06-22 10:55:37 -05:00
<div class="radio">
<label>
<input type="radio" name="viewRange" value="1D" {% if viewRange == '1D' %} checked {% endif %}>
One day
</label>
</div>
2015-05-02 05:22:19 -05:00
2015-06-22 10:55:37 -05:00
<div class="radio">
<label>
<input type="radio" name="viewRange" value="1W" {% if viewRange == '1W' %} checked {% endif %}>
One week
</label>
</div>
2015-05-02 05:22:19 -05:00
2015-06-22 10:55:37 -05:00
<div class="radio">
<label>
<input type="radio" name="viewRange" value="1M" {% if viewRange == '1M' %} checked {% endif %}>
One month
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="viewRange" value="3M" {% if viewRange == '3M' %} checked {% endif %}>
Three months
</label>
</div>
2015-05-02 05:22:19 -05:00
<div class="radio">
<label>
2015-06-22 10:55:37 -05:00
<input type="radio" name="viewRange" value="6M" {% if viewRange == '6M' %} checked {% endif %}>
Six months
</label>
</div>
2015-06-22 10:55:37 -05:00
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Languages</h3>
</div>
<div class="box-body">
<p class="text-info">Firefly III supports several languages. Which one do you prefer?</p>
{% for key, lang in Config.get('firefly.lang') %}
<div class="radio">
<label>
<input type="radio" name="language" value="{{ key }}"
{% if language == key %}
checked
{% endif %}
/>
{{ lang }}
</label>
</div>
{% endfor %}
2015-06-22 10:55:37 -05:00
</div>
</div>
</div>
</div>
2015-06-22 10:55:37 -05:00
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="form-group">
<div class="col-sm-12">
<button type="submit" class="btn btn-success btn-lg">Save settings</button>
</div>
2015-05-02 05:22:19 -05:00
</div>
</div>
</div>
2015-06-22 10:55:37 -05:00
<!-- form close -->
{{ Form.close|raw }}
2015-05-02 05:22:19 -05:00
{% endblock %}