julen / pootle

Web-based translation and translation management tool

This URL has Read+Write access

pootle / templates / options.html
100644 154 lines (133 sloc) 6.014 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?xml version="1.0" encoding="UTF-8"?>
<?python
import pootlepage, navbar
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:py="http://purl.org/kid/ns#" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta name="generator" content="HTML Tidy for Linux/x86 (vers 1st September 2004), see www.w3.org" />
 
  <title py:content="pagetitle">Options for: ${username}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" type="text/css" href="${baseurl}pootle.css" />
  <link rel="shortcut icon" href="${baseurl}favicon.ico" />
  <!--[if lt IE 7.]>
<script defer type="text/javascript" src="${baseurl}js/correctpng.js"></script>
<![endif]-->
</head>
 
<body bgcolor="#FFFFFF">
  <div id="abovefooter">
  <div py:replace="pootlepage.banner(instancetitle, links, session, uidir, uilanguage, baseurl)"/>
 
  <div id="content" dir="$uidir" lang="$uilanguage">
    <div py:if="introtext" class="intro" py:content="introtext">
      Please edit your options as desired below.
    </div>
 
    <div class="contents">
      <h3 class="title" py:content="detailstitle">Personal Details</h3>
 
      <form action="" method="post" name="personal" id="personal">
        <table cellpadding="1" cellspacing="1">
          <tr>
            <td colspan="1" rowspan="1">
              <h3 class="title" py:content="option_heading">Option</h3>
            </td>
            <td colspan="1" rowspan="1">
              <h3 class="title" py:content="value_heading">Current value</h3>
            </td>
          </tr>
 
          <tr>
            <td colspan="1" rowspan="1" py:content="fullname_title">Name</td>
            <td colspan="1" rowspan="1">
              <input type="text" name="option-name" value="${fullname}"/>
            </td>
          </tr>
 
          <tr>
            <td colspan="1" rowspan="1" py:content="email_title">Email</td>
            <td colspan="1" rowspan="1">
              <input type="text" name="option-email" value="${email}"/>
            </td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1" py:content="password_title">Password</td>
            <td colspan="1" rowspan="1">
              <input type="password" name="option-password" value=""/>
            </td>
          </tr>
 
          <tr>
            <td colspan="1" rowspan="1" py:content="passwordconfirm_title">Confirm Password</td>
            <td colspan="1" rowspan="1">
              <input type="password" name="option-passwordconfirm" value=""/>
            </td>
          </tr>
        </table><input type="submit" name="changepersonal" value="${submit_button}" />
      </form>
 
      <h3 class="title" py:content="interface_title">Translation Interface Configuration</h3>
 
      <form action="" method="post" name="interface" id="interface">
        <table cellpadding="1" cellspacing="1">
          <tr>
            <td colspan="1" rowspan="1">
              <h3 class="title" py:content="option_heading">Option</h3>
            </td>
            <td colspan="1" rowspan="1">
              <h3 class="title" py:content="value_heading">Current value</h3>
            </td>
          </tr>
 
          <tr>
            <td colspan="1" rowspan="1" py:content="uilanguage_heading">User Interface language</td>
            <td colspan="1" rowspan="1"><select name="option-uilanguage" style="width: 100%;">
              <option py:for="l in uilanguage_options" value="${l.code}" py:attrs="selected=l.selected" py:content="l.name">
                Language
              </option>
            </select></td>
          </tr>
 
          <tr py:if="enablealtsrc == 'True'">
            <td colspan="1" rowspan="1" py:content="altsrclanguage_title">Alternative Source Language</td>
            <td colspan="1" rowspan="1">
              <select name="altsrclanguage" style="width: 100%;">
                <option py:for="l in altsrclanguages" value="${l.code}" py:attrs="selected=l.selected" py:content="l.name">
                  Language Name
                </option>
              </select>
            </td>
          </tr>
 
          <tr py:for="option in other_options">
            <td colspan="1" rowspan="1" py:content="option.description">Option Name</td>
            <td colspan="1" rowspan="1">
              <input type="text" name="option-${option.code}" value="${option.value}"/>
            </td>
          </tr>
        </table><input type="submit" name="changeinterface" value="${submit_button}" />
      </form>
    </div>
 
    <form action="" method="post" name="useroptions" id="useroptions">
      <div class="contents">
        <h3 class="title" py:content="projects_title">My Projects</h3>
 
        <div class="item-description">
          <select multiple="multiple" name="projects">
            <option py:for="p in projects" value="${p.code}" py:attrs="selected=p.selected" py:content="p.name">
              Project Name
            </option>
          </select>
          <input type="hidden" name="allowmultikey" value="projects"/>
        </div>
      </div>
 
      <div class="contents">
        <h3 class="title" py:content="languages_title">My Languages</h3>
 
        <div class="item-description">
          <select multiple="multiple" name="languages">
            <option py:for="l in languages" value="${l.code}" py:attrs="selected=l.selected" py:content="l.name">
              Language Name
            </option>
          </select>
          <input type="hidden" name="allowmultikey" value="languages" />
        </div>
      </div>
 
      <input type="submit" name="changeoptions" value="${submit_button}" />
    </form>
 
    <div class="intro">
      <a href="index.html" py:content="home_link">Home page</a>
    </div>
  </div>
 
  </div>
  <div py:replace="pootlepage.user_links(links, session, uidir, uilanguage, baseurl)"/>
  <div py:replace="pootlepage.about(aboutlink, uidir, uilanguage, baseurl)"/>
</body>
</html>