Sha256: 6fc6306439a62ddf84cbe9ac5f4e39d701a3091aa881244673c301707435a90a
Contents?: true
Size: 1.77 KB
Versions: 96
Compression:
Stored size: 1.77 KB
Contents
<% url_options = params_for(:action => :add_existing) -%> <% if request.xhr? -%> <%= form_remote_tag :url => url_options, :after => "$('#{loading_indicator_id(:action => :add_existing, :id => params[:id])}').style.visibility = 'visible'; Form.disable('#{element_form_id(:action => :add_existing)}');", :complete => "$('#{loading_indicator_id(:action => :add_existing, :id => params[:id])}').style.visibility = 'hidden'; Form.enable('#{element_form_id(:action => :add_existing)}');", :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')", :html => { :href => url_for(url_options), :id => element_form_id(:action => :add_existing), :class => 'create' } %> <% else -%> <%= form_tag url_options, :id => element_form_id(:action => :add_existing), :class => 'create' %> <% end -%> <h4><%= active_scaffold_config.nested.label -%></h4> <% if request.xhr? -%> <div id="<%= element_messages_id(:action => :add_existing) %>" class="messages-container"></div> <% else -%> <%= render :partial => 'form_messages' %> <% end -%> <%# AST Begin -%> <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) %> <%# AST End -%> <p class="form-footer"> <%= submit_tag as_(:add), :class => "submit" %> <%= link_to as_(:cancel), main_path_to_return, :class => 'cancel' %> <%= loading_indicator_tag(:action => :add_existing, :id => params[:id]) %> </p> </form> <script type="text/javascript"> Form.focusFirstElement('<%= element_form_id(:action => :add_existing) -%>'); </script>
Version data entries
96 entries across 96 versions & 1 rubygems