Sha256: a4220ed2254d8cdefec7f01002a2bcf24f9708265a67c113d4ed6197c8ab7ace

Contents?: true

Size: 1004 Bytes

Versions: 1

Compression:

Stored size: 1004 Bytes

Contents

<%= simple_form_for(@event) do |f| %>
  <% if @event.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>

      <ul>
      <% @event.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field form-group">
    <%= f.input :date, as: :date_picker %>
    <em><%= I18n.l(@event.date) %></em><br/>
    <code><%= @event.date.to_s %></code>
  </div>
  
  <div class="field form-group">
    <%= f.input :datetime, as: :date_picker %>
    <em><%= I18n.l(@event.datetime) %></em><br/>
    <code><%= @event.datetime.to_s %></code>
  </div>
  
  <div class="field form-group">
    <%= f.input :time, as: :date_picker %>
    <em><%= I18n.l(@event.time, format: :only_time) %></em><br/>
    <code><%= @event.time.to_s %></code>
  </div>
  
  <div class="actions">
    <%= f.submit nil, class: 'btn btn-default' %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
date_picker-0.0.9 test/dummy/app/views/events/_simple_form.html.erb