Make it easier to switch between v1/v2 layout.

This commit is contained in:
James Cole 2021-01-31 20:31:40 +01:00
parent 2dd2d0ef58
commit fdd9d81701
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
29 changed files with 41 additions and 42 deletions

View File

@ -2,7 +2,7 @@
<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
<div class="col-sm-8">
{{ Form.input('number', name, value, options) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -26,7 +26,7 @@
</div>
{% include 'form/feedback' %}
{% include 'v1.form.feedback' %}
</div>
<!-- Going to put in this value: {{ defaultCurrency.id }} -->
<input type="hidden" name="amount_currency_id_{{ name }}" value="{{ defaultCurrency.id }}" data-backup="{{ defaultCurrency.id }}"/>

View File

@ -17,8 +17,8 @@
</div>
{% endfor %}
{% endfor %}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -26,7 +26,7 @@
</div>
{% include 'form/feedback' %}
{% include 'v1.form.feedback' %}
</div>
<input type="hidden" name="amount_currency_id_{{ name }}" value="{{ defaultCurrency.id }}"/>

View File

@ -13,7 +13,7 @@
{{ Form.checkbox(name, value, options.checked, options) }}
</label>
</div>
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -8,7 +8,7 @@
</div>
{{ Form.input('date', name, value, options) }}
</div>
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,7 +3,7 @@
<div class="col-sm-8">
{{ Form.file(name, options) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,7 +3,7 @@
<div class="col-sm-8">
{{ Form.input('number', name, value, options) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -39,7 +39,7 @@
{# has location set? #}
<input type="hidden" name="{{ name }}_has_location" value="{{ options.locations[name].has_location|default('false') }}"/>
{% include 'form/feedback' %}
{% include 'v1.form.feedback' %}
{% endif %}
</div>
</div>

View File

@ -6,6 +6,6 @@
<span class="input-group-addon non-selectable-currency-symbol">{{ selectedCurrency.symbol }}</span>
{{ Form.input('number', name, value, options) }}
</div>
{% include 'form/feedback' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,7 +3,7 @@
<div class="col-sm-8">
{{ Form.input('number', name, value, options) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,7 +3,7 @@
<div class="col-sm-8">
{{ Form.input('text', name, value, options) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,7 +3,7 @@
<div class="col-sm-8">
{{ Form.input('password', name, value, options) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -6,7 +6,7 @@
{{ Form.input('number', name, value, options) }}
<div class="input-group-addon">%</div>
</div>
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,8 +3,8 @@
<div class="col-sm-8">
{{ Form.select(name, list, selected , options ) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,6 +3,6 @@
<div class="col-sm-8">
{{ Form.input('text', name, value, options) }}
{% include 'form/feedback' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,7 +3,7 @@
<div class="col-sm-8">
{{ Form.input('text', name, value, options) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -3,7 +3,7 @@
<div class="col-sm-8">
{{ Form.textarea(name, value, options) }}
{% include 'form/help' %}
{% include 'form/feedback' %}
{% include 'v1.form.help' %}
{% include 'v1.form.feedback' %}
</div>
</div>

View File

@ -122,7 +122,7 @@
<div class="row no-print">
<div class="col-lg-12">
<p class="well">
{% include ['demo.' ~ Route.getCurrentRoute.getName, 'demo.no-demo-text'] %}
{% include ['v1.demo.' ~ Route.getCurrentRoute.getName, 'v1.demo.no-demo-text'] %}
</p>
</div>
</div>

View File

@ -9,7 +9,7 @@
<div class="modal-body">
{% set hideSource = true %}
{% set hideBudget = true %}
{% include 'popup/list/journals' %}
{% include 'v1.popup.list.journals' %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>

View File

@ -8,7 +8,7 @@
</div>
<div class="modal-body">
{% set hideBudget = true %}
{% include 'popup/list/journals' %}
{% include 'v1.popup.list.journals' %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>

View File

@ -7,7 +7,7 @@
</div>
<div class="modal-body">
{% set hideCategory = true %}
{% include 'popup/list/journals' %}
{% include 'v1.popup.list.journals' %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>

View File

@ -7,7 +7,7 @@
</div>
<div class="modal-body">
{% set hideDestination = true %}
{% include 'popup/list/journals' %}
{% include 'v1.popup.list.journals' %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>

View File

@ -10,7 +10,7 @@
{% set hideSource = true %}
{% set accountPerspective = account %}
{% set inverseAmount = true %}
{% include 'popup/list/journals' %}
{% include 'v1.popup.list.journals' %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>

View File

@ -61,7 +61,7 @@
balance: formatAmountByAccount(account, auditData[account.id].dayBeforeBalance)
})|raw }}
</p>
{% include 'reports.partials.journals-audit' with {'journals': auditData[account.id].journals,'account':account} %}
{% include 'v1.reports.partials.journals-audit' with {'journals': auditData[account.id].journals,'account':account} %}
<p style="padding:10px;">

View File

@ -140,7 +140,6 @@
</div>
</div>
</div>
{#{% include 'reports/partials/bills' %}#}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ FF_VERSION }}" type="text/css" media="all"/>

View File

@ -179,7 +179,7 @@
</div>
{% endfor %}
{% include '/rules/partials/test-trigger-modal' %}
{% include 'v1.rules.partials.test-trigger-modal' %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">

View File

@ -90,7 +90,7 @@
</div>
</div>
{% include '/rules/partials/test-trigger-modal' %}
{% include 'v1.rules.partials.test-trigger-modal' %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">

View File

@ -72,7 +72,7 @@
</div>
</div>
{% include '/rules/partials/test-trigger-modal' %}
{% include 'v1.rules.partials.test-trigger-modal' %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">