Commit bfe3c376 by Rashid Khan

Editor cleanup, fix tab index reset on row editor

parent 43dc74df
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
text-transform:capitalize; text-transform:capitalize;
} }
.editor-title small {
opacity: 0.5;
font-size: 0.7em;
font-weight: normal;
}
.spy { .spy {
position:absolute; position:absolute;
right:0px; right:0px;
......
<div class="modal-body" > <div class="modal-body" >
<div class="pull-right editor-title">{{panel.type}} settings</div> <div class="pull-right editor-title"><small>({{panel.status}})</small> {{panel.type}} settings</div>
<div ng-model="editor.index" bs-tabs> <div ng-model="editor.index" bs-tabs>
<div ng-repeat="tab in ['General','Panel']" data-title="{{tab}}"> <div ng-repeat="tab in ['General','Panel']" data-title="{{tab}}">
</div> </div>
</div> </div>
<div ng-show="editor.index == 0"> <div ng-show="editor.index == 0">
<h4>{{panel.title}} General <small> panel settings</small></h4>
<div ng-include src="'partials/panelgeneral.html'"></div> <div ng-include src="'partials/panelgeneral.html'"></div>
</div> </div>
<div ng-show="editor.index == 1"> <div ng-show="editor.index == 1">
<h4 style="text-transform: capitalize;">{{panel.type}} <small> panel settings. <strong ng-show="!_.isUndefined(panel.status)">({{panel.status}})</strong></small></h4>
<div ng-include src="edit_path(panel.type)">No additional settings are available for this type of panel.</div> <div ng-include src="edit_path(panel.type)">No additional settings are available for this type of panel.</div>
</div> </div>
......
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
<label class="small">Span</label> <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> <label class="small">Span</label> <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>
</div> </div>
<div class="span1"> <div class="span1">
<label class="small"> Editable </label><input type="checkbox" ng-model="panel.editable" ng-checked="panel.editable"> <label class="small">Editable</label><input type="checkbox" ng-model="panel.editable" ng-checked="panel.editable">
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -59,5 +59,5 @@ ...@@ -59,5 +59,5 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-success" ng-click="dismiss();reset_panel();close_edit()">Close</button> <button type="button" class="btn btn-success" ng-click="editor.index=0;dismiss();reset_panel();close_edit()">Close</button>
</div> </div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment