Changed month selection behaviour.

This commit is contained in:
Alexis Lahouze
2013-01-08 18:50:47 +01:00
parent 7d54015970
commit 5ccddb0511
3 changed files with 33 additions and 43 deletions

View File

@ -24,24 +24,28 @@
<p><a class="btn btn-primary" data-bind="click: $root.add" href="#" title="Add entry"><i class="icon-plus"></i> Add entry</a></p>
<p><select class="span1" data-bind="options: years, value: year"></select><select class="span1" data-bind="options: months, value: month"></select></p>
<div class="tabbable">
<ul data-bind="foreach: months()" class="nav nav-tabs">
<li data-bind="css: {'active': $data == $root.month()}"><a href="#" data-bind="click: $parent.changeMonth"><span data-bind="text: $data.year"></span>-<span data-bind="text: $data.month"></span></a></li>
</ul>
<table class="table table-striped table-condensed table-hover">
<thead>
<tr>
<th style="width: 100px">Value date</th>
<th style="width: 100px">Op. date</th>
<th>Label</th>
<th style="width: 50px">Value</th>
<th style="width: 50px">Sold</th>
<th style="width: 50px">Pointed sold</th>
<th style="width: 60px">Actions</th>
</tr>
</thead>
<table class="table table-striped table-condensed table-hover">
<thead>
<tr>
<th style="width: 100px">Value date</th>
<th style="width: 100px">Op. date</th>
<th>Label</th>
<th style="width: 50px">Value</th>
<th style="width: 50px">Sold</th>
<th style="width: 50px">P. sold</th>
<th style="width: 60px">Actions</th>
</tr>
</thead>
<tbody data-bind="template:{name: templateToUse, foreach: entries}">
</tbody>
</table>
<tbody data-bind="template:{name: templateToUse, foreach: entries}">
</tbody>
</table>
</div>
</div>
</div>
</div>