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 ...@@ -34,11 +34,11 @@ label : dialog label
#} #}
{%- macro base_dialog_header(header_text) %} {%- macro base_dialog_header(field) %}
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="table-responsive"> <div class="table-responsive {% if field['style'] %}{{field['style']}}{% endif %}">
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">
<colgroup> <colgroup>
<col class="col-md-3"/> <col class="col-md-3"/>
...@@ -47,7 +47,7 @@ label : dialog label ...@@ -47,7 +47,7 @@ label : dialog label
</colgroup> </colgroup>
<thead> <thead>
<tr colspan="3"> <tr colspan="3">
<th><h2>{{header_text}}</h2></th> <th><h2>{{field['label']}}</h2></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -111,7 +111,7 @@ label : dialog label ...@@ -111,7 +111,7 @@ label : dialog label
{% set allownew=false %} {% set allownew=false %}
{% if field['type'] == 'header' %} {% if field['type'] == 'header' %}
{# close table and start new one with header #} {# close table and start new one with header #}
{{ base_dialog_header(field['label']) }} {{ base_dialog_header(field) }}
{% else %} {% else %}
{{ partial("layout_partials/form_input_tr",field)}} {{ partial("layout_partials/form_input_tr",field)}}
{% endif %} {% endif %}
......
...@@ -35,11 +35,11 @@ data_title : data-title to set on form ...@@ -35,11 +35,11 @@ data_title : data-title to set on form
#} #}
{# close table and reopen for new header#} {# close table and reopen for new header#}
{%- macro base_form_header(header_text) %} {%- macro base_dialog_header(field) %}
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="table-responsive"> <div class="table-responsive {% if field['style'] %}{{field['style']}}{% endif %}">
<table class="table table-striped table-condensed table-responsive"> <table class="table table-striped table-condensed table-responsive">
<colgroup> <colgroup>
<col class="col-md-3"/> <col class="col-md-3"/>
...@@ -48,7 +48,7 @@ data_title : data-title to set on form ...@@ -48,7 +48,7 @@ data_title : data-title to set on form
</colgroup> </colgroup>
<thead> <thead>
<tr colspan="3"> <tr colspan="3">
<th><h2>{{header_text}}</h2></th> <th><h2>{{field['label']}}</h2></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -97,7 +97,7 @@ data_title : data-title to set on form ...@@ -97,7 +97,7 @@ data_title : data-title to set on form
{% for field in fields|default({})%} {% for field in fields|default({})%}
{% if field['type'] == 'header' %} {% if field['type'] == 'header' %}
{# close table and start new one with header #} {# close table and start new one with header #}
{{ base_form_header(field['label']) }} {{ base_dialog_header(field) }}
{% else %} {% else %}
{{ partial("layout_partials/form_input_tr",field)}} {{ partial("layout_partials/form_input_tr",field)}}
{% endif %} {% 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