Sha256: 07f6f0ea1556065b1c5e0bb52abaeb1077f191083856c1e733554aad841ac659

Contents?: true

Size: 604 Bytes

Versions: 11

Compression:

Stored size: 604 Bytes

Contents

<h1>New flight</h1>

<% form_for(@flight) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :capacity %><br />
    <%= f.text_field :capacity %>
  </p>
  <p>
    <%= f.label :duration %><br />
    <%= f.text_field :duration %>
  </p>
  <p>
    <%= f.label :from_id, "From" %><br />
    <%= f.select :from_id,  @airport_options %>
  </p>
  <p>
    <%= f.label :to_id, "To" %><br />
    <%= f.select :to_id, @airport_options %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', flights_path %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
i15r-0.5.5 spec/support/new_flight.html.erb
i15r-0.5.4 spec/support/new_flight.html.erb
i15r-0.5.3 spec/support/new_flight.html.erb
i15r-0.5.2 spec/support/new_flight.html.erb
i15r-0.5.1 spec/support/new_flight.html.erb
i15r-0.5.0 spec/support/new_flight.html.erb
i15r-0.4.4 spec/support/new_flight.html.erb
i15r-0.4.3 spec/support/new_flight.html.erb
i15r-0.4.2 spec/support/new_flight.html.erb
i15r-0.4.0 spec/support/new_flight.html.erb
i15r-0.3.1 spec/support/new_flight.html.erb