Sha256: 581f5b3e187a1355e21d313ff706b5837f9dabd2490b7059da2dd03084aaa599

Contents?: true

Size: 1.11 KB

Versions: 35

Compression:

Stored size: 1.11 KB

Contents

<% url_options = params_for(:action => :add_existing) -%>
<% xhr = request.xhr? -%>
<%=
options = {:id => element_form_id(:action => :add_existing),
           :class => "as_form create",
           :method => :post,
           'data-loading' => true,
           'data-as_load' => 'form',
           'data-as_action' => 'create'
           }
  options[:remote] = true if xhr
  form_tag url_options, options -%>

  <h4><%= active_scaffold_config.nested.label -%></h4>

  <% if xhr -%>
    <div id="<%= element_messages_id(:action => :add_existing) %>" class="messages-container"></div>
  <% else -%>
    <%= render :partial => 'form_messages' %>
  <% end -%>

  <label for="<%= "record_#{active_scaffold_config.model}" %>"><%= active_scaffold_add_existing_label %></label>
  <%= active_scaffold_add_existing_input(:name => 'associated_id', :url_options => url_options) %>

  <p class="form-footer">
    <%= submit_tag as_(:add), :class => "submit" %>
    <%= link_to as_(:cancel), main_path_to_return, :class => 'as_cancel', :remote => true %>
    <%= loading_indicator_tag(:action => :add_existing, :id => params[:id]) %>
  </p>

</form>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
active_scaffold_vho-4.0.0 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.14 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.13 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.12 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.11 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.10 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.9 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.8 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.7 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.6 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.5 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.4 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.3 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.2 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.1 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.2.0 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.0.31 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.1.8 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.0.30 frontends/default/views/_add_existing_form.html.erb
active_scaffold_vho-3.0.29 frontends/default/views/_add_existing_form.html.erb