2016-11-06 08:11:43 +01:00
|
|
|
{% extends "./layout/default" %}
|
2015-06-19 20:59:14 +02:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-23 20:46:52 +01:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
|
2015-06-19 20:59:14 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2015-05-02 12:22:19 +02:00
|
|
|
{% block content %}
|
2016-08-27 09:38:58 +02:00
|
|
|
<form method="POST" action="{{ route('preferences.update') }}" accept-charset="UTF-8" class="form-horizontal" id="preferences">
|
|
|
|
<input name="_token" type="hidden" value="{{ csrf_token() }}">
|
2016-10-14 19:48:19 +02:00
|
|
|
|
2016-08-27 09:38:58 +02:00
|
|
|
<div class="row">
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# start of preferences tabs #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="nav-tabs-custom">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active"><a href="#general" data-toggle="tab" aria-expanded="true">{{ 'preferences_general'|_ }}</a></li>
|
|
|
|
<li class=""><a href="#frontpage" data-toggle="tab" aria-expanded="false">{{ 'preferences_frontpage'|_ }}</a></li>
|
|
|
|
<li class=""><a href="#layout" data-toggle="tab" aria-expanded="false">{{ 'preferences_layout'|_ }}</a></li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="general">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# general settings here #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="row">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# general settings column A #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
2017-01-10 18:25:03 +01:00
|
|
|
{# language #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="preferences-box">
|
|
|
|
<h3>{{ 'pref_languages'|_ }}</h3>
|
|
|
|
<p class="text-info">{{ 'pref_languages_help'|_ }}</p>
|
2018-03-07 20:25:58 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<select class="form-control" id="lang_holder" name="language">
|
2020-03-16 06:54:18 +01:00
|
|
|
{% for key, lang in languages %}
|
2018-03-07 20:25:58 +01:00
|
|
|
<option {% if language == key %}
|
|
|
|
selected
|
|
|
|
{% endif %} value="{{ key }}">{{ lang.name_locale }} ({{ lang.name_english }})</option>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</div></div>
|
|
|
|
|
2017-01-01 20:10:30 +01:00
|
|
|
|
|
|
|
<p class="text-info">
|
2017-04-09 07:56:46 +02:00
|
|
|
<br/>
|
2017-01-01 20:10:30 +01:00
|
|
|
{{ 'pref_languages_locale'|_ }}
|
|
|
|
</p>
|
2016-08-27 09:38:58 +02:00
|
|
|
</div>
|
2020-04-19 06:52:12 +02:00
|
|
|
|
|
|
|
{# locale #}
|
|
|
|
<div class="preferences-box">
|
|
|
|
<h3>{{ 'pref_locale'|_ }}</h3>
|
|
|
|
<p class="text-info">{{ 'pref_locale_help'|_ }}</p>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<select class="form-control" id="locale_holder" name="locale">
|
|
|
|
{% for key, loc in locales %}
|
|
|
|
<option {% if locale == key %}
|
|
|
|
selected
|
|
|
|
{% endif %} value="{{ key }}">
|
|
|
|
{% if key == 'equal' %}
|
|
|
|
{{ 'equal_to_language'|_ }}
|
|
|
|
{% else %}
|
|
|
|
{{ loc }}
|
|
|
|
{% endif %}</option>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div></div>
|
2020-04-30 06:27:01 +02:00
|
|
|
<ul class="text-warning">
|
2020-05-19 19:37:12 +02:00
|
|
|
|
2020-05-18 21:21:34 +02:00
|
|
|
{% if IS_DEMO_SITE %}<li class="text-danger">{{ 'pref_locale_no_demo'|_ }}</li>{% endif %}
|
2020-04-30 06:27:01 +02:00
|
|
|
<li>{{ 'pref_locale_no_windows'|_ }}</li>
|
|
|
|
<li>{{ 'pref_locale_no_docker'|_ }}</li>
|
|
|
|
</ul>
|
2020-04-19 06:52:12 +02:00
|
|
|
</div>
|
2016-09-04 16:21:51 +02:00
|
|
|
|
2018-01-12 18:42:48 +01:00
|
|
|
{# fiscal year #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="preferences-box">
|
|
|
|
<h3>{{ 'pref_custom_fiscal_year'|_ }}</h3>
|
|
|
|
<p class="text-info">
|
|
|
|
{{ 'pref_custom_fiscal_year_help'|_ }}
|
|
|
|
</p>
|
|
|
|
{% set isCustomFiscalYear = customFiscalYear == 1 ? true : false %}
|
|
|
|
{{ ExpandedForm.checkbox('customFiscalYear','1',isCustomFiscalYear,{ 'label' : 'pref_custom_fiscal_year_label'|_ }) }}
|
|
|
|
{{ ExpandedForm.date('fiscalYearStart',fiscalYearStart,{ 'label' : 'pref_fiscal_year_start_label'|_ }) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-04 16:21:51 +02:00
|
|
|
|
2018-01-12 18:42:48 +01:00
|
|
|
{# general settings column B #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
|
2018-01-12 18:42:48 +01:00
|
|
|
{# transaction preferences #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="preferences-box">
|
|
|
|
<h3>{{ 'pref_optional_fields_transaction'|_ }}</h3>
|
|
|
|
<p class="text-info">
|
|
|
|
{{ 'pref_optional_fields_transaction_help'|_ }}
|
|
|
|
</p>
|
|
|
|
<h4>{{ 'optional_tj_date_fields'|_ }}</h4>
|
|
|
|
{{ ExpandedForm.checkbox('tj[interest_date]','1', tjOptionalFields.interest_date,{ 'label' : 'pref_optional_tj_interest_date'|_ }) }}
|
|
|
|
{{ ExpandedForm.checkbox('tj[book_date]','1', tjOptionalFields.book_date,{ 'label' : 'pref_optional_tj_book_date'|_ }) }}
|
|
|
|
{{ ExpandedForm.checkbox('tj[process_date]','1', tjOptionalFields.process_date,{ 'label' : 'pref_optional_tj_process_date'|_ }) }}
|
|
|
|
{{ ExpandedForm.checkbox('tj[due_date]','1', tjOptionalFields.due_date,{ 'label' : 'pref_optional_tj_due_date'|_ }) }}
|
|
|
|
{{ ExpandedForm.checkbox('tj[payment_date]','1', tjOptionalFields.payment_date,{ 'label' : 'pref_optional_tj_payment_date'|_ }) }}
|
|
|
|
{{ ExpandedForm.checkbox('tj[invoice_date]','1', tjOptionalFields.invoice_date,{ 'label' : 'pref_optional_tj_invoice_date'|_ }) }}
|
|
|
|
|
|
|
|
<h4>{{ 'optional_tj_business_fields'|_ }}</h4>
|
|
|
|
{{ ExpandedForm.checkbox('tj[internal_reference]','1', tjOptionalFields.internal_reference,{ 'label' : 'pref_optional_tj_internal_reference'|_ }) }}
|
|
|
|
{{ ExpandedForm.checkbox('tj[notes]','1', tjOptionalFields.notes,{ 'label' : 'pref_optional_tj_notes'|_ }) }}
|
|
|
|
|
|
|
|
<h4>{{ 'optional_tj_attachment_fields'|_ }}</h4>
|
|
|
|
{{ ExpandedForm.checkbox('tj[attachments]','1', tjOptionalFields.attachments,{ 'label' : 'pref_optional_tj_attachments'|_ }) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-27 09:38:58 +02:00
|
|
|
</div>
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="tab-pane" id="frontpage">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# frontpage settings here #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="row">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# frontpage settings column a #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
<div class="preferences-box">
|
|
|
|
<h3>{{ 'pref_home_screen_accounts'|_ }}</h3>
|
|
|
|
<p class="text-info">{{ 'pref_home_screen_accounts_help'|_ }}</p>
|
2020-03-13 15:47:26 +01:00
|
|
|
{% for type, accounts in groupedAccounts %}
|
|
|
|
<strong>{{ type }}</strong>
|
|
|
|
{% for id, name in accounts %}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2020-03-13 15:47:26 +01:00
|
|
|
{% if id in frontPageAccounts.data or frontPageAccounts.data|length == 0 %}
|
|
|
|
<input type="checkbox" name="frontPageAccounts[]" value="{{ id }}"
|
|
|
|
checked> {{ name }}
|
2016-10-14 19:48:19 +02:00
|
|
|
{% else %}
|
|
|
|
<input type="checkbox" name="frontPageAccounts[]"
|
2020-03-13 15:47:26 +01:00
|
|
|
value="{{ id }}"> {{ name }}
|
2016-10-14 19:48:19 +02:00
|
|
|
{% endif %}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-03-13 15:47:26 +01:00
|
|
|
{% endfor %}
|
2016-10-14 19:48:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-12 18:42:48 +01:00
|
|
|
{# frontpage settings column b #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
2016-08-27 03:50:35 +02:00
|
|
|
</div>
|
2016-02-08 22:28:24 +01:00
|
|
|
</div>
|
2016-10-14 19:48:19 +02:00
|
|
|
</div>
|
|
|
|
<div class="tab-pane" id="layout">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# layout settings here #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="row">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# layout settings column A #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# view range #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="preferences-box">
|
|
|
|
<h3>{{ 'pref_view_range'|_ }}</h3>
|
|
|
|
<p class="text-info">{{ 'pref_view_range_help'|_ }}</p>
|
|
|
|
|
|
|
|
<div class="radio">
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="viewRange"
|
|
|
|
value="1D" {% if viewRange == '1D' %} checked {% endif %}>
|
|
|
|
{{ 'pref_1D'|_ }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="radio">
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="viewRange"
|
|
|
|
value="1W" {% if viewRange == '1W' %} checked {% endif %}>
|
|
|
|
{{ 'pref_1W'|_ }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="radio">
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="viewRange"
|
|
|
|
value="1M" {% if viewRange == '1M' %} checked {% endif %}>
|
|
|
|
{{ 'pref_1M'|_ }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="radio">
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="viewRange"
|
|
|
|
value="3M" {% if viewRange == '3M' %} checked {% endif %}>
|
|
|
|
{{ 'pref_3M'|_ }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="radio">
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="viewRange"
|
|
|
|
value="6M" {% if viewRange == '6M' %} checked {% endif %}>
|
|
|
|
{{ 'pref_6M'|_ }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="radio">
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="viewRange"
|
|
|
|
value="1Y" {% if viewRange == '1Y' %} checked {% endif %}>
|
|
|
|
{{ 'pref_1Y'|_ }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2016-08-27 09:38:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-01-12 18:42:48 +01:00
|
|
|
{# layout settings column B #}
|
2016-10-14 19:48:19 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
<div class="preferences-box">
|
2017-12-21 21:18:30 +01:00
|
|
|
<h3>{{ 'list_page_size_title'|_ }}</h3>
|
|
|
|
<p class="text-info">{{ 'list_page_size_help'|_ }}</p>
|
|
|
|
{{ ExpandedForm.integer('listPageSize',listPageSize,{'label' : 'list_page_size_label'|_}) }}
|
2016-10-14 19:48:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-27 09:38:58 +02:00
|
|
|
</div>
|
2016-03-03 20:45:27 +01:00
|
|
|
</div>
|
2016-02-08 22:28:24 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-27 09:38:58 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<button type="submit" class="btn btn-success btn-lg">{{ 'pref_save_settings'|_ }}</button>
|
|
|
|
</div>
|
2015-06-22 17:55:37 +02:00
|
|
|
</div>
|
2015-05-02 12:22:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-27 09:38:58 +02:00
|
|
|
</form>
|
2016-03-07 20:46:05 +01:00
|
|
|
{% endblock %}
|
2017-01-20 08:18:52 +01:00
|
|
|
{% block scripts %}
|
2020-01-04 11:16:14 +01:00
|
|
|
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
|
|
|
|
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
|
|
|
|
<script type="text/javascript" src="v1/js/ff/preferences/index.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
|
2017-01-20 08:18:52 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block styles %}
|
2018-11-02 19:59:29 +01:00
|
|
|
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
|
|
|
|
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
|
2017-02-05 19:51:58 +01:00
|
|
|
{% endblock %}
|