add separator before the optional inputs dropdown

This commit is contained in:
Jakob Ketterl 2021-02-23 19:23:54 +01:00
parent 4e32d724c4
commit f9772faa6f
3 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,10 @@ html, body {
height: unset; height: unset;
} }
hr {
background: gray;
}
.buttons { .buttons {
text-align: right; text-align: right;
} }

View File

@ -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;

View File

@ -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