From 039458567476a51fb868df163e44b1a888e42d78 Mon Sep 17 00:00:00 2001 From: Andrej Badin Date: Sat, 30 Nov 2013 23:45:24 +0100 Subject: [PATCH 1/3] Added empty 'temp' directory --- .gitignore | 4 +++- temp/.gitkeep | 0 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 temp/.gitkeep diff --git a/.gitignore b/.gitignore index 47f7193..2b5e777 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .idea/* .DS_Store -/app/config/config.live.neon \ No newline at end of file +/app/config/config.live.neon +/temp/* +!.gitkeep \ No newline at end of file diff --git a/temp/.gitkeep b/temp/.gitkeep new file mode 100644 index 0000000..e69de29 From 482dcace3146dc3c507b8a4769c2ede919a36f47 Mon Sep 17 00:00:00 2001 From: Andrej Badin Date: Sat, 30 Nov 2013 23:47:00 +0100 Subject: [PATCH 2/3] Added missing 'position' column --- db/pastenotes_2013-05-31.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/db/pastenotes_2013-05-31.sql b/db/pastenotes_2013-05-31.sql index 0477616..6c8274b 100644 --- a/db/pastenotes_2013-05-31.sql +++ b/db/pastenotes_2013-05-31.sql @@ -52,6 +52,7 @@ CREATE TABLE `pools` ( `isDeleted` tinyint(4) DEFAULT '0', `isDone` tinyint(4) DEFAULT '0', `isActive` tinyint(4) DEFAULT '0', + `position` INT UNSIGNED NULL, PRIMARY KEY (`id`), KEY `note_id` (`note_id`), CONSTRAINT `pools_ibfk_1` FOREIGN KEY (`note_id`) REFERENCES `notes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE From 7625beb48e369a88060d0a9e167fca3bc0e43653 Mon Sep 17 00:00:00 2001 From: Andrej Badin Date: Sat, 30 Nov 2013 23:53:58 +0100 Subject: [PATCH 3/3] Added handles to move rows instead of whole rows --- app/templates/Code/default.latte | 21 ++++++----- www/css/screen.css | 60 +++++++++++++++++--------------- 2 files changed, 45 insertions(+), 36 deletions(-) diff --git a/app/templates/Code/default.latte b/app/templates/Code/default.latte index 5e37261..33a0ce3 100755 --- a/app/templates/Code/default.latte +++ b/app/templates/Code/default.latte @@ -1,11 +1,11 @@ {block content} -
-
+
+
{control parser}
-
-
+
+
Add new pool @@ -31,12 +31,14 @@ {if $pool->tasks} {foreach $pool->tasks as $task}
+ {if $pool->isDone == 1} {else} {/if} {$task->text} +
{/foreach} @@ -62,7 +64,7 @@
@@ -81,6 +83,7 @@ {/if} {$task->text} +
{/foreach} @@ -109,7 +112,7 @@
    {foreach $userPools as $pool}
{/snippet} -
-
+
+
{snippet script}