From 7f03a30fd59f3c42be4b0bad2f0a40e36c4ffe53 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sun, 3 Mar 2013 21:38:21 -0500 Subject: [PATCH] remove "advanced" section, clean up the task-edit form a bit --- src/app/tasks.coffee | 6 +---- views/app/tasks.html | 58 +++++++++++++++++++++++--------------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/app/tasks.coffee b/src/app/tasks.coffee index 02ee38901f..32afa0699f 100644 --- a/src/app/tasks.coffee +++ b/src/app/tasks.coffee @@ -178,11 +178,7 @@ module.exports.app = (appExports, model) -> $('[rel=tooltip]').tooltip() $('[rel=popover]').popover() - appExports.tasksToggleAdvanced = (e, el) -> - $(el).next('.advanced').toggle() - appExports.tasksSetMultiplier = (e, el) -> dataId = $(el).parent('[data-id]').attr('data-id') #"_user.tasks.#{dataId}" - model.at(e.target).set 'multiplier', parseInt($(el).attr('data-multiplier')) - debugger \ No newline at end of file + model.at(e.target).set 'multiplier', parseInt($(el).attr('data-multiplier')) \ No newline at end of file diff --git a/views/app/tasks.html b/views/app/tasks.html index b3b6b7e88e..112dfc4aaa 100644 --- a/views/app/tasks.html +++ b/views/app/tasks.html @@ -176,31 +176,36 @@ {#if equal(:task.type, 'habit')} -
- - -
+
+ +
+ + +
{else if equal(:task.type, 'daily')} - -
- - - - - - - - -
+
+ +
+ + + + + + + + +
{else if equal(:task.type, 'reward')} -
-
{else if equal(:task.type, 'todo')} +
@@ -209,18 +214,17 @@ {/} {#unless equal(:task.type, 'reward')} +
-
- Advanced -
- - - - -
+
+ + + +
{/} +