Sha256: 563539f73a795ab30d4cae0434e2bdf7721c72ee0a30958c01916a9547563566

Contents?: true

Size: 1.76 KB

Versions: 6

Compression:

Stored size: 1.76 KB

Contents

<%% if @show_wrapper %>
<div id="<%%= params[:scaffold_id] %>" class="ajax-scaffold">
  <div id="<%%= scaffold_content_id(params) %>">
<%% end %>
    <div class="ajax-scaffold-header">
      <div class="actions">
        <%% new_params = params.merge(:controller => '<%= controller_file_path %>', :action => 'new') %>
        <%%= loading_indicator_tag(new_params) %>
        <%%= link_to_remote "Create New",
          { :url => new_params,
            :loading => "Element.show('#{loading_indicator_id(new_params)}');" },
          { :href => url_for(new_params),
            :class => "create" } %>
      </div>
      <h2><%= Inflector.titleize(plural_name) %></h2>
  </div>
  <table cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <%%= render :partial => 'column_headings' %>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td colspan="<%%= num_columns %>" class="messages-container">
        <div id="<%%= scaffold_messages_id(params) %>">
          <%%= render :partial => 'messages' %>
        </div>
        <p id="<%%= empty_message_id(params) %>" class="empty-message" <%%= " style=\"display:none;\" " if !@<%= plural_name %>.empty? %>>
          No Entries
        </p>
      </td>
    </tr>
  </tbody>
  <tbody id="<%%= scaffold_tbody_id(params) %>">
    <%% if !@<%= plural_name %>.empty? %>
      <%%= render :partial => '<%= singular_name %>', :collection => @<%= plural_name %>, :locals => { :hidden => false } %>
    <%% end %>
  </tbody>
</table>
<div class="ajax-scaffold-footer">
  <%%= render :partial => 'pagination_links', :locals => { :paginator => @paginator } %>
</div>
<%% if @show_wrapper %>
</div>
</div>
<script type="text/javascript">
Rico.Corner.round('<%%= params[:scaffold_id] %>', {color: '#005CB8', bgColor: '#fff', compact: true});
</script>
<%% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ajax_scaffold_generator-3.1.6 templates/view_component.rhtml
ajax_scaffold_generator-3.1.7 templates/view_component.rhtml
ajax_scaffold_generator-3.1.8 templates/view_component.rhtml
ajax_scaffold_generator-3.1.9 templates/view_component.rhtml
ajax_scaffold_generator-3.1.10 templates/view_component.rhtml
ajax_scaffold_generator-3.1.11 templates/view_component.rhtml