diff --git a/app/views/albums/_album_form.html.erb b/app/views/albums/_album_form.html.erb index be83507..2a53bea 100644 --- a/app/views/albums/_album_form.html.erb +++ b/app/views/albums/_album_form.html.erb @@ -1,11 +1,11 @@
Album Details

- <%= text_control :name, :label => 'Name: ' %> + <%= text_field :name, :label => 'Name: ' %>

Tags

-

<%= text_control 'tag_names', :size => 30 -%>

+

<%= text_field :tag_names, :size => 30 -%>

diff --git a/app/views/albums/edit.html.erb b/app/views/albums/edit.html.erb index 78bc648..735e687 100644 --- a/app/views/albums/edit.html.erb +++ b/app/views/albums/edit.html.erb @@ -7,6 +7,6 @@ <% form_for :album, :action => url(:album, :id => @album.name.gsub(/ /, '_')) do %> <%= partial :album_form %>

- <%= submit_button 'Update' %> + <%= submit 'Update' %>

-<% end -%> \ No newline at end of file +<% end -%> diff --git a/app/views/albums/new.html.erb b/app/views/albums/new.html.erb index 93416d1..f2659d7 100644 --- a/app/views/albums/new.html.erb +++ b/app/views/albums/new.html.erb @@ -1,8 +1,8 @@ <%= error_messages_for :album %> -<% form_for :album, :action => url(:album) do %> +<%= form_for :album, :action => url(:album) do %> <%= partial :album_form %>

- <%= submit_button 'Create' %> + <%= submit 'Create' %>

-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/authors/_author_form.html.erb b/app/views/authors/_author_form.html.erb index 832bb11..1be1b6a 100644 --- a/app/views/authors/_author_form.html.erb +++ b/app/views/authors/_author_form.html.erb @@ -1,18 +1,20 @@
Create an author

- <%= text_control :name, :label => 'Name: ' %> + <%= text_field :name, :label => 'Name: ' %>

+<% if @author.new_record? -%>

Invitation Code: <%= (params[:invitation_code].to_s.empty? ? 'None! This will not work!' : params[:invitation_code]) -%><%= hidden_field :name => 'invitation_code', :value => params[:invitation_code] -%>

+<% end -%>

- <%= text_control :url, :label => 'Home URL: ' %> + <%= text_field :url, :label => 'Home URL: ' %>

- <%= password_control :password, :label => 'Password: ', :size => 40 %> + <%= password_field :password, :label => 'Password: ', :size => 40 %>

- <%= password_control :password_confirmation, :label => 'Password (Confirm): ', :size => 40 %> + <%= password_field :password_confirmation, :label => 'Password (Confirm): ', :size => 40 %>

-
\ No newline at end of file + diff --git a/app/views/authors/edit.html.erb b/app/views/authors/edit.html.erb index a480a99..451517d 100644 --- a/app/views/authors/edit.html.erb +++ b/app/views/authors/edit.html.erb @@ -1,8 +1,8 @@ <%= error_messages_for :author %> -<% form_for :author, :action => url(:author, :id => @author.name) do -%> +<%= form_for :author, :action => url(:author, :id => @author.name) do -%> <%= partial :author_form %>

- <%= submit_button 'Update' %> + <%= submit 'Update' %>

-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/authors/new.html.erb b/app/views/authors/new.html.erb index 8800ed4..4fb7b27 100644 --- a/app/views/authors/new.html.erb +++ b/app/views/authors/new.html.erb @@ -1,8 +1,8 @@ <%= error_messages_for :author %> -<% form_for :author, :action => url(:author) do %> +<%= form_for :author, :action => url(:author) do %> <%= partial :author_form %>

- <%= submit_button 'Create' %> + <%= submit 'Create' %>

-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/comments/_comment_form.html.erb b/app/views/comments/_comment_form.html.erb index c752f71..1eee762 100644 --- a/app/views/comments/_comment_form.html.erb +++ b/app/views/comments/_comment_form.html.erb @@ -7,16 +7,16 @@

<% else -%>

- <%= text_control :user, :label => 'Name: ', :size => 32 %> + <%= text_field :user, :label => 'Name: ', :size => 32 %>

<% end -%>

- <%= text_control :url, :label => 'URL: ', :size => 60, :max_size => 256 %> + <%= text_field :url, :label => 'URL: ', :size => 60, :max_size => 256 %>

- <%= text_area_control :comment, :label => 'Comment: ', :rows => 8, :cols => 60 %> + <%= text_area :comment, :label => 'Comment: ', :rows => 8, :cols => 60 %>

<% unless logged_in? -%>

diff --git a/app/views/comments/new.html.erb b/app/views/comments/new.html.erb index 891839c..0676de3 100644 --- a/app/views/comments/new.html.erb +++ b/app/views/comments/new.html.erb @@ -4,9 +4,9 @@ <%= error_messages_for :comment %> -<% form_for :comment, :action => url(:comments) do %> +<%= form_for :comment, :action => url(:comments) do %> <%= partial :comment_form %>

- <%= submit_button 'Create' %> + <%= submit 'Create' %>

