OSDN Git Service

ad207a106c67313363b0c4b48fed8581a8d59e8d
[newslash/newslash.git] / src / newslash_web / templates / admin / submissions / index.html.tt2
1 [% WRAPPER common/layout enable_vuejs=1 %]
2
3 <div class="console" id="submissions-manager">
4   <h3>Submissions</h3>
5   <div v-text="message"></div>
6   <form class="items">
7     <table class="table table-hover">
8       <thead>
9         <tr>
10           <th></th>
11           <th>date</th>
12           <th>title</th>
13           <th>author</th>
14           <th>note</th>
15           <th>comment</th>
16           <th>introtext</th>
17         </tr>
18       </thead>
19       <tbody>
20         <tr v-for="item in submissions" v-on:dblclick="editItem(item)">
21           <td><input type="checkbox" v-model="item.selected" /></td>
22           <td v-text="item.time"></td>
23           <td><a :href="item.url" v-text="item.subj" target="_blank"></a></td>
24           <td v-text="item.author"></td>
25           <td v-text="item.note"></td>
26           <td v-text="item.comment"></td>
27           <td v-text="item.choppedText"></td>
28         </tr>
29       </tbody>
30     </table>
31
32     <div class="actions">
33       <button class="btn btn-default" type="button" v-on:click="updateItem()">Update</button>
34       <button class="btn btn-default" type="button" v-on:click="deleteItem()">Delete</button>
35       <label>
36         <input type="checkbox" v-model="showDeletedSubjs"
37                v-on:click="updateItem()">削除済みのタレコミも表示</input>
38       </label>
39     </div>
40   </form>
41 </div>
42
43
44 [% helpers.load_js("submissions-manager.js") %]
45 [%# <script src="/js/submissions-manager.js" ></script> %]
46 <script>
47   submissionsManager.run({ el: '#submissions-manager' });
48 </script>
49
50 [% END %]