~yeliabmas/sloecode/sloecode-template

« back to all changes in this revision

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

  • Committer: Sam Bailey
  • Date: 2012-10-30 08:42:51 UTC
  • Revision ID: yeliabmas@gmail.com-20121030084251-iug8hmotp16fry22
Forgot to add the Jinja template for new page templates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "base.html" %}
 
2
 
 
3
{% block title %} Wiki {% endblock %}
 
4
 
 
5
{% block content %}
 
6
 
 
7
<div class="yui3-g">
 
8
  <div id="page_header" class="yui3-u-1">
 
9
    <div class="content-left">
 
10
      <h2>New Template:</h2>
 
11
    </div>
 
12
  </div>
 
13
</div>
 
14
 
 
15
<div class="yui3-g">
 
16
  <div id="page_header" class="yui3-u-1">
 
17
    <div class="content-left content-right">
 
18
      {{ h.form(h.url(controller="admin/wiki",
 
19
                      action="process_create_page_template"),
 
20
                method="post", 
 
21
                name="wiki") }}
 
22
      {{ h.hidden("old_name") }}
 
23
      <table>
 
24
        <tr>
 
25
          <td>Name:
 
26
            <span class="entry-hint">This is what your template will be called.</span></td>
 
27
          <td>{{ h.text('name') }}</td>
 
28
        </tr>
 
29
        <tr>
 
30
          <td>Folder Location:
 
31
            <span class="entry-hint">The folder that pages derived from this template
 
32
              will be put in by default.</span></td>
 
33
          <td>{{ h.text('save_location') }}</td>
 
34
        </tr>
 
35
        <tr>
 
36
          <td>Description:
 
37
            <span class="entry-hint">A brief description of the template.</span></td>
 
38
          <td>{{ h.textarea('description', cols=45, rows=5) }}</td>
 
39
        </tr>
 
40
      </table>
 
41
{{ h.textarea("content", rows=20, style='width:99%') }}<br>
 
42
{{ h.submit('save', 'Save') }}
 
43
{{ h.end_form() }}</p>
 
44
{% endblock %}
 
45
 
 
46