Sha256: 19a8f132f810382e3307e3b6d228f82c85df98a55368f1202fac096aec7067bc

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

<div class="row">
  <div class="col">
    <h1>Registrations</h1>
    <p>
      <%= link_to 'New', new_registration_path, class: 'button' %>
      <%= link_to 'Export CSV', registrations_export_index_path, class: 'button' %>
    </p>
  </div>
</div>
<div class="row">
  <div class="col">
    <table>
      <thead>
        <tr>
          <th>First Name</th>
          <th>Last Name</th>
          <th>Email</th>
          <th>Contact</th>
          <th>Confirmed</th>
          <th>Actions</th>
        </tr>
      </thead>
      <tbody>
        <% @registrations.each do |r| %>
          <tr>
            <td><%= r.first_name %></td>
            <td><%= r.last_name %></td>
            <td><%= r.email %></td>
            <td>
              <%= success_badge('Email', value: r.contact_via_email) %>
              <%= success_badge('Phone', value: r.contact_via_phone) %>
            </td>
            <td>
              <%= success_badge('Confirmed', value: r.confirmed?) %>
            </td>
            <td>
              <%= link_to "Show", registration_path(r) %>
              <%= link_to "Edit", edit_registration_path(r) %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mr_common-2.1.0 app/views/mr_common/registrations/registrations/index.html.erb
mr_common-2.0.0 app/views/mr_common/registrations/registrations/index.html.erb