189bccea999a0f2caffa50f6f9e4945fed3cb364
[portal/sdk.git] /
1 <div>
2     <div class="btn-toolbar" ng-if="!options.hideToolbar">
3         <div class="btn-group" ng-if="!options.widgetButtons">
4             <span class="dropdown" on-toggle="toggled(open)">
5               <button type="button" class="btn btn-primary dropdown-toggle" ng-disabled="disabled">
6                 Button dropdown <span class="caret"></span>
7               </button>
8               <ul class="dropdown-menu" role="menu">
9                 <li ng-repeat="widget in widgetDefs">
10                   <a href="#" ng-click="addWidgetInternal($event, widget);" class="dropdown-toggle">{{widget.name}}</a>
11                 </li>
12               </ul>
13             </span>
14         </div>
15
16         <div class="btn-group" ng-if="options.widgetButtons">
17             <button ng-repeat="widget in widgetDefs"
18                     ng-click="addWidgetInternal($event, widget);" type="button" class="btn btn-primary">
19                 {{widget.name}}
20             </button>
21         </div>
22
23         <button class="btn btn-warning" ng-click="resetWidgetsToDefault()">Default Widgets</button>
24
25         <button ng-if="options.storage && options.explicitSave" ng-click="options.saveDashboard()" class="btn btn-success" ng-hide="!options.unsavedChangeCount">{{ !options.unsavedChangeCount ? "Alternative - No Changes" : "Save" }}</button>
26
27         <button ng-click="clear();" ng-hide="!widgets.length" type="button" class="btn btn-info">Clear</button>
28     </div>
29
30     <div ui-sortable="sortableOptions" ng-model="widgets" class="dashboard-widget-area">
31         <div ng-repeat="widget in widgets" ng-style="widget.style" class="widget-container" widget>
32             <div class="widget panel panel-default">
33                 <div class="widget-header panel-heading">
34                     <h3 class="panel-title">
35                         <span class="widget-title" ng-dblclick="editTitle(widget)" ng-hide="widget.editingTitle">{{widget.title}}</span>
36                         <form action="" class="widget-title" ng-show="widget.editingTitle" ng-submit="saveTitleEdit(widget)">
37                             <input type="text" ng-model="widget.title" class="form-control">
38                         </form>
39                         <span class="label label-primary" ng-if="!options.hideWidgetName">{{widget.name}}</span>
40                         <span ng-click="removeWidget(widget);" class="glyphicon glyphicon-remove icon-erase" ng-if="!options.hideWidgetClose"></span>
41                         <span ng-click="openWidgetSettings(widget);" class="glyphicon glyphicon-cog icon-settings" ng-if="!options.hideWidgetSettings"></span>
42                     </h3>
43                 </div>
44                 <div class="panel-body widget-content"></div>
45                 <div class="widget-ew-resizer" ng-mousedown="grabResizer($event)"></div>
46             </div>
47         </div>
48     </div>
49 </div>