From f630365c3b9c6d7d846a69e1d7cacb30b5a208f0 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 17 Oct 2011 00:39:22 -0400 Subject: [PATCH] style fixes --- app/views/artists/_form.html.erb | 2 +- app/views/dmails/_form.html.erb | 2 +- app/views/ip_bans/new.html.erb | 2 +- app/views/user_feedbacks/index.html.erb | 6 ++++-- app/views/user_feedbacks/new.html.erb | 8 ++++---- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/views/artists/_form.html.erb b/app/views/artists/_form.html.erb index 709986215..63be16eb1 100644 --- a/app/views/artists/_form.html.erb +++ b/app/views/artists/_form.html.erb @@ -2,7 +2,7 @@ <%= f.input :name %> <%= f.input :other_names, :hint => "Separate with commas", :as => :text %> <%= f.input :group_name %> - <%= f.input :url_string, :label => "URLs", :as => :text, :size => "10x5" %> + <%= f.input :url_string, :label => "URLs", :as => :text, :input_html => {:size => "50x5"} %> <%= f.input :is_active %> <%= f.input :is_banned %> <%= f.input :notes, :as => :text %> diff --git a/app/views/dmails/_form.html.erb b/app/views/dmails/_form.html.erb index 1c9ab82e3..57b7df822 100644 --- a/app/views/dmails/_form.html.erb +++ b/app/views/dmails/_form.html.erb @@ -4,7 +4,7 @@ <%= simple_form_for(dmail) do |f| %> <%= f.input :to_name, :label => "To" %> <%= f.input :title %> - <%= f.input :body, :html_options => {:size => "50x25"} %> + <%= f.input :body, :input_html => {:size => "50x25"} %> <%= f.button :submit, "Send" %> <%= submit_tag "Preview", :id => "preview-button" %> <% end %> diff --git a/app/views/ip_bans/new.html.erb b/app/views/ip_bans/new.html.erb index 1760062fa..3975c5028 100644 --- a/app/views/ip_bans/new.html.erb +++ b/app/views/ip_bans/new.html.erb @@ -4,7 +4,7 @@ <%= simple_form_for(@ip_ban) do |f| %> <%= f.input :ip_addr %> - <%= f.input :reason %> + <%= f.input :reason, :input_html => {:size => "50x5"} %> <%= f.button :submit, "Submit" %> <% end %> diff --git a/app/views/user_feedbacks/index.html.erb b/app/views/user_feedbacks/index.html.erb index 259474184..7d3069b0a 100644 --- a/app/views/user_feedbacks/index.html.erb +++ b/app/views/user_feedbacks/index.html.erb @@ -2,18 +2,20 @@

User Feedback

- +
+ - + <% @user_feedbacks.each do |feedback| %> + diff --git a/app/views/user_feedbacks/new.html.erb b/app/views/user_feedbacks/new.html.erb index 3f77bac0c..0ac4c79e5 100644 --- a/app/views/user_feedbacks/new.html.erb +++ b/app/views/user_feedbacks/new.html.erb @@ -7,10 +7,10 @@ <%= simple_form_for(@user_feedback) do |f| %> <%= f.input :user_name %> - <%= f.input :category, :collection => ["positive", "neutral", "negative"] %> - <%= f.input :body %> - <%= f.button :submit %> - <%= f.button :submit, :value => "Preview" %> + <%= f.input :category, :collection => ["positive", "neutral", "negative"], :include_blank => false %> + <%= f.input :body, :input_html => {:size => "50x5"} %> + <%= f.button :submit, "Submit" %> + <%= f.button :submit, "Preview" %> <% end %>
Category User Creator WhenMessageMessage
<%= feedback.category %> <%= link_to feedback.user_name, user_feedback_path(feedback.user_id) %> <%= feedback.creator.name %> <%= time_ago_in_words(feedback.created_at) %> ago