Sha256: 313bc97fdc515de288073f9058f89c838af84efcaaf9302aa47b18ccf0c11eaa

Contents?: true

Size: 799 Bytes

Versions: 3

Compression:

Stored size: 799 Bytes

Contents

<h2>Lock Events</h2>

<p>Locking an event prevents editing or deleting it.</p>

<table style="width: 60%; border: 1px solid black;">
  <thead>
    <tr style="background-color: #ccc;">
      <th>Event name</th>
      <th>Date</th>
      <th>&nbsp;</th>
    </tr>
  </thead>
  <tbody>
    <% @events.each do |event| %>
    <tr>
      <td style="border: 1px solid gray"><%= link_to event.title, event_path(event) %></td>
      <td style="border: 1px solid gray"><%= event.start_time %></td>
      <td style="border: 1px solid gray">
        <% if event.locked %>
        <%= button_to "Unlock", lock_event_path(:event_id => event.id) %>
        <% else %>
        <%= button_to "Lock", lock_event_path(:event_id => event.id) %>
        <% end %>
      </td>
    </tr>
    <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
calagator-1.0.0.rc2 app/views/calagator/admin/events.html.erb
calagator-1.0.0.rc1 app/views/calagator/admin/events.html.erb
calagator-0.0.1.pre1 app/views/calagator/admin/events.html.erb