Sha256: 820e9d4fef97a37c14c05e052c7a01d943c7871e642fa2a76f93a22be8f9ec31
Contents?: true
Size: 1.06 KB
Versions: 74
Compression:
Stored size: 1.06 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} 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, :object => nested_parent_record) %> <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
74 entries across 74 versions & 1 rubygems