Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
fix: expand form elements with ID
James Cole2e4f07d058b9
diff --git a/resources/views/form/amount-no-currency.twig b/resources/views/form/amount-no-currency.twigindex 5713afa140..c2cc386e14 100644--- a/resources/views/form/amount-no-currency.twig+++ b/resources/views/form/amount-no-currency.twig@@ -1,7 +1,7 @@<div class="{{ classes }}" id="{{ name }}_holder"><label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label><div class="col-sm-8">- {{ Html.input('number', name, value).class('form-control').attribute('step','any').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}+ {{ Html.input('number', name, value).id(options.id).class('form-control').attribute('step','any').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}{% include 'form.help' %}{% include 'form.feedback' %}</div>diff --git a/resources/views/form/checkbox.twig b/resources/views/form/checkbox.twigindex 9c65dbbfe1..f89529a100 100644--- a/resources/views/form/checkbox.twig+++ b/resources/views/form/checkbox.twig@@ -10,7 +10,7 @@<div class="{% if options.small %}col-sm-4{% else %}col-sm-8{% endif %}"><div class="checkbox"><label>- {{ Html.checkbox(name, options.checked, value) }}+ {{ Html.checkbox(name, options.checked, value).id(options.id) }}</label></div>{% include 'form.help' %}diff --git a/resources/views/form/date.twig b/resources/views/form/date.twigindex 7bd80eb22e..3995d05dbb 100644--- a/resources/views/form/date.twig+++ b/resources/views/form/date.twig@@ -6,7 +6,7 @@<div class="input-group-addon"><span class="fa fa-calendar"></span></div>- {{ Html.input('date', name, value).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false') }}+ {{ Html.input('date', name, value).id(options.id).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false') }}</div>{% include 'form.help' %}{% include 'form.feedback' %}diff --git a/resources/views/form/file.twig b/resources/views/form/file.twigindex 7f656e5c19..b45a4606bb 100644--- a/resources/views/form/file.twig+++ b/resources/views/form/file.twig@@ -2,7 +2,7 @@<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label><div class="col-sm-8">- {{ Html.input('file',name).attribute('multiple','multiple').class('form-control') }}+ {{ Html.input('file',name).id(options.id).attribute('multiple','multiple').class('form-control') }}{% include 'form.help' %}{% include 'form.feedback' %}</div>diff --git a/resources/views/form/integer.twig b/resources/views/form/integer.twigindex b7306b50de..924e339d6c 100644--- a/resources/views/form/integer.twig+++ b/resources/views/form/integer.twig@@ -2,7 +2,7 @@<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label><div class="col-sm-8">- {{ Html.input('number', name, value).attribute('step',options.step).attribute('autocomplete','off').attribute('spellcheck', 'false').class('form-control').attribute('placeholder',options.placeholder) }}+ {{ Html.input('number', name, value).id(options.id).attribute('step',options.step).attribute('autocomplete','off').attribute('spellcheck', 'false').class('form-control').attribute('placeholder',options.placeholder) }}{% include 'form.help' %}{% include 'form.feedback' %}</div>diff --git a/resources/views/form/object_group.twig b/resources/views/form/object_group.twigindex ab6e13c124..e1a9e3e341 100644--- a/resources/views/form/object_group.twig+++ b/resources/views/form/object_group.twig@@ -2,7 +2,7 @@<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label><div class="col-sm-8">- {{ Html.input('text', name, value).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}+ {{ Html.input('text', name, value).id(options.id).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}{% include 'form.help' %}{% include 'form.feedback' %}</div>diff --git a/resources/views/form/password.twig b/resources/views/form/password.twigindex 6e541436ad..7524a4bb2b 100644--- a/resources/views/form/password.twig+++ b/resources/views/form/password.twig@@ -2,7 +2,7 @@<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label><div class="col-sm-8">- {{ Html.input('password', name, value).class('form-control').attribute('placeholder',options.placeholder).attribute('autocomplete','off').attribute('spellcheck','false') }}+ {{ Html.input('password', name, value).id(options.id).class('form-control').attribute('placeholder',options.placeholder).attribute('autocomplete','off').attribute('spellcheck','false') }}{% include 'form.help' %}{% include 'form.feedback' %}</div>diff --git a/resources/views/form/percentage.twig b/resources/views/form/percentage.twigindex e0f8570c87..d22ca11c17 100644--- a/resources/views/form/percentage.twig+++ b/resources/views/form/percentage.twig@@ -3,7 +3,7 @@<div class="col-sm-8"><div class="input-group">- {{ Html.input('number', name, value).attribute('step',options.step).attribute('autocomplete','off').attribute('spellcheck', 'false').class('form-control').attribute('placeholder',options.placeholder) }}+ {{ Html.input('number', name, value).id(options.id).attribute('step',options.step).attribute('autocomplete','off').attribute('spellcheck', 'false').class('form-control').attribute('placeholder',options.placeholder) }}<div class="input-group-addon">%</div></div>{% include 'form.help' %}diff --git a/resources/views/form/select.twig b/resources/views/form/select.twigindex 460a5f07d8..bbd5588aec 100644--- a/resources/views/form/select.twig+++ b/resources/views/form/select.twig@@ -2,7 +2,7 @@<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label><div class="col-sm-8">- {{ Html.select(name, list, selected).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}+ {{ Html.select(name, list, selected).id(options.id).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder', options.placeholder) }}{% include 'form.help' %}{% include 'form.feedback' %}diff --git a/resources/views/form/text.twig b/resources/views/form/text.twigindex ab6e13c124..e1a9e3e341 100644--- a/resources/views/form/text.twig+++ b/resources/views/form/text.twig@@ -2,7 +2,7 @@<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label><div class="col-sm-8">- {{ Html.input('text', name, value).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}+ {{ Html.input('text', name, value).id(options.id).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}{% include 'form.help' %}{% include 'form.feedback' %}</div>diff --git a/resources/views/form/textarea.twig b/resources/views/form/textarea.twigindex 87cc9bcc31..d8f647db29 100644--- a/resources/views/form/textarea.twig+++ b/resources/views/form/textarea.twig@@ -2,7 +2,7 @@<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label><div class="col-sm-8">- {{ Html.textarea(name, value).attribute('rows', options.rows).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}+ {{ Html.textarea(name, value).id(options.id).attribute('rows', options.rows).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}{% include 'form.help' %}{% include 'form.feedback' %}</div>