From 4223992ad9f14576a3e4b5c4e39b3b4255314046 Mon Sep 17 00:00:00 2001 From: Pedro Paulo Vezza Campos Date: Fri, 25 Apr 2014 15:59:50 -0300 Subject: [PATCH] Making the reading_groups form view conform to the tooltips specification. --- app/views/reading_groups/_form.html.erb | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/app/views/reading_groups/_form.html.erb b/app/views/reading_groups/_form.html.erb index 516cc1b..1c1667a 100644 --- a/app/views/reading_groups/_form.html.erb +++ b/app/views/reading_groups/_form.html.erb @@ -1,17 +1,38 @@ <%= form_for(@reading_group, :html => { role: 'form' }) do |f| %> <%= render :partial => 'shared/form_errors', :locals => {:object => @reading_group} %> -
- <%= f.label :name, class: 'control-label' %>
- <%= f.text_field :name, class: 'form-control' %> -
+
+
+ +
+
+ <%= f.label :name, class: 'control-label' %> + <%= f.text_field :name, class: 'text-field' %> +
+
+

+ Your reading group name! +

+
+
+ +
+
+ <%= f.label :description, class: 'control-label' %> + <%= f.text_area :description, class: 'text-area' %> +
+
+

+ Your reading group description! +

+
+
-
- <%= f.label :description, class: 'control-label' %>
- <%= f.text_area :description, class: 'form-control' %>
+
+
<%= f.submit 'Save', class: 'btn btn-primary' %> - <%= link_to 'Back', reading_groups_path, class: 'btn btn-default' %> +
<% end %> -- libgit2 0.21.2