From 148956a60d24759a5c963bef248a5fd37a5795d5 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 14 Oct 2016 17:14:54 +0200 Subject: [PATCH] Some code reformatting. --- resources/views/auth/register.twig | 2 +- resources/views/list/journals-tasker.twig | 4 +-- .../views/list/journals-tiny-tasker.twig | 8 ++--- resources/views/partials/menu-sidebar.twig | 10 +++--- resources/views/preferences/index.twig | 4 --- .../partials/journals-audit-tasker.twig | 5 +-- resources/views/rules/index.twig | 4 +-- resources/views/transactions/create.twig | 13 ++++--- resources/views/transactions/edit.twig | 34 ++++++++----------- 9 files changed, 39 insertions(+), 45 deletions(-) diff --git a/resources/views/auth/register.twig b/resources/views/auth/register.twig index e627e6691d..fc3f7bf51b 100644 --- a/resources/views/auth/register.twig +++ b/resources/views/auth/register.twig @@ -26,7 +26,7 @@
- + {% if showDemoWarning %}

You will receive an email from Firefly III. If your email address is incorrect, your account may not work.

diff --git a/resources/views/list/journals-tasker.twig b/resources/views/list/journals-tasker.twig index 0fc1fe5096..1af28d1a5d 100644 --- a/resources/views/list/journals-tasker.twig +++ b/resources/views/list/journals-tasker.twig @@ -59,8 +59,8 @@ {% else %} {{ transaction.description }} {% endif %} - - {{ splitJournalIndicator(transaction.journal_id) }} + + {{ splitJournalIndicator(transaction.journal_id) }} {% if transaction.transactionJournal.attachments|length > 0 %} - {{ formatAmountWithCode(transaction.transaction_amount, transaction.transaction_currency_code) }} - - {{ optionalJournalAmount(transaction.journal_id, transaction.transaction_amount, - transaction.transaction_currency_code, transaction.transaction_type_type) }} + {{ formatAmountWithCode(transaction.transaction_amount, transaction.transaction_currency_code) }} + + {{ optionalJournalAmount(transaction.journal_id, transaction.transaction_amount, + transaction.transaction_currency_code, transaction.transaction_type_type) }} {% endfor %} diff --git a/resources/views/partials/menu-sidebar.twig b/resources/views/partials/menu-sidebar.twig index 983d7e1b3e..f1b45e4a37 100644 --- a/resources/views/partials/menu-sidebar.twig +++ b/resources/views/partials/menu-sidebar.twig @@ -130,7 +130,8 @@ -
  • +
  • {{ 'options'|_ }} @@ -149,9 +150,10 @@
  • {% if Auth.user.hasRole('owner') %} -
  • - {{ 'administration'|_ }} -
  • +
  • + {{ 'administration'|_ }} +
  • {% endif %} diff --git a/resources/views/preferences/index.twig b/resources/views/preferences/index.twig index 3b5ad89453..33a8534f55 100644 --- a/resources/views/preferences/index.twig +++ b/resources/views/preferences/index.twig @@ -73,14 +73,10 @@ {{ ExpandedForm.checkbox('tj[attachments]','1', tjOptionalFields.attachments,{ 'label' : 'pref_optional_tj_attachments'|_ }) }} -
    - - -
    diff --git a/resources/views/reports/partials/journals-audit-tasker.twig b/resources/views/reports/partials/journals-audit-tasker.twig index 2367727e70..50e9ed6a00 100644 --- a/resources/views/reports/partials/journals-audit-tasker.twig +++ b/resources/views/reports/partials/journals-audit-tasker.twig @@ -43,7 +43,8 @@
    -
    + +
    {{ transaction|typeIconTransaction }} @@ -141,7 +142,7 @@ {% if transaction.transactionJournal.hasMeta('notes') %} {{ transaction.transactionJournal.getMeta('notes')|nl2br }} {% endif %} - + diff --git a/resources/views/rules/index.twig b/resources/views/rules/index.twig index 96b6597d01..5c0dee4ef9 100644 --- a/resources/views/rules/index.twig +++ b/resources/views/rules/index.twig @@ -104,10 +104,10 @@ class="btn btn-danger">
    -
    +
    diff --git a/resources/views/transactions/create.twig b/resources/views/transactions/create.twig index 63cf400f2c..afa0b4b78c 100644 --- a/resources/views/transactions/create.twig +++ b/resources/views/transactions/create.twig @@ -93,16 +93,15 @@ not optionalFields.invoice_date or not optionalFields.internal_reference or not optionalFields.notes or - not optionalFields.attachments - %} -

    {{ trans('firefly.hidden_fields_preferences', {link: route('preferences')})|raw }}

    + not optionalFields.attachments %} +

    + {{ trans('firefly.hidden_fields_preferences', {link: route('preferences')})|raw }}

    {% endif %} {% if - optionalFields.interest_date or optionalFields.book_date or optionalFields.process_date - or optionalFields.due_date or optionalFields.payment_date - or optionalFields.invoice_date - %} + optionalFields.interest_date or optionalFields.book_date or optionalFields.process_date + or optionalFields.due_date or optionalFields.payment_date + or optionalFields.invoice_date %}

    {{ 'optional_field_meta_dates'|_ }}

    diff --git a/resources/views/transactions/edit.twig b/resources/views/transactions/edit.twig index c13ff7bb31..03ed04c1ed 100644 --- a/resources/views/transactions/edit.twig +++ b/resources/views/transactions/edit.twig @@ -110,18 +110,17 @@ {% if - optionalFields.interest_date or - optionalFields.book_date or - optionalFields.process_date or - optionalFields.due_date or - optionalFields.payment_date or - optionalFields.invoice_date or - data.interest_date or - data.book_date or - data.process_date or - data.due_date or - data.payment_date - %} + optionalFields.interest_date or + optionalFields.book_date or + optionalFields.process_date or + optionalFields.due_date or + optionalFields.payment_date or + optionalFields.invoice_date or + data.interest_date or + data.book_date or + data.process_date or + data.due_date or + data.payment_date %}

    {{ 'optional_field_meta_dates'|_ }}

    @@ -163,15 +162,12 @@ {% endif %} - {% if - optionalFields.internal_reference or - optionalFields.notes or - data['interal_reference'] or - data['notes'] - - %} + optionalFields.internal_reference or + optionalFields.notes or + data['interal_reference'] or + data['notes'] %}

    {{ 'optional_field_meta_business'|_ }}