From f7f53d0bb56e47395e33e9b86f4c1e9512251307 Mon Sep 17 00:00:00 2001 From: Jesper Zedlitz <jesper.zedlitz@melund.landsh.de> Date: Thu, 9 Jun 2022 07:43:34 +0200 Subject: [PATCH] einheitliche Darstellung der Eingabefelder --- ckanext/odsh/templates/macros/form.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/ckanext/odsh/templates/macros/form.html b/ckanext/odsh/templates/macros/form.html index 862c69ee..5cd97c69 100644 --- a/ckanext/odsh/templates/macros/form.html +++ b/ckanext/odsh/templates/macros/form.html @@ -366,12 +366,17 @@ is_required=is_required) %} {% macro input_address(field, label, value='', index='', placeholder='', type='text', attrs={}) %} {%- set _type = 'text' if type=='date' and not value else type -%} {%- set onFocus = 'onfocus=(this.type=\'date\')' if type=='date' and not value else '' -%} -<div class="row-fluid"> - <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}}-value" type="{{_type}}" name="extras__{{index}}__value" value="{{value | empty_and_escape }}" placeholder="{{ placeholder }}" {{ onFocus }} {{ attributes(attrs) }}/> -</div> +<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="span6"> + <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) }}/> + </div> + <div class="span6 inline-error"></div> + </div> + </div> </div> {% endmacro %} -- GitLab