Commit a45142ac16f63f57d95da303f8342edb9b2b6e0d

Authored by Jared Pace
1 parent 12122b7e
Exists in master and in 1 other branch production

Add cancel buttons on forms and style

app/views/apps/edit.html.haml
1 - content_for :title, 'Edit App' 1 - content_for :title, 'Edit App'
2 -- content_for :action_bar, link_to('cancel', app_path(@app)) 2 +- content_for :action_bar, link_to('cancel', app_path(@app), :class => 'button')
3 3
4 = form_for @app do |f| 4 = form_for @app do |f|
5 5
app/views/apps/new.html.haml
1 - content_for :title, 'Add App' 1 - content_for :title, 'Add App'
2 -- content_for :action_bar, link_to('cancel', apps_path) 2 +- content_for :action_bar, link_to('cancel', apps_path, :class => 'button')
3 3
4 = form_for @app do |f| 4 = form_for @app do |f|
5 5
app/views/users/edit.html.haml
1 - content_for :title, "Edit #{@user.name}" 1 - content_for :title, "Edit #{@user.name}"
  2 +- content_for :action_bar, link_to('cancel', user_path(@user), :class => 'button')
2 3
3 = form_for @user do |f| 4 = form_for @user do |f|
4 = @user.errors.full_messages.to_sentence 5 = @user.errors.full_messages.to_sentence
app/views/users/new.html.haml
1 - content_for :title, 'New User' 1 - content_for :title, 'New User'
  2 +- content_for :action_bar, link_to('cancel', users_path, :class => 'button')
2 3
3 = form_for @user do |f| 4 = form_for @user do |f|
4 5