Sha256: 06d14873f0cb989ff90965a91f8d599f8f7f572b697d8d6440a07926b47d84b9
Contents?: true
Size: 1.74 KB
Versions: 3
Compression:
Stored size: 1.74 KB
Contents
<%% if not request.xhr? %> <table class="ajax-scaffold" cellpadding="0" cellspacing="0"> <tbody> <%% end %> <tr id="<%%= element_row_id(@options) %>" <%%= "style=\"display:none;\"" if request.xhr? %>> <td id="<%%= element_cell_id(@options) %>" class="<%%= @options[:action] %>" colspan="<%%= num_columns %>"> <%%= form_remote_tag :url => @options.merge(:controller => '<%= controller_file_path %>'), :loading => "Element.show('#{loading_indicator_id(@options)}');", :html => { :href => url_for(@options.merge(:controller => '<%= controller_file_path %>')), :id => element_form_id(@options) } %> <%%= hidden_field_tag "scaffold_id", @options[:scaffold_id] %> <h4><%%= Inflector.titleize(@options[:action]) %> <%= Inflector.titleize(singular_name) %></h4> <%% if request.xhr? %> <div id="<%%= element_messages_id(@options) %>" class="messages-container"></div> <%% else %> <%%= render :partial => 'form_messages' %> <%% end %> <%%= render :partial => 'form' %> <p class="form-footer"> <%%= submit_tag Inflector.titleize(@options[:action]), :class => "submit" %> <%% cancel_params = @options.merge(:controller => '<%= controller_file_path %>', :action => 'cancel', :referring_action => @options[:action]) %> <%%= link_to_remote "Cancel", { :url => cancel_params, :loading => "Element.show('#{loading_indicator_id(@options)}');" }, { :href => url_for(cancel_params) } %> <%%= loading_indicator_tag @options %> </p> <%%= end_form_tag %> </td> </tr> <%% if not request.xhr? %> </tbody> </table> <%% end %>
Version data entries
3 entries across 3 versions & 1 rubygems