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

70 lines
3.4 KiB
Twig
Raw Normal View History

2016-11-06 01:11:43 -06:00
{% extends "./layout/default" %}
2015-06-19 13:59:14 -05:00
{% block breadcrumbs %}
{{ Breadcrumbs.render(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 %}
2017-12-28 02:53:21 -06:00
<div style="padding-left:8px;">
{{ currencies.render|raw }}
</div>
2015-06-21 08:09:10 -05:00
<table class="table table-hover">
<thead>
<tr>
2017-10-20 01:00:13 -05:00
{% if isOwner %}
2017-12-28 02:53:21 -06:00
<th>&nbsp;</th>
2017-10-20 01:00:13 -05:00
{% endif %}
<th>{{ 'currency'|_ }}</th>
<th>{{ 'number_of_decimals'|_ }}</th>
<th>&nbsp;</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>
2017-10-20 01:00:13 -05:00
{% if isOwner %}
2017-12-28 02:53:21 -06:00
<td>
<div class="btn-group btn-group-xs">
<a class="btn btn-default" href="{{ route('currencies.edit',currency.id) }}"><i class="fa fa-fw fa-pencil"></i></a>
<a class="btn btn-danger" href="{{ route('currencies.delete',currency.id) }}"><i class="fa fa-fw fa-trash"></i></a>
</div>
</td>
2017-10-20 01:00:13 -05:00
{% endif %}
2015-06-21 08:09:10 -05:00
<td>{{ currency.name }} ({{ currency.code }}) ({{ currency.symbol|raw }})</td>
<td>{{ currency.decimal_places }}</td>
2017-07-22 15:56:21 -05:00
<td class="defaultCurrency">
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 %}
<a class="btn btn-info btn-xs"
2016-12-05 13:01:01 -06:00
href="{{ route('currencies.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>
2017-12-28 02:53:21 -06:00
<div style="padding-left:8px;">
{{ currencies.render|raw }}
</div>
2015-06-21 08:09:10 -05:00
{% endif %}
</div>
<div class="box-footer">
2016-12-05 13:01:01 -06:00
<a class="btn btn-success pull-right" href="{{ route('currencies.create') }}">{{ 'create_currency'|_ }}</a>
2015-05-02 03:37:16 -05:00
</div>
</div>
</div>
</div>
{% endblock %}