-<% end -%> +<% end =%> diff --git a/app/views/invitations/new.html.erb b/app/views/invitations/new.html.erb index 24bb1b7..568b232 100644 --- a/app/views/invitations/new.html.erb +++ b/app/views/invitations/new.html.erb @@ -1,11 +1,11 @@ -<% form_for :invitation, :action => url(:invitation) do -%> +<%= form_for :invitation, :action => url(:invitation) do -%>
Invite A Drinker

- <%= text_control 'recipient', :label => 'Recipient: ' %> + <%= text_field 'recipient', :label => 'Recipient: ' %>

- <%= submit_button 'Send' %> + <%= submit 'Send' %>

-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/pages/edit.html.erb b/app/views/pages/edit.html.erb index cfdb6da..648c8ba 100644 --- a/app/views/pages/edit.html.erb +++ b/app/views/pages/edit.html.erb @@ -1,6 +1,6 @@ <%= error_messages_for :page %> -<% form_for :page, :action => url(:page, :id => @page.name.gsub(/ /, '_')) do -%> +<%= form_for :page, :action => url(:page, :id => @page.name.gsub(/ /, '_')) do -%>
Update a page @@ -10,23 +10,23 @@

Original Author

Read Only <%= (@page.author.name) %>

-

<%= checkbox_control :published, :label => ' Published in blog?', :value => "1" %>

+

Department

-

<%= text_control :department, :size => 50 %>

+

<%= text_field :department, :size => 50 %>

Description

-

<%= text_area_control :description, :rows => 10, :cols => 70 %>

+

<%= text_area :description, :rows => 10, :cols => 70 %>

Tags

-

<%= text_control 'tag_names', :size => 30 -%>

+

<%= text_field :tag_names, :size => 30 -%>

-

<%= submit_button 'Update' %>

-<% end -%> +

<%= submit 'Update' %>

+<% end =%> \ No newline at end of file + diff --git a/app/views/permissions/edit.html.erb b/app/views/permissions/edit.html.erb index d899a39..e2b063f 100644 --- a/app/views/permissions/edit.html.erb +++ b/app/views/permissions/edit.html.erb @@ -20,7 +20,7 @@ function check_all(form_name, field_name, checkbox_value) } -<% form_for :permission, :action => url(:permission, @author), :id => 'permission_form' do -%> +<%= form_for :permission, :action => url(:permission, @author), :id => 'permission_form' do -%> <%= hidden_field :name => '_method', :value => 'put' %>
Select Author's permissions @@ -33,11 +33,11 @@ function check_all(form_name, field_name, checkbox_value) attr[:checked] = true end -%> -
  • <%= checkbox_field attr -%> <%= p.name -%>
  • +
  • <%= checkbox attr -%> <%= p.name -%>
  • <% end -%>

    - <%= submit_button 'Save' %> + <%= submit 'Save' %>

    -<% end -%> \ No newline at end of file +<% end -%> diff --git a/app/views/photos/new.html.erb b/app/views/photos/new.html.erb index fcd5724..8a4b5b4 100644 --- a/app/views/photos/new.html.erb +++ b/app/views/photos/new.html.erb @@ -4,14 +4,14 @@ <%= error_messages_for :photo %> -<% form_for :photo, :action => url(:photo), :multipart => true, :onsubmit => "$('indicator').style.display = 'inline';" do %> +<%= form_for :photo, :action => url(:photo), :multipart => true, :onsubmit => "$('indicator').style.display = 'inline';" do %>
    Upload a photo -

    Album: <%= select_control 'album_id', :collection => Album.for_select, :selected => (@photo.album.name rescue nil) -%>

    -

    File: <%= file_control 'file' -%>

    +

    Album: <%= select :album_id, :collection => Album.for_select, :selected => (@photo.album.name rescue nil) -%>

    +

    File: <%= file_field :file -%>

    - <%= submit_button 'Create' %> + <%= submit 'Create' %>

    -<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index d3e04ec..131b5aa 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,12 +1,12 @@ -<% form_tag :action => url(:sessions) do -%> +<%= form :action => url(:sessions) do -%>
    Login

    <%= text_field :name => :username, :label => 'Username: ', :id => 'username' -%>

    <%= password_field :name => :password, :label => 'Password: ' -%>

    -

    <%= submit_button 'Login' -%>

    -<% end -%> +

    <%= submit 'Login' -%>

    +<% end =%> \ No newline at end of file + diff --git a/app/views/tags/edit.html.erb b/app/views/tags/edit.html.erb index 74c4fee..714dd5b 100644 --- a/app/views/tags/edit.html.erb +++ b/app/views/tags/edit.html.erb @@ -1,11 +1,11 @@ -<% form_for :tag, :action => url(:tag, :id => @tag.name) do -%> +<%= form_for :tag, :action => url(:tag, :id => @tag.name) do -%>
    Change a tag's name

    - <%= text_control :name, :label => 'Name: ' -%> + <%= text_field :name, :label => 'Name: ' -%>

    - <%= submit_button 'Save' %> + <%= submit 'Save' %>

    -<% end -%> \ No newline at end of file +<% end =%>