2013-02-13 15:24:32 -06:00
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
2013-07-10 12:22:01 -05:00
|
|
|
|
<h3>{{dashboard.current.title}} <small> editor</small></h3>
|
2013-02-13 15:24:32 -06:00
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<h4>Dashboard Control</h4>
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span8">
|
2013-07-10 12:22:01 -05:00
|
|
|
|
<label class="small">Title</label><input type="text" class="input-large" ng-model='dashboard.current.title'></input>
|
2013-02-13 15:24:32 -06:00
|
|
|
|
</div>
|
|
|
|
|
<div class="span1">
|
2013-07-10 12:22:01 -05:00
|
|
|
|
<label class="small"> Editable </label><input type="checkbox" ng-model="dashboard.current.editable" ng-checked="dashboard.current.editable" />
|
2013-02-13 15:24:32 -06:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span12">
|
2013-02-13 17:16:53 -06:00
|
|
|
|
<h4>Rows</h4>
|
2013-02-13 15:24:32 -06:00
|
|
|
|
<table class="table table-condensed table-striped">
|
|
|
|
|
<thead>
|
|
|
|
|
<th>Title</th>
|
|
|
|
|
<th>Delete</th>
|
|
|
|
|
<th>Move</th>
|
|
|
|
|
</thead>
|
2013-07-10 12:22:01 -05:00
|
|
|
|
<tr ng-repeat="row in dashboard.current.rows">
|
2013-02-13 15:24:32 -06:00
|
|
|
|
<td>{{row.title}}</td>
|
2013-07-10 12:22:01 -05:00
|
|
|
|
<td><i ng-click="dashboard.current.rows = _.without(dashboard.current.rows,row)" class="pointer icon-remove"></i></td>
|
|
|
|
|
<td><i ng-click="_.move(dashboard.current.rows,$index,$index-1)" ng-hide="$first" class="pointer icon-arrow-up"></i></td>
|
|
|
|
|
<td><i ng-click="_.move(dashboard.current.rows,$index,$index+1)" ng-hide="$last" class="pointer icon-arrow-down"></i></td>
|
2013-02-13 15:24:32 -06:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<h4>New row</h4>
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span8">
|
|
|
|
|
<label class="small">Title</label>
|
|
|
|
|
<input type="text" class="input-large" 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">
|
|
|
|
|
<label class="small"> Editable </label>
|
|
|
|
|
<input type="checkbox" ng-model="row.editable" ng-checked="row.editable" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-07-10 12:22:01 -05:00
|
|
|
|
<button ng-click="add_row(dashboard.current,row); reset_row();" class="btn btn-primary">Create Row</button><br>
|
2013-02-13 15:24:32 -06:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-success" ng-click="dismiss();reset_panel();">Close</button>
|
|
|
|
|
</div>
|