3
0
Fork 0
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:
Stephen Birarda 2014-09-25 18:14:18 -07:00
parent 9a56e72079
commit 697ae900dc

View file

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