summaryrefslogtreecommitdiff
blob: 32edfbb1fb4bdcf6bd7da6415fd2e722c1d5845f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<h1>Templates</h1>

<table class="glsamaker-table">
  <tr>
    <th>Name</th>
    <th>Text</th>
    <th>Field</th>
    <th>Enabled</th>
  </tr>

<% @templates.each do |admin_template| %>
  <tr>
    <td><%= link_to admin_template.name, admin_template_path(admin_template) %></td>
    <td><tt><%= admin_template.text %></tt></td>
    <td><%= admin_template.target %></td>
    <td><%= admin_template.enabled %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Template', new_admin_template_path %>