Sha256: f197be28d47d8d12a178b8f7ae5b0b109ef592d4b05de50588ba11363f6b3eb7
Contents?: true
Size: 1.81 KB
Versions: 14
Compression:
Stored size: 1.81 KB
Contents
<%= form_for(@arm, html: { role: :form }) do |f| %> <% if @arm.errors.any? %> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <strong><%= pluralize(@arm.errors.count, "error") %> prohibited this arm from being saved:</strong> <ul> <% @arm.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="form-group"> <%= f.label :title %> <%= f.text_field :title, class: "form-control" %> </div> <% if social_features? %> <div class="form-group"> <%= f.check_box :is_social %> <%= f.label :is_social %> <p class="help-block">The "Is Social" feature adds a social networking component to the study.<br/> * This requires participants to have display names.</p> </div> <div class="form-group"> <%= f.check_box :has_woz %> <%= f.label :has_woz, "Wizard of Oz" %> <p class="help-block">The "Wizard of Oz" feature hides moderator functionality, to limit the ways that a moderator can interact through the social dashboard.<br/> * This requires the social feature to be enabled.</p> </div> <div class="form-group"> <%= f.check_box :can_message_after_membership_complete %> <%= f.label :can_message_after_membership_complete, "Completed membership messaging" %> <p class="help-block">This will allow participants to compose and send messages after their membership is complete.<br/> * This requires the social feature to be enabled.</p> </div> <% end %> <%= f.submit button_text, class: "btn btn-primary" %> <%= link_to "Cancel", cancel_path, class: "btn btn-default" %> <% end %>
Version data entries
14 entries across 14 versions & 1 rubygems