Sha256: 7d6d25d730108d9de67308ff00c4a04784dd16bf03adf3d45980f2f30fa0a4b6

Contents?: true

Size: 754 Bytes

Versions: 5

Compression:

Stored size: 754 Bytes

Contents

<%= form_with(model: meeting) do |form| %>
  <% if meeting.errors.any? %>
    <div style="color: red">
      <h2><%= pluralize(meeting.errors.count, "error") %> prohibited this meeting from being saved:</h2>

      <ul>
        <% meeting.errors.each do |error| %>
          <li><%= error.full_message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div>
    <%= form.label :name, style: "display: block" %>
    <%= form.text_field :name %>
  </div>

  <div>
    <%= form.label :start_time, style: "display: block" %>
    <%= form.datetime_field :start_time %>
  </div>

  <div>
    <%= form.label :end_time, style: "display: block" %>
    <%= form.datetime_field :end_time %>
  </div>

  <div>
    <%= form.submit %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_calendar-3.0.4 test/dummy/app/views/meetings/_form.html.erb
simple_calendar-3.0.3 test/dummy/app/views/meetings/_form.html.erb
simple_calendar-3.0.2 test/dummy/app/views/meetings/_form.html.erb
simple_calendar-3.0.1 test/dummy/app/views/meetings/_form.html.erb
simple_calendar-3.0.0 test/dummy/app/views/meetings/_form.html.erb