OSDN Git Service

template: fix feed and boxes manager
authorhylom <hylom@users.sourceforge.jp>
Thu, 3 Aug 2017 13:36:49 +0000 (22:36 +0900)
committerhylom <hylom@users.sourceforge.jp>
Thu, 3 Aug 2017 13:36:49 +0000 (22:36 +0900)
src/newslash_web/templates/admin/feed/index.html.tt2
src/newslash_web/templates/admin/sidebar/index.html.tt2

index 3710b64..2994641 100644 (file)
@@ -8,10 +8,9 @@
     <table class="table table-hover">
       <thead>
         <tr>
-          <th></th>
-          <th>ID</th>
+          <th>#</th>
+          <th>name</th>
           <th>title</th>
-          <th>description</th>
           <th>url</th>
           <th>status</th>
           <th>last fetched</th>
@@ -21,9 +20,8 @@
       <tbody>
         <tr v-for="item in feeds" v-on:dblclick="editItem(item)">
           <td><input type="checkbox" v-model="item.selected" /></td>
-          <td v-text="item.feed_id"></td>
+          <td v-text="item.name"></td>
           <td v-text="item.title"></td>
-          <td v-text="item.description"></td>
           <td v-text="item.url"></td>
           <td v-text="item.status"></td>
           <td v-text="item.latest_fetch_time"></td>
index dc69847..dd25fb0 100644 (file)
@@ -8,14 +8,14 @@
     <table class="table table-hover">
       <thead>
         <tr>
-          <th></th><th>ID</th><th>name</th><th>model</th><th>query_params</th><th>limit</th><th>action</th>
+          <th></th><th>name</th><th>title</th><th>model</th><th>query_params</th><th>limit</th><th>action</th>
         </tr>
       </thead>
       <tbody>
         <tr v-for="item in boxItems" v-on:dblclick="editItem(item)">
           <td><input type="checkbox" v-model="item.selected" /></td>
           <td v-text="item.name"></td>
-          <td v-text="item.comment"></td>
+          <td v-text="item.title"></td>
           <td v-text="item.model"></td>
           <td v-text="item.query_params"></td>
           <td v-text="item.limit"></td>
               <span class="glyphicon glyphicon-remove" aria-hidden="true" v-show="nameNg"></span>
             </p>
             <p class="form-inline">
+              <label for="box-name">title: </label>
+              <input id="box-title" type="text" class="form-control" name="title" v-model="box.title" placeholder="title" />
+            </p>
+            <p class="form-inline">
               <label for="box-comment">comment: </label>
-              <input id="box-comment" type="text" class="form-control" name="comment" v-model="box.comment" placeholder="comment" />
+              <textarea id="box-comment" class="form-control" name="comment" v-model="box.comment" placeholder="comment" /></textarea>
             </p>
             <p class="form-inline">
               <label for="box-model">model: </label>