2013-02-17 05:25:42 +00:00
|
|
|
|
<taskLists:>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<!--helpTitle & helpContent moved to tour -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Habits Column -->
|
|
|
|
|
|
<div class="module">
|
|
|
|
|
|
<div class="task-column habits">
|
2013-03-06 03:06:45 +00:00
|
|
|
|
<h2 class="task-column_title">Habits</h2>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<app:newTask type="habit" inputValue="{_newHabit}" placeHolder="New Habit" />
|
|
|
|
|
|
<ul class="habits">{#each _habitList as :task}<app:task />{/}</ul>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
</div>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Dailys Column -->
|
|
|
|
|
|
<div class="module">
|
|
|
|
|
|
<div class="task-column dailys">
|
2013-03-06 03:06:45 +00:00
|
|
|
|
<h2 class="task-column_title">Daily</h2>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<app:newTask type="daily" inputValue="{_newDaily}" placeHolder="New Daily" />
|
|
|
|
|
|
<ul class='dailys'>{#each _dailyList as :task}<app:task />{/}</ul>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- Todos Column -->
|
|
|
|
|
|
<div class="module">
|
|
|
|
|
|
<div class="task-column todos context-enabled context-uncompleted tabbable tabs-below" id="todo-well">
|
2013-03-06 06:15:45 +00:00
|
|
|
|
<!-- todo export/graph options -->
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<span class='option-box pull-right'>
|
|
|
|
|
|
{#if _user.history.todos}
|
|
|
|
|
|
<a class="option-action" x-bind=click:toggleChart data-toggle-id="todos-chart" data-history-path="_user.history.todos" rel=tooltip title="Progress"><i class=icon-signal></i></a>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
{/}
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<a class="option-action" href="/v1/users/{{_user.id}}/calendar.ics?apiToken={{_user.apiToken}}" rel=tooltip title="iCal"><i class=icon-calendar></i></a>
|
|
|
|
|
|
<!-- <a href="https://www.google.com/calendar/render?cid={{encodeiCalLink(_user.id, _user.apiToken)}}" rel=tooltip title="Google Calendar"><i class=icon-calendar></i></a> -->
|
|
|
|
|
|
</span>
|
2013-03-06 03:06:45 +00:00
|
|
|
|
<h2 class="task-column_title">Todos</h2>
|
2013-03-06 06:15:45 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- create new todo -->
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<div class="display-context-dependant show-for-uncompleted">
|
|
|
|
|
|
<app:newTask type="todo" inputValue="{_newTodo}" placeHolder="New Todo" />
|
|
|
|
|
|
</div>
|
2013-03-06 06:15:45 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- list of all the todos -->
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<ul class='todos task-list'>
|
|
|
|
|
|
{#each _todoList as :task}<app:task />{/}
|
|
|
|
|
|
</ul>
|
2013-03-06 06:15:45 +00:00
|
|
|
|
|
|
|
|
|
|
<button class='task-action-btn tile spacious bright display-context-dependant show-for-completed' x-bind=click:clearCompleted>Clear Completed</button>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<div id="todos-chart" style="display:none;"></div>
|
2013-03-06 06:15:45 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- remaining/completed tabs -->
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<ul class="todo-status-toggler nav nav-tabs">
|
|
|
|
|
|
<li class="active"><a x-bind=click:changeContext data-target="#todo-well" data-context="context-uncompleted">Remaining</a></li>
|
|
|
|
|
|
<li><a x-bind=click:changeContext data-target="#todo-well" data-context="context-completed">Complete</a></li>
|
|
|
|
|
|
</ul>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
</div>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Rewards Column -->
|
|
|
|
|
|
<div class="module">
|
|
|
|
|
|
<div class="task-column rewards">
|
|
|
|
|
|
<!--Title -->
|
|
|
|
|
|
<div class="row-fluid">
|
2013-03-06 03:06:45 +00:00
|
|
|
|
<div class="span6"><h2 class="task-column_title">Rewards</h2></div>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<div class="span6">
|
|
|
|
|
|
{#unless _view.activeTabPets}
|
|
|
|
|
|
<table><tr>
|
|
|
|
|
|
<td>{gold(_user.stats.gp)} </td>
|
|
|
|
|
|
<td><div class='shop_gold' rel='tooltip' title='Gold'></div></td>
|
|
|
|
|
|
<td>{silver(_user.stats.gp)} </td>
|
|
|
|
|
|
<td><div class='shop_silver' rel='tooltip' title='Silver'></div></td>
|
|
|
|
|
|
<!--<td>{copper(_user.stats.gp)} </td>
|
|
|
|
|
|
<td><div class='shop_copper' rel='tooltip' title='shop_copper'></div></td>-->
|
|
|
|
|
|
</tr></table>
|
|
|
|
|
|
{else}
|
|
|
|
|
|
<app:userTokens />
|
|
|
|
|
|
{/}
|
2013-02-17 05:25:42 +00:00
|
|
|
|
</div>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<app:newTask type="reward" inputValue="{_newReward}" placeHolder="New Reward" />
|
|
|
|
|
|
|
2013-03-06 01:10:03 +00:00
|
|
|
|
{#if equal(_user.flags.petsEnabled,true)}
|
|
|
|
|
|
<div class='tabbable tabs-below'>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
|
2013-03-06 01:10:03 +00:00
|
|
|
|
<div class="tab-content">
|
|
|
|
|
|
<div class="tab-pane active" id="rewards-tab">
|
|
|
|
|
|
<app:rewardsTab />
|
2013-03-06 01:08:31 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2013-03-06 01:10:03 +00:00
|
|
|
|
<div class="tab-pane" id="pets-tab">
|
|
|
|
|
|
{#with _view.items.pets as :pets}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
|
{#with :pets[0]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[1]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[2]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[3]}<app:pet />{/}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
|
{#with :pets[4]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[5]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[6]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[7]}<app:pet />{/}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
|
{#with :pets[8]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[9]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[10]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[11]}<app:pet />{/}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
|
{#with :pets[12]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[13]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[14]}<app:pet />{/}
|
|
|
|
|
|
{#with :pets[15]}<app:pet />{/}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
|
{#with :pets[16]}<app:pet />{/}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/}
|
2013-03-06 01:08:31 +00:00
|
|
|
|
</div>
|
2013-03-06 01:10:03 +00:00
|
|
|
|
<!--<div class="tab-pane" id="mounts-tab">...</div>-->
|
2013-02-17 05:25:42 +00:00
|
|
|
|
</div>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
2013-03-06 01:10:03 +00:00
|
|
|
|
<ul class="nav nav-tabs" id="rewardsTabs">
|
|
|
|
|
|
<li class="active"><a href="#rewards-tab" data-toggle="tab" x-bind="click:activateRewardsTab">Rewards</a></li>
|
|
|
|
|
|
<li><a href="#pets-tab" id='pets-tab' data-toggle="tab" x-bind='click:activatePetsTab'>Pets</a></li>
|
|
|
|
|
|
<!--<li><a href="#mounts-tab" data-toggle="tab">Mounts</a></li>-->
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
2013-03-06 01:08:31 +00:00
|
|
|
|
{else}
|
2013-03-06 01:10:03 +00:00
|
|
|
|
<app:rewardsTab />
|
2013-03-06 01:08:31 +00:00
|
|
|
|
{/}</div>
|
|
|
|
|
|
</div>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
|
2013-03-05 20:01:52 +00:00
|
|
|
|
<!-- Templates -->
|
2013-02-17 05:25:42 +00:00
|
|
|
|
<newTask:>
|
2013-03-05 00:42:48 +00:00
|
|
|
|
<form class="addtask-form form-inline new-task-form" id="new-{@type}" data-task-type="{@type}" x-bind="submit:addTask">
|
2013-03-05 19:16:10 +00:00
|
|
|
|
<span class="addtask-field"><input value="{@inputValue}" type="text" name="new-task" placeholder="{@placeHolder}"/></span>
|
2013-03-09 03:26:01 +00:00
|
|
|
|
<input class="addtask-btn" type="submit" value="+">
|
2013-02-17 05:25:42 +00:00
|
|
|
|
</form>
|
2013-03-05 19:16:10 +00:00
|
|
|
|
<hr>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<!-- all the parts of a single task -->
|
|
|
|
|
|
<task:>
|
|
|
|
|
|
<li data-id={{:task.id}} class="task {taskClasses(:task.type, :task.completed, :task.value, :task.repeat)}">
|
2013-03-06 05:49:02 +00:00
|
|
|
|
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<!-- right-hand side control buttons -->
|
|
|
|
|
|
<div class="task-meta-controls">
|
2013-03-06 03:06:45 +00:00
|
|
|
|
<!-- edit -->
|
|
|
|
|
|
<a x-bind=click:toggleTaskEdit data-hide-id="{{:task.id}}-chart" data-toggle-id="{{:task.id}}-edit" rel=tooltip title="Edit"><i class="icon-pencil"></i></a>
|
|
|
|
|
|
<!-- delete -->
|
|
|
|
|
|
<a x-bind=click:del rel=tooltip title="Delete"><i class="icon-trash"></i></a>
|
|
|
|
|
|
<!-- chart -->
|
|
|
|
|
|
<!-- removing for now cuz it's broken -->
|
|
|
|
|
|
{#if :task.history}
|
|
|
|
|
|
<!-- <a x-bind=click:toggleChart data-toggle-id="{{:task.id}}-chart" data-hide-id="{{:task.id}}-edit" data-history-path="_user.tasks.{{:task.id}}.history" rel="tooltip" title="Progress"><i class="icon-signal"></i></a> -->
|
|
|
|
|
|
{/}
|
|
|
|
|
|
<!-- notes -->
|
2013-03-06 01:08:31 +00:00
|
|
|
|
{#if :task.notes}
|
|
|
|
|
|
<span rel="popover" data-trigger="hover" data-placement="left" data-content="{:task.notes}" data-original-title="{:task.text}" class='task-notes'><i class="icon-comment"></i></span>
|
|
|
|
|
|
{/}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- left-hand side checkbox -->
|
|
|
|
|
|
<div class="task-controls">
|
|
|
|
|
|
<!-- Habits -->
|
|
|
|
|
|
{#if equal(:task.type, 'habit')}
|
2013-03-06 05:49:02 +00:00
|
|
|
|
{#if :task.up}<a class="task-action-btn btn-plus" data-direction=up x-bind=click:score>+</a>{/}
|
|
|
|
|
|
{#if :task.down}<a class="task-action-btn btn-minus" data-direction=down x-bind=click:score>−</a>{/}
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<!-- Rewards -->
|
|
|
|
|
|
{else if equal(:task.type, 'reward')}
|
|
|
|
|
|
<a class="task-action-btn action-buy" x-bind=click:score class="buy-link" data-direction=down>{:task.value}<img src="/img/coin_single_gold.png"/></a>
|
|
|
|
|
|
<!-- Daily & Todos -->
|
|
|
|
|
|
{else}
|
2013-03-06 05:49:02 +00:00
|
|
|
|
<span class="task-checker action-yesno">
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<input type=checkbox id="box-{{:task.id}}" class="visuallyhidden focusable" checked="{:task.completed}">
|
|
|
|
|
|
<label for="box-{{:task.id}}"></label>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
{/}
|
|
|
|
|
|
</div>
|
2013-03-05 00:42:48 +00:00
|
|
|
|
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<!-- main content -->
|
|
|
|
|
|
<p class="task-text">{:task.text}</p>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
|
2013-03-06 01:08:31 +00:00
|
|
|
|
<!-- edit/options dialog -->
|
|
|
|
|
|
<app:taskMeta />
|
|
|
|
|
|
</li>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
|
2013-03-06 03:19:20 +00:00
|
|
|
|
<!-- task edit/options -->
|
2013-02-17 05:25:42 +00:00
|
|
|
|
<taskMeta:>
|
2013-03-06 03:19:20 +00:00
|
|
|
|
<div id="{{:task.id}}-edit" class="task-options visuallyhidden">
|
2013-02-17 05:25:42 +00:00
|
|
|
|
<form x-bind=submit:toggleTaskEdit data-toggle-id="{{:task.id}}-edit">
|
2013-03-06 05:49:02 +00:00
|
|
|
|
<!-- text & notes -->
|
|
|
|
|
|
<fieldset class="option-group">
|
|
|
|
|
|
<label class="option-title">Text</label><input class="option-content" type=text value={:task.text}>
|
|
|
|
|
|
<label class="option-title">Extra Notes</label><textarea class="option-content" rows=3>{:task.notes}</textarea>
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- if Habit, plus/minus command options -->
|
2013-02-17 05:25:42 +00:00
|
|
|
|
{#if equal(:task.type, 'habit')}
|
2013-03-06 05:49:02 +00:00
|
|
|
|
<fieldset class="option-group">
|
|
|
|
|
|
<legend class="option-title">Direction/Actions</legend>
|
|
|
|
|
|
<span class="task-checker action-plusminus select-toggle">
|
|
|
|
|
|
<input class="visuallyhidden focusable" type=checkbox id="{{:task.id}}-option-plus" checked={:task.up}>
|
|
|
|
|
|
<label for="{{:task.id}}-option-plus"></label>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<span class="task-checker action-plusminus select-toggle">
|
|
|
|
|
|
<input class="visuallyhidden focusable" type=checkbox id="{{:task.id}}-option-minus" checked={:task.down}>
|
|
|
|
|
|
<label for="{{:task.id}}-option-minus"></label>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- if Daily, calendar -->
|
2013-02-17 05:25:42 +00:00
|
|
|
|
{else if equal(:task.type, 'daily')}
|
2013-03-06 05:49:02 +00:00
|
|
|
|
<fieldset class="option-group">
|
|
|
|
|
|
<legend class="option-title">Repeat</legend>
|
|
|
|
|
|
<div class="task-controls tile-group repeat-days">
|
|
|
|
|
|
<!-- note, does not use data-toggle="buttons-checkbox" - it would interfere with our own click binding -->
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if :task.repeat.su}active{/}" data-day='su' x-bind=click:toggleDay>Su</button>
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if :task.repeat.m}active{/}" data-day='m' x-bind=click:toggleDay>M</button>
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if :task.repeat.t}active{/}" data-day='t' x-bind=click:toggleDay>T</button>
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if :task.repeat.w}active{/}" data-day='w' x-bind=click:toggleDay>W</button>
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if :task.repeat.th}active{/}" data-day='th' x-bind=click:toggleDay>Th</button>
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if :task.repeat.f}active{/}" data-day='f' x-bind=click:toggleDay>F</button>
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if :task.repeat.s}active{/}" data-day='s' x-bind=click:toggleDay>S</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- if Reward, pricing -->
|
2013-02-17 05:25:42 +00:00
|
|
|
|
{else if equal(:task.type, 'reward')}
|
2013-03-04 02:38:21 +00:00
|
|
|
|
<div class=control-group>
|
|
|
|
|
|
<label>Price</label>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
<div class="input-append">
|
|
|
|
|
|
<input class="span5" size="16" type="number" min="0" value={:task.value}><span class="add-on">Gold</span>
|
|
|
|
|
|
</div>
|
2013-03-04 02:38:21 +00:00
|
|
|
|
</div>
|
2013-03-06 05:49:02 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- if Todo, the due date -->
|
2013-02-17 05:25:42 +00:00
|
|
|
|
{else if equal(:task.type, 'todo')}
|
2013-03-06 05:49:02 +00:00
|
|
|
|
<fieldset class="option-group">
|
|
|
|
|
|
<legend class="option-title">Due Date</legend>
|
|
|
|
|
|
<input class="option-content datepicker" type="text" value="{:task.date}" data-date-format="mm/dd/yyyy">
|
|
|
|
|
|
</fieldset>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
{/}
|
2013-03-06 05:49:02 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- Advanced Options -->
|
2013-03-03 22:54:14 +00:00
|
|
|
|
{#unless equal(:task.type, 'reward')}
|
2013-03-06 05:49:02 +00:00
|
|
|
|
<p x-bind="click:tasksToggleAdvanced" class="option-title mega">Advanced Options</p>
|
|
|
|
|
|
<fieldset class="option-group advanced-option visuallyhidden">
|
|
|
|
|
|
<legend class="option-title"><a class='priority-multiplier-help' href="https://trello.com/card/priority-multiplier/50e5d3684fe3a7266b0036d6/17" target="_blank"><i class='icon-question-sign'></i></a> Difficulty</legend>
|
|
|
|
|
|
<div class="task-controls tile-group priority-multiplier" data-id="{{:task.id}}">
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if equal(:task.priority,'!')}active{/}{#unless :task.priority}active{/}" data-priority='!' x-bind=click:tasksSetPriority>Easy</button>
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if equal(:task.priority,'!!')}active{/}" data-priority='!!' x-bind=click:tasksSetPriority>Medium</button>
|
|
|
|
|
|
<button type="button" class="task-action-btn tile {#if equal(:task.priority,'!!!')}active{/}" data-priority='!!!' x-bind=click:tasksSetPriority>Hard</button>
|
2013-03-03 22:54:14 +00:00
|
|
|
|
</div>
|
2013-03-06 05:49:02 +00:00
|
|
|
|
</fieldset>
|
2013-03-03 22:54:14 +00:00
|
|
|
|
{/}
|
2013-03-06 05:49:02 +00:00
|
|
|
|
<button type=submit class="task-action-btn tile spacious" x-bind="click:tasksSaveAndClose">Save & Close</button>
|
2013-02-17 05:25:42 +00:00
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="display:none;" id={{:task.id}}-chart></div>
|