Shaun Chyxion 64d1dab732 update
2017-08-16 21:33:34 +08:00

71 lines
2.6 KiB
Handlebars

{{#main-content}}
<div class="widget-box transparent">
{{grid-header}}
<div class="widget-body">
<!-- #section:custom/scrollbar -->
<div class="widget-main no-padding table-responsive no-border">
<table class="table table-striped table-bordered table-hover dataTable" style="border: 1px solid #ddd;">
<thead class="thin-border-bottom">
<tr>
<th>
{{th-filter full-width=true name='quarter' text='Week' label='Quarter' options=quarters}}
</th>
<th>
Goal
</th>
<th>
Done
</th>
<th>
Rate
</th>
<th>
<i class="ace-icon fa fa-sticky-note-o bigger-110"></i> Remark
</th>
</tr>
</thead>
<tbody>
{{#each model.data as |it|}}
<tr>
<td>
{{date-cell value=it.dateStart format='M.D'}} - {{date-cell value=it.dateEnd format='M.D'}}
</td>
<td>
{{editable-cell type='number' model=it field='goal' min=0}}
</td>
<td>
{{editable-cell type='number' model=it field='done' min=0 max=it.goal}}
</td>
<td>
{{week-goal/completion-rate it}}
</td>
<td>
{{editable-cell model=it field='note'}}
</td>
</tr>
{{/each}}
<tr>
<td>
Total
</td>
<td>
{{week-goal/total-goal model.data}}
</td>
<td>
{{week-goal/total-done model.data}}
</td>
<td>
{{week-goal/total-completion-rate model.data}}
</td>
<td>
</td>
</tr>
</tbody>
</table>
</div>
{{!pagination-bar}}
</div>
</div>
{{/main-content}}