Added column panel, refactored panel adding from rows to include panel specific parameters. Moved call to init function to template to avoid double init
This commit is contained in:
@@ -17,12 +17,12 @@
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<h4>New Panel</h4>
|
||||
<select class="input-medium" ng-model="panel.type" ng-options="f for f in config.modules"></select>
|
||||
<select class="input-medium" ng-model="panel.type" ng-options="f for f in config.modules|stringSort"></select>
|
||||
<small>Select Type</small>
|
||||
<div ng-show="!(_.isUndefined(panel.type))">
|
||||
<div ng-include src="'partials/panelgeneral.html'"></div>
|
||||
|
||||
<!--<div ng-include src="'panels/'+panel.type+'/editor.html'"></div>-->
|
||||
<div ng-include src="edit_path(panel.type)"></div>
|
||||
<button ng-click="add_panel(row,panel); reset_panel();" class="btn btn-primary">Create Panel</button><br>
|
||||
</div>
|
||||
</div>
|
||||
@@ -40,7 +40,7 @@
|
||||
<tr ng-repeat="panel in row.panels">
|
||||
<td>{{panel.title}}</td>
|
||||
<td>{{panel.type}}</td>
|
||||
<td><select class="input-mini" ng-model="panel.span" ng-options="f for f in [0,1,2,3,4,5,6,7,8,9,10,11,12]"></select></td>
|
||||
<td><select ng-hide="panel.sizeable == false" class="input-mini" ng-model="panel.span" ng-options="f for f in [0,1,2,3,4,5,6,7,8,9,10,11,12]"></select></td>
|
||||
<td><i ng-click="row.panels = _.without(row.panels,panel)" class="pointer icon-remove"></i></td>
|
||||
<td><i ng-click="_.move(row.panels,$index,$index-1)" ng-hide="$first" class="pointer icon-arrow-up"></i></td>
|
||||
<td><i ng-click="_.move(row.panels,$index,$index+1)" ng-hide="$last" class="pointer icon-arrow-down"></i></td>
|
||||
|
||||
Reference in New Issue
Block a user