Commit 38cbce1b authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(ui) add style property to form headers

(cherry picked from commit 1974000c)
parent 9a12b261
......@@ -34,11 +34,11 @@ label : dialog label
#}
{%- macro base_dialog_header(header_text) %}
{%- macro base_dialog_header(field) %}
</tbody>
</table>
</div>
<div class="table-responsive">
<div class="table-responsive {% if field['style'] %}{{field['style']}}{% endif %}">
<table class="table table-striped table-condensed">
<colgroup>
<col class="col-md-3"/>
......@@ -47,7 +47,7 @@ label : dialog label
</colgroup>
<thead>
<tr colspan="3">
<th><h2>{{header_text}}</h2></th>
<th><h2>{{field['label']}}</h2></th>
</tr>
</thead>
<tbody>
......@@ -111,7 +111,7 @@ label : dialog label
{% set allownew=false %}
{% if field['type'] == 'header' %}
{# close table and start new one with header #}
{{ base_dialog_header(field['label']) }}
{{ base_dialog_header(field) }}
{% else %}
{{ partial("layout_partials/form_input_tr",field)}}
{% endif %}
......
......@@ -35,11 +35,11 @@ data_title : data-title to set on form
#}
{# close table and reopen for new header#}
{%- macro base_form_header(header_text) %}
{%- macro base_dialog_header(field) %}
</tbody>
</table>
</div>
<div class="table-responsive">
<div class="table-responsive {% if field['style'] %}{{field['style']}}{% endif %}">
<table class="table table-striped table-condensed table-responsive">
<colgroup>
<col class="col-md-3"/>
......@@ -48,7 +48,7 @@ data_title : data-title to set on form
</colgroup>
<thead>
<tr colspan="3">
<th><h2>{{header_text}}</h2></th>
<th><h2>{{field['label']}}</h2></th>
</tr>
</thead>
<tbody>
......@@ -97,7 +97,7 @@ data_title : data-title to set on form
{% for field in fields|default({})%}
{% if field['type'] == 'header' %}
{# close table and start new one with header #}
{{ base_form_header(field['label']) }}
{{ base_dialog_header(field) }}
{% else %}
{{ partial("layout_partials/form_input_tr",field)}}
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment