Sha256: 9eea8fcb1b6a3152c3285691827c1c2444a1c6728d7273db26ce03db280385ef

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

<%= title "Elements" %>

<table class="list" cellpadding="1" cellspacing="0">
  <tr class="title">
    <td>Name</td>
    <td>Description</td>
  <% if::Newsletter.use_show_for_resources %>
    <td colspan="3"> </td>
  <% else %>
    <td colspan="2"> </td>    
  <% end %>
  </tr>
  <% for element in @elements %>
    <tr class="<%= cycle('odd','even') %>" id="element_<%= element.id %>">
      <td><%=h element.name %></td>
      <td><%=h element.description %></td>
    <% if::Newsletter.use_show_for_resources %>
      <td><%= link_to "View", element, :class => 'button' %></td>
    <% end %>
      <td><%= link_to "Edit", edit_element_path(element), :class => 'button' %></td>
      <td><%= link_to "Delete", element, :confirm => 'Are you sure?', :method => :delete, :class => 'button' %></td>
    </tr>
  <% end %>
</table>


<%= content_for :page_navigation do %>
<div>
  <%= link_to "Back to Design", edit_design_path(@design), :class => 'button' %>
  <%= link_to "New Newsletter Element", new_design_element_path(@design), :class => 'button' %>
</div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
newsletter-3.2.25.1 app/views/newsletter/elements/index.html.erb
newsletter-3.2.22.0 app/views/newsletter/elements/index.html.erb
newsletter-3.2.7 app/views/newsletter/elements/index.html.erb
newsletter-3.2.6 app/views/newsletter/elements/index.html.erb
newsletter-3.2.5 app/views/newsletter/elements/index.html.erb
newsletter-3.2.4 app/views/newsletter/elements/index.html.erb
newsletter-3.2.2 app/views/newsletter/elements/index.html.erb
newsletter-3.2.1 app/views/newsletter/elements/index.html.erb
newsletter-3.2.0 app/views/newsletter/elements/index.html.erb