firefly-iii/resources/views/currency/index.twig

56 lines
2.6 KiB
Twig
Raw Normal View History

2015-05-02 03:37:16 -05:00
{% extends "./layout/default.twig" %}
2015-06-19 13:59:14 -05:00
{% block breadcrumbs %}
2015-05-02 03:37:16 -05:00
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
2015-06-19 13:59:14 -05:00
{% endblock %}
2015-05-02 03:37:16 -05:00
2015-06-19 13:59:14 -05:00
{% block content %}
2015-05-02 03:37:16 -05:00
<div class="row">
<div class="col-lg-12 col-sm-12 col-md-12">
2015-06-20 00:29:25 -05:00
<div class="box">
<div class="box-header with-border">
2016-01-23 02:10:22 -06:00
<h3 class="box-title">{{ 'currencies'|_ }}</h3>
2015-05-02 03:37:16 -05:00
</div>
2015-06-20 00:29:25 -05:00
<div class="box-body">
2015-05-02 03:37:16 -05:00
<p class="text-info">
2016-01-23 02:10:22 -06:00
{{ 'currencies_intro'|_ }}
2015-05-02 03:37:16 -05:00
</p>
2015-06-21 08:09:10 -05:00
{% if currencies|length > 0 %}
<table class="table table-hover">
<thead>
<tr>
<th>&nbsp;</th>
2016-01-23 02:10:22 -06:00
<th colspan="2">{{ 'currency'|_ }}</th>
2015-06-21 08:09:10 -05:00
</tr>
</thead>
<tbody>
{% for currency in currencies %}
2015-05-02 03:37:16 -05:00
<tr>
2015-06-21 08:09:10 -05:00
<td>
<div class="btn-group btn-group-xs">
<a class="btn btn-default" href="{{ route('currency.edit',currency.id) }}"><i class="fa fa-fw fa-pencil"></i></a>
<a class="btn btn-danger" href="{{ route('currency.delete',currency.id) }}"><i class="fa fa-fw fa-trash"></i></a>
</div>
</td>
<td>{{ currency.name }} ({{ currency.code }}) ({{ currency.symbol|raw }})</td>
<td>
2015-05-02 03:37:16 -05:00
{% if currency.id == defaultCurrency.id %}
2016-01-23 02:10:22 -06:00
<span class="label label-success">{{ 'default_currency'|_ }}</span>
2015-05-02 03:37:16 -05:00
{% else %}
2016-01-23 02:10:22 -06:00
<a class="btn btn-info btn-xs" href="{{ route('currency.default',currency.id) }}">{{ 'make_default_currency'|_ }}</a>
2015-05-02 03:37:16 -05:00
{% endif %}
2015-06-21 08:09:10 -05:00
</td>
</tr>
2015-05-02 03:37:16 -05:00
{% endfor %}
2015-06-21 08:09:10 -05:00
</tbody>
</table>
{% endif %}
</div>
<div class="box-footer">
2016-01-23 02:10:22 -06:00
<a class="btn btn-success pull-right" href="{{ route('currency.create') }}">{{ 'create_currency'|_ }}</a>
2015-05-02 03:37:16 -05:00
</div>
</div>
</div>
</div>
{% endblock %}