Sha256: af4887f1e010b2e0ac1a4c87fac43bdcc4ac293543198f66f9ff27acd3f141c9
Contents?: true
Size: 1.95 KB
Versions: 2
Compression:
Stored size: 1.95 KB
Contents
<% url_options = params_for(:action => :create) -%> <%= if request.xhr? if active_scaffold_config.create.multipart? # file_uploads form_remote_upload_tag url_options.merge({:iframe => true}), :id => element_form_id(:action => :create), :class => 'create' else form_remote_tag :url => url_options, :after => "$('#{loading_indicator_id(:action => :create, :id => params[:id])}').style.visibility = 'visible'; Form.disable('#{element_form_id(:action => :create)}');", :complete => "$('#{loading_indicator_id(:action => :create, :id => params[:id])}').style.visibility = 'hidden'; Form.enable('#{element_form_id(:action => :create)}');", :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')", :html => { :href => url_for(url_options), :id => element_form_id(:action => :create), :class => 'create' } end else form_tag url_options, :id => element_form_id(:action => :create), :multipart => active_scaffold_config.create.multipart?, :class => 'create' end -%> <h4><%= active_scaffold_config.create.label -%></h4> <% if request.xhr? -%> <div id="<%= element_messages_id(:action => :create) %>" class="messages-container"><%= error_messages_for :record %></div> <% else -%> <%= render :partial => 'form_messages' %> <% end -%> <%= render :partial => 'form', :locals => { :columns => active_scaffold_config.create.columns } %> <p class="form-footer"> <%= submit_tag as_('Create'), :class => "submit" %> <%= link_to as_('Cancel'), params_for(:action => 'list'), :class => 'cancel' %> <%= loading_indicator_tag(:action => :create, :id => params[:id]) %> </p> </form> <script type="text/javascript"> Form.focusFirstElement('<%= element_form_id(:action => :create) -%>'); </script>
Version data entries
2 entries across 2 versions & 1 rubygems