2013-02-12 17:25:39 -06:00
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true" > × < / button >
2013-02-13 13:23:24 -06:00
< h3 > {{row.title}} < small > row editor< / small > < / h3 >
2013-02-12 17:25:39 -06:00
< / div >
< div class = "modal-body" >
2013-02-13 13:23:24 -06:00
< h4 > Row Control< / h4 >
2013-02-12 17:25:39 -06:00
< div class = "row-fluid" >
< div class = "span4" >
< label class = "small" > Title< / label > < input type = "text" class = "input-medium" ng-model = 'row.title' > < / input >
< / div >
< div class = "span2" >
< label class = "small" > Height< / label > < input type = "text" class = "input-mini" ng-model = 'row.height' > < / input >
< / div >
< div class = "span1" >
2013-02-13 15:24:32 -06:00
< label class = "small" > Editable < / label > < input type = "checkbox" ng-model = "row.editable" ng-checked = "row.editable" / >
2013-02-12 17:25:39 -06:00
< / div >
2013-03-08 11:04:38 -06:00
< div class = "span1" >
< label class = "small" > Collapsable < / label > < input type = "checkbox" ng-model = "row.collapsable" ng-checked = "row.collapsable" / >
< / div >
2013-02-12 17:25:39 -06:00
< / div >
2013-02-15 16:23:04 -06:00
< div class = "row-fluid" >
< h4 > New Panel< / h4 >
2013-03-05 10:54:29 -06:00
< select class = "input-medium" ng-model = "panel.type" ng-options = "f for f in config.modules|stringSort" > < / select >
2013-02-15 16:23:04 -06:00
< small > Select Type< / small >
< div ng-show = "!(_.isUndefined(panel.type))" >
< div ng-include src = "'partials/panelgeneral.html'" > < / div >
2013-03-05 10:54:29 -06:00
< div ng-include src = "edit_path(panel.type)" > < / div >
2013-02-15 16:23:04 -06:00
< button ng-click = "add_panel(row,panel); reset_panel();" class = "btn btn-primary" > Create Panel< / button > < br >
< / div >
< / div >
2013-02-13 13:23:24 -06:00
< div class = "row-fluid" >
< div class = "span12" >
2013-02-13 17:16:53 -06:00
< h4 > Panels< / h4 >
2013-02-13 13:23:24 -06:00
< table class = "table table-condensed table-striped" >
< thead >
< th > Title< / th >
< th > Type< / th >
2013-02-15 16:23:04 -06:00
< th > Span< / th >
2013-02-13 13:23:24 -06:00
< th > Delete< / th >
< th > Move< / th >
2013-03-08 11:04:38 -06:00
< th > < / th >
< th > Hide< / th >
2013-02-13 13:23:24 -06:00
< / thead >
< tr ng-repeat = "panel in row.panels" >
< td > {{panel.title}}< / td >
< td > {{panel.type}}< / td >
2013-03-05 10:54:29 -06:00
< 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 >
2013-02-13 15:24:32 -06:00
< 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 >
2013-03-08 11:04:38 -06:00
< td > < input type = "checkbox" ng-model = "panel.hide" ng-checked = "panel.hide" > < / td >
2013-02-13 13:23:24 -06:00
< / tr >
< / table >
< / div >
< / div >
2013-02-12 17:25:39 -06:00
< / div >
< div class = "modal-footer" >
2013-02-14 09:37:03 -06:00
< button type = "button" class = "btn btn-success" ng-click = "dismiss();reset_panel();send_render()" > Close< / button >
2013-02-12 17:25:39 -06:00
< / div >