From a45142ac16f63f57d95da303f8342edb9b2b6e0d Mon Sep 17 00:00:00 2001 From: Jared Pace Date: Thu, 19 Aug 2010 22:38:11 -0400 Subject: [PATCH] Add cancel buttons on forms and style --- app/views/apps/edit.html.haml | 2 +- app/views/apps/new.html.haml | 2 +- app/views/users/edit.html.haml | 1 + app/views/users/new.html.haml | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/apps/edit.html.haml b/app/views/apps/edit.html.haml index c2e341d..02162ed 100644 --- a/app/views/apps/edit.html.haml +++ b/app/views/apps/edit.html.haml @@ -1,5 +1,5 @@ - content_for :title, 'Edit App' -- content_for :action_bar, link_to('cancel', app_path(@app)) +- content_for :action_bar, link_to('cancel', app_path(@app), :class => 'button') = form_for @app do |f| diff --git a/app/views/apps/new.html.haml b/app/views/apps/new.html.haml index 0c13d8c..c6050aa 100644 --- a/app/views/apps/new.html.haml +++ b/app/views/apps/new.html.haml @@ -1,5 +1,5 @@ - content_for :title, 'Add App' -- content_for :action_bar, link_to('cancel', apps_path) +- content_for :action_bar, link_to('cancel', apps_path, :class => 'button') = form_for @app do |f| diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index aa597cd..93b75cb 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -1,4 +1,5 @@ - content_for :title, "Edit #{@user.name}" +- content_for :action_bar, link_to('cancel', user_path(@user), :class => 'button') = form_for @user do |f| = @user.errors.full_messages.to_sentence diff --git a/app/views/users/new.html.haml b/app/views/users/new.html.haml index 7a79360..ab1b16b 100644 --- a/app/views/users/new.html.haml +++ b/app/views/users/new.html.haml @@ -1,4 +1,5 @@ - content_for :title, 'New User' +- content_for :action_bar, link_to('cancel', users_path, :class => 'button') = form_for @user do |f| -- libgit2 0.21.2