Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
4c736c65
Commit
4c736c65
authored
Jun 12, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mvc) improve base dialog to support "display only" forms
parent
31919118
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
base_dialog.volt
src/opnsense/mvc/app/views/layout_partials/base_dialog.volt
+6
-2
No files found.
src/opnsense/mvc/app/views/layout_partials/base_dialog.volt
View file @
4c736c65
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment