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
38cbce1b
Commit
38cbce1b
authored
Mar 04, 2017
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ui) add style property to form headers
(cherry picked from commit
1974000c
)
parent
9a12b261
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
base_dialog.volt
src/opnsense/mvc/app/views/layout_partials/base_dialog.volt
+4
-4
base_form.volt
src/opnsense/mvc/app/views/layout_partials/base_form.volt
+4
-4
No files found.
src/opnsense/mvc/app/views/layout_partials/base_dialog.volt
View file @
38cbce1b
...
...
@@ -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 %}
...
...
src/opnsense/mvc/app/views/layout_partials/base_form.volt
View file @
38cbce1b
...
...
@@ -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 %}
...
...
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