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
39c0071e
Commit
39c0071e
authored
Jan 13, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvc: contained fix for apply button spinner on 17.1
(cherry picked from commit
9079f06d
)
parent
d583f4cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
base_form.volt
src/opnsense/mvc/app/views/layout_partials/base_form.volt
+5
-4
form_input_tr.volt
...opnsense/mvc/app/views/layout_partials/form_input_tr.volt
+1
-1
No files found.
src/opnsense/mvc/app/views/layout_partials/base_form.volt
View file @
39c0071e
...
...
@@ -55,6 +55,7 @@ data_title : data-title to set on form
{%- endmacro %}
{# Find if there are help supported or advanced field on this page #}
{% set base_form_id=id %}
{% set help=false %}
{% set advanced=false %}
{% for field in fields|default({})%}
...
...
@@ -70,7 +71,7 @@ data_title : data-title to set on form
{% break %}
{% endif %}
{% endfor %}
<form id="{{id}}" class="form-inline" data-title="{{data_title|default('')}}">
<form id="{{
base_form_
id}}" class="form-inline" data-title="{{data_title|default('')}}">
<div class="table-responsive">
<table class="table table-striped table-condensed">
<colgroup>
...
...
@@ -80,9 +81,9 @@ data_title : data-title to set on form
</colgroup>
<tbody>
<tr>
<td align="left">{% if advanced|default(false) %}<a href="#"><i class="fa fa-toggle-off text-danger" id="show_advanced_{{id}}" type="button"></i> </a><small>{{ lang._('advanced mode') }} </small>{% endif %}</td>
<td align="left">{% if advanced|default(false) %}<a href="#"><i class="fa fa-toggle-off text-danger" id="show_advanced_{{
base_form_
id}}" type="button"></i> </a><small>{{ lang._('advanced mode') }} </small>{% endif %}</td>
<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_{{id}}" 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_{{
base_form_
id}}" type="button"></i></a>{% endif %}
</td>
</tr>
{% set advanced=false %}
...
...
@@ -103,7 +104,7 @@ data_title : data-title to set on form
{% endfor %}
{% if apply_btn_id|default('') != '' %}
<tr>
<td colspan="3"><button class="btn btn-primary" id="{{apply_btn_id}}" type="button"><b>{{ lang._('Apply') }} </b><i id="{{id}}_progress" class=""></i></button></td>
<td colspan="3"><button class="btn btn-primary" id="{{apply_btn_id}}" type="button"><b>{{ lang._('Apply') }} </b><i id="{{
base_form_
id}}_progress" class=""></i></button></td>
</tr>
{% endif %}
</tbody>
...
...
src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt
View file @
39c0071e
...
...
@@ -58,7 +58,7 @@ allownew : allow new items (for list) if applicable
<input type="checkbox" id="{{ id }}" >
{% elseif type == "select_multiple" %}
<select multiple="multiple" {% if size|default(false) %}size="{{size}}"{% endif %} id="{{ id }}" {% if style|default(false) %}class="{{style}}" {% endif %} {% if hint|default(false) %}data-hint="{{hint}}"{% endif %} {% if maxheight|default(false) %}data-maxheight="{{maxheight}}"{% endif %} data-width="{{width|default("348px")}}" data-allownew="{{allownew|default("false")}}" data-nbdropdownelements="{{nbDropdownElements|default("10")}}"></select>
<br/><a href="#" class="text-danger" id="clear-options" for="{{
id
}}"><i class="fa fa-times-circle"></i></a> <small>{{ lang._('Clear All') }}</small>
<br/><a href="#" class="text-danger" id="clear-options" for="{{
id
}}"><i class="fa fa-times-circle"></i></a> <small>{{ lang._('Clear All') }}</small>
{% elseif type == "dropdown" %}
<select {% if size|default(false) %}size="{{size}}"{% endif %} id="{{ id }}" class="{{style|default('selectpicker')}}" data-width="{{width|default("348px")}}"></select>
{% elseif type == "password" %}
...
...
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