From 356dd2c6cd616d05a4933145c60bac744de16487 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 2 May 2015 10:37:16 +0200 Subject: [PATCH] Creat / edit / index [skip ci] --- resources/twig/currency/create.twig | 44 ++++++++++++++++++++++++++ resources/twig/currency/edit.twig | 45 ++++++++++++++++++++++++++ resources/twig/currency/index.twig | 49 +++++++++++++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 resources/twig/currency/create.twig create mode 100644 resources/twig/currency/edit.twig create mode 100644 resources/twig/currency/index.twig diff --git a/resources/twig/currency/create.twig b/resources/twig/currency/create.twig new file mode 100644 index 0000000000..810826f79a --- /dev/null +++ b/resources/twig/currency/create.twig @@ -0,0 +1,44 @@ +{% extends "./layout/default.twig" %} +{% block content %} + {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }} + {{ Form.open({'class' : 'form-horizontal','id' : 'store','route' : 'currency.store'}) }} +
+
+
+
+ Mandatory fields +
+
+ {{ ExpandedForm.text('name',null,{'maxlength' : 48}) }} + {{ ExpandedForm.text('symbol',null,{'maxlength': 8}) }} + {{ ExpandedForm.text('code',null,{'maxlength' : 3}) }} +
+
+ +
+ +
+ + +
+
+ Options +
+
+ {{ ExpandedForm.optionsList('create','currency') }} +
+
+ +
+
+
+
+

+ +

+
+
+ +{% endblock %} diff --git a/resources/twig/currency/edit.twig b/resources/twig/currency/edit.twig new file mode 100644 index 0000000000..8d356fcf4f --- /dev/null +++ b/resources/twig/currency/edit.twig @@ -0,0 +1,45 @@ +{% extends "./layout/default.twig" %} +{% block content %} + {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, currency) }} + {{ Form.model(currency, {'class' : 'form-horizontal','id' : 'update','url' : route('currency.update',currency.id)}) }} + + +
+
+
+
+ Mandatory fields +
+
+ {{ ExpandedForm.text('name',null,{'maxlength' : 48}) }} + {{ ExpandedForm.text('symbol',null,{'maxlength' : 8}) }} + {{ ExpandedForm.text('code',null,{'maxlength' : 3}) }} +
+
+
+ +
+ + +
+
+ Options +
+
+ {{ ExpandedForm.optionsList('update','currency') }} +
+
+ +
+
+
+
+

+ +

+
+
+ +{% endblock %} \ No newline at end of file diff --git a/resources/twig/currency/index.twig b/resources/twig/currency/index.twig new file mode 100644 index 0000000000..77e928bee6 --- /dev/null +++ b/resources/twig/currency/index.twig @@ -0,0 +1,49 @@ +{% extends "./layout/default.twig" %} +{% block content %} + {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }} + +
+
+
+
+ Currencies +
+
+

+ Firefly III supports various currencies which you can set and enable here. +

+
    + {% if currencies|length > 0 %} + + + + + + {% for currency in currencies %} + + + + + + + {% endfor %} +
     Currency
    +
    + + +
    +
    {{ currency.name }} ({{ currency.code }}) ({{ currency.symbol|raw }}) + {% if currency.id == defaultCurrency.id %} + default + {% else %} + make default + {% endif %} +
    + {% endif %} +

    Add another currency

    + +
+
+
+
+{% endblock %} \ No newline at end of file