e891b56521d547395774823f4b279aab9accc878
[portal/sdk.git] /
1
2 <div>
3     <div class="btn-toolbar" ng-if="!options.hideToolbar">
4         <div class="btn-group" ng-if="!options.widgetButtons">
5               
6             <span class="dropdown" on-toggle="toggled(open)">
7               <!--<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
8                 Button dropdown<span class="caret"></span>
9               </button>-->
10               <ul class="dropdown-menu" role="menu">
11                 <li ng-repeat="widget in widgetDefs">
12                   <a href="#" ng-click="addWidgetInternal($event, widget);" class="dropdown-toggle"><span class="label label-primary">{{widget.name}}</span></a>
13                 </li>
14               </ul>
15             </span>
16     </div>
17
18         <div class="btn-group" ng-if="options.widgetButtons">
19             <button ng-repeat="widget in widgetDefs"
20                     ng-click="addWidgetInternal($event, widget);" type="button" class="btn btn-primary">
21                 {{widget.name}}
22             </button>
23         </div>
24
25 <!--             <div style="float: left" class="form-field" att-select="reports" ng-model="report1" placeholder="Select a Report"></div>
26             <button class="btn btn-primary" ng-click="addReport(report1)">Add Raptor Report</button> -->
27             <button class="btn btn-primary" ng-click="popupAddReport()">+ Raptor Report</button>
28
29 <!--             <div style = "float:left"> <input ng-model = "rcloud_url"> </div>
30             <button class="btn btn-primary" ng-click="addRCloudNotebook(rcloud_url)">Add R Cloud</button> -->
31             <button class="btn btn-primary" ng-click="popupAddRCloudNotebook()">+ RCloud Notebook</button>            
32
33 <!--         <button class="btn btn-warning" ng-click="resetWidgetsToDefault()">Default Widgets</button> -->
34
35         <button ng-if="options.storage && options.explicitSave" ng-click="options.saveDashboard()" class="btn btn-success" ng-disabled="!options.unsavedChangeCount">{{ !options.unsavedChangeCount ? "All Saved" : "Save Changes (" + options.unsavedChangeCount + ")" }}</button>
36
37         <button ng-click="clear();" type="button" class="btn btn-info">Clear</button>
38         
39 <!--         <button style="float:right" ng-click="clear();" type="button" class="btn btn-info">Save to Database</button> -->
40     </div>
41
42
43 <!-- 
44         <div id="container">
45   <div id="navi">navi</div>
46   <div id="infoi">
47     <img src="https://appharbor.com/assets/images/stackoverflow-logo.png" height="20" width="32" />infoi
48   </div>
49 </div>
50  -->
51
52     <div ui-sortable="sortableOptions" ng-model="widgets" class="dashboard-widget-area">
53         <div ng-mouseover="hoverIn()" ng-mouseleave="hoverOut()" ng-repeat="widget in widgets" ng-style="widget.containerStyle" class="widget-container" widget>
54             <div class="widget panel panel-default">
55                 <div style="opacity: 0.8; background-color: #E5E5E5; border: #d3d3d3;" ng-show="hoverEdit" class="widget-header panel-heading">
56                         <img style="float:left; margin-right: 10px" src="static/fusion/images/att_angular_gridster/grips.png">
57                     <h3 class="panel-title">
58                         <span class="widget-title" ng-dblclick="editTitle(widget)" ng-hide="widget.editingTitle"></span>
59                         <form action="" class="widget-title" ng-show="widget.editingTitle" ng-submit="saveTitleEdit(widget)">
60                             <input type="text" ng-model="widget.title" class="form-control">
61                         </form>
62                         <span class="label label-primary" ng-if="!options.hideWidgetName">{{widget.name}}</span>
63                         <span ng-click="removeWidget(widget);" class="glyphicon glyphicon-remove icon-erase" ng-if="!options.hideWidgetClose"></span>
64                         <span ng-click="openWidgetSettings(widget);" class="glyphicon glyphicon-cog icon-settings" ng-if="!options.hideWidgetSettings"></span>
65                         <span ng-click="widget.contentStyle.display = widget.contentStyle.display === 'none' ? 'block' : 'none'" class="glyphicon" ng-class="{'glyphicon-plus': widget.contentStyle.display === 'none', 'glyphicon-minus': widget.contentStyle.display !== 'none' }"></span>
66                     </h3>
67                 </div>
68                 <div class="panel-body widget-content" ng-style="widget.contentStyle"></div>
69                 <div class="widget-ew-resizer" ng-mousedown="grabResizer($event)"></div>
70                 <div style="background-color:#f2f2f2" ng-if="widget.enableVerticalResize" class="widget-s-resizer" ng-mousedown="grabSouthResizer($event)"></div>
71             </div>
72         </div>
73     </div>
74 </div>