Sha256: a3acd9b9130940877e89556d6768fae40b787c1ce8c78bda0b67c6e2aa1ba946

Contents?: true

Size: 811 Bytes

Versions: 14

Compression:

Stored size: 811 Bytes

Contents

<%- 
if @link.new_record?
  submission_path = event_links_path(@event)
  method = 'post'
else
  submission_path = event_link_path(@event, @link)
  method = 'put'
end
-%>
<%= semantic_form_for(@link, :html => {:class => 'dynamic', :id => 'link_dynamic_form'}, :url => submission_path, :method => 'put') do |form| %>
  <%= form.inputs do %>
    <input type="hidden" name="_method" value="<%= method %>">
    <%= form.input :name, :hint => "Your External Resource" %>
    <%= form.input :url, :label => 'URL', :hint => "some.domain.tld or http://some.dom..." %>
    <%= form.input :description, :hint => 'Statistics, Analysis and News regarding the sudden and unexpected rise in the population of water molecules.' %>
    <%= form.submit %> <input type="reset" class="cancel" value="Cancel">
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.15 app/views/links/_form.html.erb
event_calendar_engine-0.2.14 app/views/links/_form.html.erb
event_calendar_engine-0.2.13 app/views/links/_form.html.erb
event_calendar_engine-0.2.11 app/views/links/_form.html.erb
event_calendar_engine-0.2.10 app/views/links/_form.html.erb
event_calendar_engine-0.2.8 app/views/links/_form.html.erb
event_calendar_engine-0.2.7 app/views/links/_form.html.erb
event_calendar_engine-0.2.6 app/views/links/_form.html.erb
event_calendar_engine-0.2.5 app/views/links/_form.html.erb
event_calendar_engine-0.2.4 app/views/links/_form.html.erb
event_calendar_engine-0.2.3 app/views/links/_form.html.erb
event_calendar_engine-0.2.2 app/views/links/_form.html.erb
event_calendar_engine-0.2.1 app/views/links/_form.html.erb
event_calendar_engine-0.2.0 app/views/links/_form.html.erb