Sha256: 213a8b27308526ce24018806774a56435473ef0855833285299eac61ca99b5a6

Contents?: true

Size: 1.07 KB

Versions: 14

Compression:

Stored size: 1.07 KB

Contents

<%= form_for(@coach_assignment, url: url, html: { role: :form }) do |f| %>
  <% if @coach_assignment.errors.any? %>
    <div class="alert alert-danger alert-dismissible" role="alert">
      <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      <strong><%= pluralize(@coach_assignment.errors.count, "error") %> prohibited this coach/moderator from being assigned to this participant:</strong>
      <ul>
      <% @coach_assignment.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <p>
    <strong>Participant:</strong>
    <%= @participant.study_id %>
  </p>
  <div class="form-group">
    <%= f.label :coach_id, "Coach/Moderator" %>
    <%= f.select :coach_id, options_for_select(@coaches, @coach_assignment.coach_id), { prompt: "Select Coach/Moderator" }, class: "form-control" %>
  </div>

  <%= 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

Version Path
think_feel_do_dashboard-1.2.1 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.2.0.beta1 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.21 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.20 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.19 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.18 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.17 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.16 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.15 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.14 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.13 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.12 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.11 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb
think_feel_do_dashboard-1.1.10 app/views/think_feel_do_dashboard/coach_assignments/_form.html.erb