[Groonga-commit] groonga/groonga-admin at 872a723 [master] Move column list to sidebar

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Nov 7 17:12:35 JST 2014


Kouhei Sutou	2014-11-07 17:12:35 +0900 (Fri, 07 Nov 2014)

  New Revision: 872a723efca26d9c66fef9542fc552679def3db1
  https://github.com/groonga/groonga-admin/commit/872a723efca26d9c66fef9542fc552679def3db1

  Message:
    Move column list to sidebar

  Modified files:
    app/styles/main.scss
    app/views/tables/search.html

  Modified: app/styles/main.scss (+12 -0)
===================================================================
--- app/styles/main.scss    2014-11-05 16:57:53 +0900 (3b124f8)
+++ app/styles/main.scss    2014-11-07 17:12:35 +0900 (10fc0df)
@@ -5,6 +5,18 @@ $icon-font-path: "../bower_components/bootstrap-sass-official/assets/fonts/boots
 
 .sidebar {
   @extend .col-md-2;
+
+  .table-columns {
+    @extend .table-responsive;
+
+    table {
+      @extend .table;
+      @extend .table-striped;
+      @extend .table-bordered;
+      @extend .table-hover;
+      @extend .table-condensed;
+    }
+  }
 }
 
 .main-content {

  Modified: app/views/tables/search.html (+18 -9)
===================================================================
--- app/views/tables/search.html    2014-11-05 16:57:53 +0900 (46790ef)
+++ app/views/tables/search.html    2014-11-07 17:12:35 +0900 (9dbbffd)
@@ -7,6 +7,24 @@
   </ol>
 
   <div class="sidebar">
+    <div class="table-columns">
+      <table>
+        <thead>
+          <tr>
+            <th>Name</th>
+            <th>Output</th>
+          </tr>
+        </thead>
+        <tbody>
+          <tr ng-repeat="outputColumn in outputColumns track by $index">
+            <td>{{outputColumn.name}}</td>
+            <td><input type="checkbox"
+                       ng-model="outputColumn.inUse"></td>
+          </tr>
+        </tbody>
+      </table>
+    </div>
+
     <div class="panel panel-default"
          ng-repeat="drilldown in drilldowns track by $index">
       <div class="panel-heading">
@@ -47,15 +65,6 @@
           <span class="input-group-addon">Query</span>
           <input type="search" class="form-control" ng-model="parameters.query">
         </div>
-        <div class="input-group">
-          <span ng-repeat="outputColumn in outputColumns track by $index">
-            <label>
-              <input type="checkbox"
-                     ng-model="outputColumn.inUse">
-              {{outputColumn.name}}
-            </label>
-          </span>
-        </div>
       </div>
       <div class="form-group">
         <button ng-click="search()" class="btn btn-default">Search</button>
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index