mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 08:55:31 +02:00
handle basic vs advanced settings
This commit is contained in:
parent
9a56e72079
commit
697ae900dc
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@
|
|||
<h3 class="panel-title"><%- group.label %></h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<% _.each(group.settings, function(setting) { %>
|
||||
<% split_settings = _.partition(group.settings, function(value, index) { return !value.advanced }) %>
|
||||
<% _.each(split_settings[0], function(setting) { %>
|
||||
<%= getFormGroup(group.name, setting, values) %>
|
||||
<% }); %>
|
||||
<% _.each(split_settings[1], function(setting) { %>
|
||||
<%= getFormGroup(group.name, setting, values) %>
|
||||
<% }); %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue