Commit 4223992ad9f14576a3e4b5c4e39b3b4255314046

Authored by Pedro Paulo Vezza Campos
Committed by fllsouto
1 parent 59657d86

Making the reading_groups form view conform to the tooltips specification.

signed-off-by: Fellipe Souto Sampaio <fllsouto@gmail.com>
Showing 1 changed file with 29 additions and 8 deletions   Show diff stats
app/views/reading_groups/_form.html.erb
1 1 <%= form_for(@reading_group, :html => { role: 'form' }) do |f| %>
2 2 <%= render :partial => 'shared/form_errors', :locals => {:object => @reading_group} %>
3 3  
4   - <div class="form-group">
5   - <%= f.label :name, class: 'control-label' %><br>
6   - <%= f.text_field :name, class: 'form-control' %>
7   - </div>
  4 +<div class="row margin-left-none">
  5 + <div class="form-table span9">
  6 +
  7 + <div class="form-row">
  8 + <div class="field-container">
  9 + <%= f.label :name, class: 'control-label' %>
  10 + <%= f.text_field :name, class: 'text-field' %>
  11 + </div>
  12 + <div class="help-container">
  13 + <p>
  14 + Your reading group name!
  15 + </p>
  16 + </div>
  17 + </div>
  18 +
  19 + <div class="form-row">
  20 + <div class="field-container">
  21 + <%= f.label :description, class: 'control-label' %>
  22 + <%= f.text_area :description, class: 'text-area' %>
  23 + </div>
  24 + <div class="help-container">
  25 + <p>
  26 + Your reading group description!
  27 + </p>
  28 + </div>
  29 + </div>
8 30  
9   - <div class="form-group">
10   - <%= f.label :description, class: 'control-label' %><br>
11   - <%= f.text_area :description, class: 'form-control' %>
12 31 </div>
  32 +</div>
13 33  
  34 +<div class="row margin-left-none" style="margin-top: 20px">
14 35 <%= f.submit 'Save', class: 'btn btn-primary' %>
15   -
16 36 <%= link_to 'Back', reading_groups_path, class: 'btn btn-default' %>
  37 +</div>
17 38 <% end %>
... ...