~yeliabmas/sloecode/sloecode-template

« back to all changes in this revision

Viewing changes to sloecode/templates/admin/template-viewall.html

  • Committer: Sam Bailey
  • Date: 2012-10-30 03:45:30 UTC
  • Revision ID: yeliabmas@gmail.com-20121030034530-1obbt428wynab8lh
Tidied up most of the page template interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
<div class="yui3-g">
8
8
  <div id="page_header" class="yui3-u-1">
 
9
    <div class="content-left">
 
10
      <h2>Page Templates</h2>
 
11
    </div>
 
12
  </div>
 
13
</div>
 
14
 
 
15
<div class="yui3-g">
 
16
  <div id="page_header" class="yui3-u-1">
9
17
    <div class="content-left content-right">
10
18
      {% if template_names %}
11
19
      <table>
16
24
        {% set row_class = cycler('odd', 'even') %}
17
25
        {% for template in template_names %}
18
26
        <tr class="{{row_class.next()}}">
19
 
          <td>{{template}}
 
27
          <td>{{h.link_to(template, h.url(controller="admin/wiki",
 
28
                                          action="view_page_template",
 
29
                                          filename=template))}}
20
30
          <td>{{h.link_to("Edit",
21
 
            h.url(controller='admin/wiki', action='edit_template', 
 
31
            h.url(controller='admin/wiki', action='edit_page_template', 
22
32
                  filename=template)) }}, 
23
 
            {{h.link_to("Delete",
24
 
            h.url(controller='admin/wiki', action='delete_page_template', 
25
 
                  filename=template),
26
 
            title="Delete template",
27
 
            confirm="Are you sure you want to delete the " + template + " page template?
28
 
                     Deletion is permanant.") }}</td>
 
33
            {{h.link_to("Delete", h.url(controller='admin/wiki',
 
34
                                        action='delete_page_template', 
 
35
                                        filename=template),
 
36
                        confirm="Are you sure you want to delete the " + template + " page template?" +
 
37
                                 " Deletion is permanant.") }}</td>
29
38
        </tr>
30
39
        {% endfor %}
31
 
        <tr>
32
 
          <td colspan="2">{{h.link_to('Create a new page template',
33
 
                          h.url(controller='admin/wiki',
34
 
                                action='show_project_wikis')
35
 
                         )}}</td>
36
 
        </tr>
37
40
      </table>
38
41
      {% else %}
39
 
      <p>There are no page templates to list.</p>
40
 
      <p>{{h.link_to('Create a new wiki template',
41
 
                          h.url(controller='admin/wiki',
42
 
                                action='show_project_wikis')
43
 
                         )}}</p>
 
42
        <p>There are no page templates to list.</p>
 
43
        {{ h.link_to("Create One", h.url(controller="admin/wiki", action="create_page_template")) }}
44
44
      {% endif %}
45
45
    </div>
46
46
  </div>