1

Improved layout

This commit is contained in:
Alex Yatskov 2015-03-12 10:48:21 +09:00
parent 8f01c714e4
commit 9edb58590d

View File

@ -11,16 +11,18 @@
<table class="table table-striped">
<thead>
<tr>
<th class="text-left">Category</th>
<th class="text-right">Rating</th>
<th></th>
<th>Category</th>
<th>Rating</th>
</tr>
</thead>
<tbody id="categories"></tbody>
<script id="template" type="text/x-handlers-template">
{{#each categories}}
<tr class="category_{{id}}">
<td class="text-left">{{description}}</td>
<td class="text-right">
<td><button type="button" data-categoryId="{{id}}" class="btn btn-xs btn-danger">&times;</button></td>
<td>{{description}}</td>
<td>
<label class="radio-inline">
<input type="radio" name="category_{{id}}" data-categoryId="{{id}}" value="1" {{checkMatch 1}}> Agree
</label>
@ -30,7 +32,6 @@
<label class="radio-inline">
<input type="radio" name="category_{{id}}" data-categoryId="{{id}}" value="0" {{checkMatch 0}}> Neither
</label>
&nbsp;<button type="button" data-categoryId="{{id}}" class="btn btn-xs btn-danger">&times;</button>
</td>
</tr>
{{/each}}