2013-02-12 17:25:39 -06:00
< div class = "modal-body" >
2013-07-23 12:10:00 -05:00
< div class = "pull-right editor-title" > Row settings< / div >
< div ng-model = "editor.index" bs-tabs >
2013-07-25 23:27:37 -05:00
< div ng-repeat = "tab in ['General','Panels','Add Panel']" data-title = "{{tab}}" >
2013-07-23 12:10:00 -05:00
< / div >
< / div >
2014-01-20 12:40:39 -06:00
< div class = "editor-row" ng-if = "editor.index == 0" >
< div class = "editor-option" >
2013-02-12 17:25:39 -06:00
< label class = "small" > Title< / label > < input type = "text" class = "input-medium" ng-model = 'row.title' > < / input >
< / div >
2014-01-20 12:40:39 -06:00
< div class = "editor-option" >
2013-02-12 17:25:39 -06:00
< label class = "small" > Height< / label > < input type = "text" class = "input-mini" ng-model = 'row.height' > < / input >
< / div >
2014-01-20 12:40:39 -06:00
< div class = "editor-option" >
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 >
2014-01-20 12:40:39 -06:00
< div class = "editor-option" >
2014-08-11 08:25:36 -05:00
< label class = "small" > Show title < / label > < input type = "checkbox" ng-model = "row.showTitle" ng-checked = "row.showTitle" / >
2013-03-08 11:04:38 -06:00
< / div >
2014-08-11 08:25:36 -05:00
< / div >
2013-12-06 16:39:18 -06:00
< div class = "row-fluid" ng-if = "editor.index == 1" >
2013-02-13 13:23:24 -06:00
< div class = "span12" >
2013-12-24 10:17:20 -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 >
2014-08-13 09:35:34 -05:00
< th > Span < span class = "small" > ({{dashboard.rowSpan(row)}}/12)< / 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 >
2013-02-13 13:23:24 -06:00
< / thead >
< tr ng-repeat = "panel in row.panels" >
< td > {{panel.title}}< / td >
< td > {{panel.type}}< / td >
2014-08-04 05:26:53 -05:00
< td > < select ng-hide = "panel.sizeable == false" class = "input-mini" ng-model = "panel.span" ng-options = "size for size in [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-02-13 13:23:24 -06:00
< / tr >
< / table >
< / div >
< / div >
2013-12-06 16:39:18 -06:00
< div class = "row-fluid" ng-if = "editor.index == 2" >
2013-07-25 23:27:37 -05:00
< h4 > Select Panel Type< / h4 >
2013-09-20 16:26:06 -05:00
< form class = "form-inline" >
2014-06-08 13:46:30 -05:00
< select class = "input-medium" ng-model = "panel.type" ng-options = "panelType for panelType in availablePanels|stringSort" > < / select >
2014-08-13 09:35:34 -05:00
< small ng-show = "dashboard.rowSpan(row) > 11" >
2013-09-20 16:26:06 -05:00
Note: This row is full, new panels will wrap to a new line. You should add another row.
< / small >
< / form >
2013-07-25 23:27:37 -05:00
< div ng-show = "!(_.isUndefined(panel.type))" >
< div add-panel = "{{panel.type}}" > < / div >
< / div >
< / div >
2013-02-12 17:25:39 -06:00
< / div >
< div class = "modal-footer" >
2013-12-24 10:17:20 -06:00
< button ng-show = "editor.index == 1" ng-click = "editor.index = 2;" class = "btn btn-success" ng-disabled = "panel.loadingEditor" > Add Panel< / button >
2014-06-06 11:30:15 -05:00
< button ng-show = "panel.type && editor.index == 2" ng-click = "add_panel(panel); reset_panel(); editor.index = 1;" class = "btn btn-success" ng-disabled = "panel.loadingEditor" > Add Panel< / button >
2014-04-03 15:22:38 -05:00
< button type = "button" class = "btn btn-info" ng-click = "editor.index=0;dismiss();reset_panel();close_edit()" > Close< / button >
2014-08-04 05:26:53 -05:00
< / div >