~yeliabmas/sloecode/sloecode-template

« back to all changes in this revision

Viewing changes to sloecode/templates/admin/template-edit.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:
3
3
{% block title %} Wiki {% endblock %}
4
4
 
5
5
{% block content %}
6
 
{% set pathurl = h.url(controller=path, action="+save") %}
7
 
<p>{{ h.form(pathurl, method="post", name="wiki") }}    
8
 
        {{ h.hidden('old_name', template['name']) }}
9
 
        Name: {{ h.text('name', template['name']) }}<br>
10
 
        Folder Location: {{ h.text('save_location', template['save_location']) }}<br>
11
 
        Description: {{ h.text('description', template['description']) }}<br>
12
 
        {{ h.textarea("content", template['content'], rows=20, style='width:99%') }}<br>
13
 
        {{ h.submit('save', 'Save') }}
 
6
 
 
7
<div class="yui3-g">
 
8
  <div id="page_header" class="yui3-u-1">
 
9
    <div class="content-left">
 
10
      <h2>Editing {{template.name}}:</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(save_url, method="post", name="wiki") }}
 
19
      {{ h.hidden('old_name', template['name']) }}
 
20
      <table>
 
21
        <tr>
 
22
          <td>Name:
 
23
            <span class="entry-hint">This is what your template will be called.</span></td>
 
24
          <td>{{ h.text('name', template['name']) }}</td>
 
25
        </tr>
 
26
        <tr>
 
27
          <td>Folder Location:
 
28
            <span class="entry-hint">The folder that pages derived from this template
 
29
              will be put in by default.</span></td>
 
30
          <td>{{ h.text('save_location', template['save_location']) }}</td>
 
31
        </tr>
 
32
        <tr>
 
33
          <td>Description:
 
34
            <span class="entry-hint">A brief description of the template.</span></td>
 
35
          <td>{{ h.textarea('description', template['description'], cols=45, rows=5) }}</td>
 
36
        </tr>
 
37
      </table>
 
38
{{ h.textarea("content", template['content'], rows=20, style='width:99%') }}<br>
 
39
{{ h.submit('save', 'Save') }}
14
40
{{ h.end_form() }}</p>
15
41
{% endblock %}
16
42