Sha256: 2c65fca3c13754486ae29cb01f6fab599d44c07e620c3766fe9074223aef9f31

Contents?: true

Size: 1.05 KB

Versions: 14

Compression:

Stored size: 1.05 KB

Contents

<%= form_tag send(@object.class.to_s.underscore + '_path', :update => @update_span,
    :attribute => @attribute,
    :form_element => @form_element,
    :sub_id => @sub_id ),
    :method => :put, # this is going to the update method!
    :multipart => true,
    :class  => "edit_form",
    :abide => true,
    :remote => true do -%>
  <div class="row collapse">
    <div class="small-9 columns">
      <%= send("#{@form_element}_edit", @object, @attribute) %>
    </div>
    <div class="small-1 columns">
      <%= submit_tag "ok", :class => "postfix button"-%>
    </div>
    <div class="small-2 columns">
      <%= link_to( send( @object.class.to_s.underscore + '_path', :update => @update_span || "field_#{@attribute}_#{@object.id.to_s}",
      :attribute => @attribute,
      :form_element => @form_element,
      :sub_id => @sub_id ),
      :method => :get, # this is going to the show method!
      :remote => true ) do %>
        <input type="button" name="cancel" value="cancel" class="button alert postfix radius" />
      <% end %>
    </div>
  </div>

<% end -%>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
inline_forms-1.6.57 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.56 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.55 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.54 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.53 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.51 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.50 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.49 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.48 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.47 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.46 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.45 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.44 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.43 lib/app/views/inline_forms/_edit.html.erb