daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Mar 10th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <h3>Check-in <%= @checkin.checkin_type.name %></h3>
  2. <form method="post" action="/checkin">
  3.     <div>
  4.         <% @questions.each do |question| %>
  5.         <div>
  6.             <%= question.question %>
  7.            
  8.             <% question.checkin_question_options.all(:order => "id").each do |option| %>
  9.             <ul>
  10.                 <% if question.options_exclusive %>
  11.                     <input type="radio" name="<%= question.question %>" value="<%= option.id %>">
  12.                 <% else %>
  13.                     <input type="checkbox" name="<%= question.question %>" value="<%= option.id %>">
  14.                 <% end %>
  15.                 <%= option.option %>
  16.             </ul>
  17.             <% end %>
  18.         </div>
  19.         <% end %>
  20.         <input type="submit" value="Fazer check-in">
  21.     </div>
  22. </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top