Skip to content

Commit 8cc492a

Browse files
author
Rashid Khan
committed
Merge pull request #69 from rashidkpc/master
mortini's create panel button suggestion
2 parents 3e695bf + b2d8f16 commit 8cc492a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

partials/roweditor.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ <h4>Row Control</h4>
2020
</div>
2121
<div class="row-fluid">
2222
<h4>New Panel</h4>
23-
<select class="input-medium" ng-model="panel.type" ng-options="f for f in config.modules|stringSort"></select>
24-
<small>Select Type</small>
23+
<form class="input-append">
24+
<select class="input-medium input-append" ng-model="panel.type" ng-options="f for f in config.modules|stringSort"></select>
25+
<small ng-show="!panel.type">Select Type</small> <button ng-show="panel.type" ng-click="add_panel(row,panel); reset_panel();" class="btn btn-success ">Add <i class="icon-plus"></i></button></form>
26+
2527
<div ng-show="!(_.isUndefined(panel.type))">
2628
<div ng-include src="'partials/panelgeneral.html'"></div>
2729

2830
<div add-panel="{{panel.type}}"></div>
29-
<button ng-click="add_panel(row,panel); reset_panel();" class="btn btn-primary">Create Panel</button><br>
3031
</div>
3132
</div>
3233
<div class="row-fluid">

0 commit comments

Comments
 (0)