Skip to content
Snippets Groups Projects
Commit f7f53d0b authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

einheitliche Darstellung der Eingabefelder

parent 7fcef1ce
Branches
Tags
1 merge request!17Stage System soll in Zukunft Master Branch erhalten
...@@ -366,12 +366,17 @@ is_required=is_required) %} ...@@ -366,12 +366,17 @@ is_required=is_required) %}
{% macro input_address(field, label, value='', index='', placeholder='', type='text', attrs={}) %} {% macro input_address(field, label, value='', index='', placeholder='', type='text', attrs={}) %}
{%- set _type = 'text' if type=='date' and not value else type -%} {%- set _type = 'text' if type=='date' and not value else type -%}
{%- set onFocus = 'onfocus=(this.type=\'date\')' if type=='date' and not value else '' -%} {%- set onFocus = 'onfocus=(this.type=\'date\')' if type=='date' and not value else '' -%}
<div class="control-group control-full">
<label class="control-label" for="field-{{field}}-value">{{ label }}</label>
<div class="controls editor">
<div class="row-fluid"> <div class="row-fluid">
<div class="span6"> <div class="span6">
<label class="address-label"> {{ label }} </label>
<input id="field-{{field}}-key" type="hidden" name="extras__{{index}}__key" value="{{field}}" /> <input id="field-{{field}}-key" type="hidden" name="extras__{{index}}__key" value="{{field}}" />
<input id="field-{{field}}-value" type="{{_type}}" name="extras__{{index}}__value" value="{{value | empty_and_escape }}" placeholder="{{ placeholder }}" {{ onFocus }} {{ attributes(attrs) }}/> <input id="field-{{field}}-value" type="{{_type}}" name="extras__{{index}}__value" value="{{value | empty_and_escape }}" placeholder="{{ placeholder }}" {{ onFocus }} {{ attributes(attrs) }}/>
</div> </div>
<div class="span6 inline-error"></div>
</div>
</div>
</div> </div>
{% endmacro %} {% endmacro %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment