Commit 4c736c65 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) improve base dialog to support "display only" forms

parent 31919118
...@@ -64,16 +64,18 @@ label : dialog label ...@@ -64,16 +64,18 @@ label : dialog label
<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"/>
<col class="col-md-4"/> <col class="col-md-{{ 12-3-msgzone_width|default(5) }}"/>
<col class="col-md-5"/> <col class="col-md-{{ msgzone_width|default(5) }}"/>
</colgroup> </colgroup>
<tbody> <tbody>
{% if advanced|default(false) or help|default(false) %}
<tr> <tr>
<td align="left"><a href="#">{% if advanced|default(false) %}<i class="fa fa-toggle-off text-danger" id="show_advanced_formDialogPipe" type="button"></i> </a><small>{{ lang._('advanced mode') }} </small>{% endif %}</td> <td align="left"><a href="#">{% if advanced|default(false) %}<i class="fa fa-toggle-off text-danger" id="show_advanced_formDialogPipe" type="button"></i> </a><small>{{ lang._('advanced mode') }} </small>{% endif %}</td>
<td colspan="2" align="right"> <td colspan="2" align="right">
{% if help|default(false) %}<small>{{ lang._('full help') }} </small><a href="#"><i class="fa fa-toggle-off text-danger" id="show_all_help_formDialogPipe" type="button"></i></a>{% endif %} {% if help|default(false) %}<small>{{ lang._('full help') }} </small><a href="#"><i class="fa fa-toggle-off text-danger" id="show_all_help_formDialogPipe" type="button"></i></a>{% endif %}
</td> </td>
</tr> </tr>
{% endif %}
{% for field in fields|default({})%} {% for field in fields|default({})%}
{{ partial("layout_partials/form_input_tr",field)}} {{ partial("layout_partials/form_input_tr",field)}}
{% endfor %} {% endfor %}
...@@ -83,7 +85,9 @@ label : dialog label ...@@ -83,7 +85,9 @@ label : dialog label
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
{% if hasSaveBtn|default('true') == 'true' %}
<button type="button" class="btn btn-primary" id="btn_{{id}}_save">Save changes</button> <button type="button" class="btn btn-primary" id="btn_{{id}}_save">Save changes</button>
{% endif %}
</div> </div>
</div> </div>
</div> </div>
......
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