add separator before the optional inputs dropdown
This commit is contained in:
parent
4e32d724c4
commit
f9772faa6f
@ -5,6 +5,10 @@ html, body {
|
|||||||
height: unset;
|
height: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
background: gray;
|
||||||
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ $.fn.optionalSection = function(){
|
|||||||
var field = $select.val();
|
var field = $select.val();
|
||||||
var group = $optionalInputs.find(".form-group[data-field='" + field + "']");
|
var group = $optionalInputs.find(".form-group[data-field='" + field + "']");
|
||||||
group.find('input, select').prop('disabled', false);
|
group.find('input, select').prop('disabled', false);
|
||||||
$select.parents('.form-group').before(group);
|
$section.find('hr').before(group);
|
||||||
$select.find('option[value=\'' + field + '\']').remove();
|
$select.find('option[value=\'' + field + '\']').remove();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -392,6 +392,7 @@ class OptionalSection(Section):
|
|||||||
|
|
||||||
def render_optional_select(self):
|
def render_optional_select(self):
|
||||||
return """
|
return """
|
||||||
|
<hr class="row" />
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="col-form-label col-form-label-sm col-3">
|
<label class="col-form-label col-form-label-sm col-3">
|
||||||
Additional optional settings
|
Additional optional settings
|
||||||
|
Loading…
Reference in New Issue
Block a user