Quellcode durchsuchen

Merge pull request #69 from rashidkpc/master

mortini's create panel button suggestion
Rashid Khan vor 12 Jahren
Ursprung
Commit
8cc492a202
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 4 3
      partials/roweditor.html

+ 4 - 3
partials/roweditor.html

@@ -20,13 +20,14 @@
   </div>
   </div>
   <div class="row-fluid">
   <div class="row-fluid">
     <h4>New Panel</h4>
     <h4>New Panel</h4>
-    <select class="input-medium" ng-model="panel.type" ng-options="f for f in config.modules|stringSort"></select>
-    <small>Select Type</small>
+    <form class="input-append">
+    <select class="input-medium input-append" ng-model="panel.type" ng-options="f for f in config.modules|stringSort"></select>
+    <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>
+
     <div ng-show="!(_.isUndefined(panel.type))">
     <div ng-show="!(_.isUndefined(panel.type))">
       <div ng-include src="'partials/panelgeneral.html'"></div>
       <div ng-include src="'partials/panelgeneral.html'"></div>
 
 
       <div add-panel="{{panel.type}}"></div>
       <div add-panel="{{panel.type}}"></div>
-      <button ng-click="add_panel(row,panel); reset_panel();" class="btn btn-primary">Create Panel</button><br>
     </div>
     </div>
   </div>
   </div>
   <div class="row-fluid">
   <div class="row-fluid">