~ubuntu-branches/ubuntu/natty/schooltool.gradebook/natty

« back to all changes in this revision

Viewing changes to src/schooltool/requirement/browser/requirement.pt

  • Committer: Bazaar Package Importer
  • Author(s): Gediminas Paulauskas
  • Date: 2011-02-24 16:53:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110224165353-hi69ckyal3b8dyns
Tags: upstream-0.9.0~a1
ImportĀ upstreamĀ versionĀ 0.9.0~a1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<tal:define define="dummy view/update"/>
 
2
<html metal:use-macro="view/@@standard_macros/page" i18n:domain="schooltool.gradebook">
 
3
<head>
 
4
  <title metal:fill-slot="title" i18n:translate="">
 
5
   <span tal:replace="context/title" i18n:name="requirement" /> Contents
 
6
  </title>
 
7
</head>
 
8
<body>
 
9
 
 
10
<h1 metal:fill-slot="content-header" i18n:translate="">
 
11
  <span tal:replace="context/title" i18n:name="requirement" /> Sub Requirements
 
12
</h1>
 
13
 
 
14
<metal:block metal:fill-slot="body"
 
15
             tal:define="batch view/batch">
 
16
  <tal:block replace="structure view/batch/render" />
 
17
  <form method="post" class="batch-search">
 
18
    <input id="batch-search-box" type="text" name="SEARCH"
 
19
      tal:attributes="value request/SEARCH|nothing"/>
 
20
    <input type="submit" name="SEARCH_BUTTON" value="Find Now"
 
21
      i18n:attributes="value"/>
 
22
    <input type="submit" name="CLEAR_SEARCH" value="Clear"
 
23
      i18n:attributes="value"/>
 
24
    <input type="checkbox" name="RECURSIVE" value="0"
 
25
      tal:attributes="value request/RECURSIVE|nothing"/>recursive?
 
26
  </form>
 
27
  <tal:if condition="batch" define="depth python:int(request.get('DEPTH', 3))">
 
28
    <div class="count" i18n:translate="">
 
29
      Showing
 
30
      <span i18n:name="count" tal:content="python:len(batch)"/>
 
31
      of
 
32
      <span i18n:name="total" tal:content="python:len(batch.list)"/>
 
33
      items
 
34
    </div>
 
35
    <form method="post">
 
36
      <b>Depth:</b>
 
37
      <input type="submit" name="DEPTH"
 
38
          tal:condition="python:depth > 1"
 
39
          tal:attributes="value python:depth-1" />
 
40
      <b tal:content="python:depth">3</b>
 
41
      <input type="submit" name="DEPTH"
 
42
          tal:attributes="value python:depth+1" />
 
43
    </form>
 
44
    <tal:block replace="structure view/subthread" />
 
45
  </tal:if>
 
46
 
 
47
</metal:block>
 
48
</body>
 
49
</html>