more work merging techlevels and features

This commit is contained in:
zotlabs
2018-04-08 22:02:48 -07:00
parent e0255c0dc4
commit e4ee165e29
2 changed files with 47 additions and 25 deletions

View File

@@ -1,3 +1,12 @@
<script>
$(document).ready(function() {
$('#id_techlevel').change(function() {
var techlvl = $('#id_techlevel').val();
window.location.href='{{$baseurl}}/settings/features?f=&techlevel=' + techlvl;
});
});
</script>
<div class="generic-content-wrapper">
<div class="section-title-wrapper">
<h2>{{$title}}</h2>
@@ -11,6 +20,12 @@
{{else}}
<input type="hidden" name="techlevel" value="{{$techlevel.2}}" />
{{/if}}
{{if $hiddens}}
{{foreach $hiddens as $k => $v}}
<input type="hidden" name="feature_{{$k}}" value="{{$v}}" />
{{/foreach}}
{{/if}}
<div class="panel-group" id="settings" role="tablist" aria-multiselectable="true">
{{foreach $features as $g => $f}}
<div class="panel">