Created
March 28, 2014 16:31
-
-
Save David-Melo/9837017 to your computer and use it in GitHub Desktop.
Goals HTML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- TRACKING GOALS SELECT --> | |
<table class="table table-hover imp-table"> | |
<thead> | |
<tr> | |
<th width="40%">Goal Name</th> | |
<th width="40%">Goal URL</th> | |
<th width="20%">Goal Weight (%)</th> | |
</tr> | |
<!-- ko ifnot: my.vm.orders.goals.list().length > 0 --> | |
<tr> | |
<td colspan="3">No Goals</td> | |
</tr> | |
<!-- /ko --> | |
</thead> | |
<tbody data-bind="foreach: my.vm.orders.goals.list"> | |
<tr> | |
<td><input type="text" class="input-block-level" data-bind="value: title"/></td> | |
<td><input type="text" class="input-block-level" data-bind="value: url"/></td> | |
<td><input type='text' class="input-block-level" style="text-align: center" data-bind="value: weight"></td> | |
</tr> | |
</tbody> | |
<tfoot> | |
<tr data-bind="style: { color: (my.vm.orders.goals.totalWeight()!=='100') ? 'red' : '' }"> | |
<th colspan="2" style="text-align: right;">Total Weight</th> | |
<th style="text-align: center;"><span data-bind="text: Globalize.format(my.vm.orders.goals.totalWeight()/100,'p0')"></span></th> | |
</tr> | |
</tfoot> | |
</table> | |
<button class="btn btn-danger" data-bind="click: my.vm.orders.goals.reset"><i class='icon-trash'></i></button> | |
<button class="btn pull-right" data-bind="click: my.vm.orders.goals.add">Add New Goal</button> | |
<!-- TRACKING GOALS SELECT --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment