Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h3>Check-in <%= @checkin.checkin_type.name %></h3>
- <form method="post" action="/checkin">
- <div>
- <% @questions.each do |question| %>
- <div>
- <%= question.question %>
- <% question.checkin_question_options.all(:order => "id").each do |option| %>
- <ul>
- <% if question.options_exclusive %>
- <input type="radio" name="<%= question.question %>" value="<%= option.id %>">
- <% else %>
- <input type="checkbox" name="<%= question.question %>" value="<%= option.id %>">
- <% end %>
- <%= option.option %>
- </ul>
- <% end %>
- </div>
- <% end %>
- <input type="submit" value="Fazer check-in">
- </div>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement