From 628958fc2d19639db37be51ce89ec3300db03b6e Mon Sep 17 00:00:00 2001 From: bsag Date: Mon, 4 Jun 2007 18:59:56 +0000 Subject: [PATCH] Added styled submit and cancel buttons to the new action and edit action form, thanks to a great tutorial at Particletree: http://particletree.com/features/rediscovering-the-button-element/ I'll style the other submit buttons like this in due course for consistency. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@551 a4c988fc-2ded-0310-b66e-134b36920a42 --- .../app/views/shared/_add_new_item_form.rhtml | 10 +- tracks/app/views/todos/_edit_form.rhtml | 13 +- tracks/public/images/accept.png | Bin 0 -> 781 bytes tracks/public/images/cancel.png | Bin 0 -> 587 bytes tracks/public/stylesheets/standard.css | 168 +++++++++++++----- 5 files changed, 139 insertions(+), 52 deletions(-) create mode 100755 tracks/public/images/accept.png create mode 100755 tracks/public/images/cancel.png diff --git a/tracks/app/views/shared/_add_new_item_form.rhtml b/tracks/app/views/shared/_add_new_item_form.rhtml index def1d9b6..a59ea796 100644 --- a/tracks/app/views/shared/_add_new_item_form.rhtml +++ b/tracks/app/views/shared/_add_new_item_form.rhtml @@ -76,9 +76,15 @@ Event.observe($('todo_context_name'), "click", contextAutoCompleter.activate.bin <%= text_field("todo", "show_from", "size" => 12, "class" => "Date", "onfocus" => "Calendar.setup", "tabindex" => 7, "autocomplete" => "off") %> +
+
+ +
-<%= source_view_tag( @source_view ) %> -
+
<% end -%> diff --git a/tracks/app/views/todos/_edit_form.rhtml b/tracks/app/views/todos/_edit_form.rhtml index 0df216af..ff6e7e70 100644 --- a/tracks/app/views/todos/_edit_form.rhtml +++ b/tracks/app/views/todos/_edit_form.rhtml @@ -59,8 +59,17 @@ Event.observe($('<%= dom_id(@todo, 'context_name') %>'), "click", <%= dom_id(@to <% end -%> -
-Cancel +
+
+ + + + Cancel + +
<%= calendar_setup( dom_id(@todo, 'due') ) %> diff --git a/tracks/public/images/accept.png b/tracks/public/images/accept.png new file mode 100755 index 0000000000000000000000000000000000000000..89c8129a490b329f3165f32fa0781701aab417ea GIT binary patch literal 781 zcmV+o1M>WdP)4-QibtN)VXQDpczE`xXAkUjh%RI>;okxb7K@0kpyQ1k_Y(|Oe7$m(^ zNYX>mI||sUbmn+c3<&FnE=4u#()KBS^SH8e)Qs5i!#lY=$-1gbH6VluzU=m=EP78&5vQ z-?+fFP-G2l&l_QzYealK$;1Rl?FkzXR&Jv@fBPNjCr#AYRyJ7UJQ0v#?)7Ott=>3`#-pV!7>9}>Q1jL)H6h&gkP@3nI=+F3nA~M>u#(n* z8T!#8oEw&-mED4!h4s!N@Jo3S7N&Q6%6l3}nlcd~X@>;uelvPsSkXIgg~e+^T1zSf z3SNj(5%jK~i8@b;CFS^-G}e*;M)Q6>s#cP zI`Y#S($G6W`W@NI5g|L-MKl0Zmu$m^(0~^Lwo5OO~d#(vPfz