aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-12-03 13:57:48 +0100
committerKevin Chabowski <kevin@kch42.de>2011-12-03 13:57:48 +0100
commit914a64b120059b8dc330a6ae2ebca8300dac16eb (patch)
treeb8ad88e825e37d92e9157a497cb96ca2854b8bf9 /ratatoeskr/templates/src/systemtemplates
parentd834b944748cc1dab8dc1234592dfb9206c9610d (diff)
downloadratatoeskr-cms-914a64b120059b8dc330a6ae2ebca8300dac16eb.tar.gz
ratatoeskr-cms-914a64b120059b8dc330a6ae2ebca8300dac16eb.tar.bz2
ratatoeskr-cms-914a64b120059b8dc330a6ae2ebca8300dac16eb.zip
User management added to backend.
Diffstat (limited to 'ratatoeskr/templates/src/systemtemplates')
-rwxr-xr-xratatoeskr/templates/src/systemtemplates/backend_login.html4
-rwxr-xr-xratatoeskr/templates/src/systemtemplates/master.html2
-rw-r--r--ratatoeskr/templates/src/systemtemplates/user.html41
-rw-r--r--ratatoeskr/templates/src/systemtemplates/users.html89
4 files changed, 133 insertions, 3 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/backend_login.html b/ratatoeskr/templates/src/systemtemplates/backend_login.html
index 73c2710..742dae8 100755
--- a/ratatoeskr/templates/src/systemtemplates/backend_login.html
+++ b/ratatoeskr/templates/src/systemtemplates/backend_login.html
@@ -22,8 +22,8 @@
</ste:then>
</ste:if>
<form action="$rel_path_to_root/backend/login" method="POST" accept-charset="utf-8">
- <p><ste:escape><ste:capitalize><ste:get_translation for="username" raw="y" /></ste:capitalize></ste:escape>: <input type="text" name="user" /></p>
- <p><ste:escape><ste:capitalize><ste:get_translation for="password" raw="y" /></ste:capitalize></ste:escape>: <input type="password" name="password" /></p>
+ <p><ste:get_translation for="username" />: <input type="text" name="user" /></p>
+ <p><ste:get_translation for="password" />: <input type="password" name="password" /></p>
<p class="loginbtn"><input type="submit" value="<ste:get_translation for='login_form_button' />" /></p>
</form>
</div>
diff --git a/ratatoeskr/templates/src/systemtemplates/master.html b/ratatoeskr/templates/src/systemtemplates/master.html
index 99c8e35..b73f3b3 100755
--- a/ratatoeskr/templates/src/systemtemplates/master.html
+++ b/ratatoeskr/templates/src/systemtemplates/master.html
@@ -12,7 +12,7 @@
<div id="bar_top">
<span class="branding"><strong>Ratatöskr</strong>::Noctilucent clouds (v. 0.1)</span>
<span class="user">
- <a href="$rel_path_to_root/backend/admin/users/_self">$user[name]</a> | <a href="$rel_path_to_root/backend/logout"><ste:get_translation for="logout" /></a>
+ <a href="$rel_path_to_root/backend/admin/users/u/$user[id]">$user[name]</a> | <a href="$rel_path_to_root/backend/logout"><ste:get_translation for="logout" /></a>
</span>
</div>
<div id="maincontainer">
diff --git a/ratatoeskr/templates/src/systemtemplates/user.html b/ratatoeskr/templates/src/systemtemplates/user.html
new file mode 100644
index 0000000..8bdce8b
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/user.html
@@ -0,0 +1,41 @@
+<ste:comment>This template looks very boring/ugly, too much empty space, should be fixed some day...</ste:comment>
+<ste:load name="master.html" />
+<ste:block name="content">
+ <ste:if>$error
+ <ste:then>
+ <div class="error"><ste:escape>$error</ste:escape></div>
+ </ste:then>
+ </ste:if>
+ <ste:if>$success
+ <ste:then>
+ <div class="success"><ste:escape>$success</ste:escape></div>
+ </ste:then>
+ </ste:if>
+
+ <form action="$rel_path_to_root/backend/admin/users/u/$u[id]" method="POST" accept-charset="UTF-8">
+ <p>
+ <strong><ste:get_translation for="fullname" />:</strong><br />
+ <input type="text" name="fullname" value="<ste:escape>$u[fullname]</ste:escape>" />
+ </p>
+ <p>
+ <strong><ste:get_translation for="mail_address" />:</strong><br />
+ <input type="text" name="mail" value="$u[mail]" />
+ </p>
+ <p><strong><ste:get_translation for="member_of_groups" />:</strong></p>
+ <ul class="bulletfree">
+ <ste:foreach array="groups" value="group">
+ <li>
+ <input type="checkbox" name="groups_multiselect[]" value="$group[id]" ?{$group[member]|checked="checked" |}/> <ste:escape>$group[name]</ste:escape>
+ </li>
+ </ste:foreach>
+ </ul>
+ <p><input type="submit" name="change_data" /></p>
+
+ <h2><ste:get_translation for="new_password" /></h2>
+ <p>
+ <strong><ste:get_translation for="password" />:</strong><br />
+ <input type="password" name="password" />
+ </p>
+ <p><input type="submit" name="new_password" /></p>
+ </form>
+</ste:block>
diff --git a/ratatoeskr/templates/src/systemtemplates/users.html b/ratatoeskr/templates/src/systemtemplates/users.html
new file mode 100644
index 0000000..ade4f34
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/users.html
@@ -0,0 +1,89 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ <ste:if>$error
+ <ste:then>
+ <div class="error"><ste:escape>$error</ste:escape></div>
+ </ste:then>
+ </ste:if>
+ <ste:if>$success
+ <ste:then>
+ <div class="success"><ste:escape>$success</ste:escape></div>
+ </ste:then>
+ </ste:if>
+
+ <div class="dualcolumns">
+ <div class="column_left">
+ <form action="$rel_path_to_root/backend/admin/users" method="POST" accept-charset="UTF-8">
+ <h2><ste:get_translation for="new_group" /></h2>
+ <strong><ste:get_translation for="groupname" />:</strong><br />
+ <input type="text" name="group_name" class="fullwidth" /><br />
+ <input type="submit" name="new_group" />
+
+ <h2><ste:get_translation for="new_user" /></h2>
+ <strong><ste:get_translation for="username" />:</strong><br />
+ <input type="text" name="username" class="fullwidth" /><br />
+ <strong><ste:get_translation for="initial_password" />:</strong><br />
+ <input type="password" name="initial_password" class="fullwidth" /><br />
+ <input type="submit" name="new_user" />
+ </form>
+ </div>
+ <div class="column_main">
+ <form action="$rel_path_to_root/backend/admin/users" method="POST" accept-charset="UTF-8">
+ <h2><ste:get_translation for="groups" /></h2>
+ <table class="listtab fullwidth">
+ <thead>
+ <tr>
+ <th style="width: 3ex">&nbsp;</th>
+ <th><ste:get_translation for="groupname" /></th>
+ </tr>
+ </thead>
+ <tbody>
+ <ste:foreach array="groups" value="group">
+ <tr>
+ <td><input type="checkbox" name="groups_multiselect[]" value="$group[id]" /></td>
+ <td><ste:escape>$group[name]</ste:escape></td>
+ </tr>
+ </ste:foreach>
+ </tbody>
+ </table>
+ <div>
+ <input type="submit" name="delete_groups" value="<ste:get_translation for='delete' />" /><select name="really_delete"><option value="no" selected="selected"><ste:get_translation for="no" /></option><option value="yes"><ste:get_translation for="yes" /></option></select>
+ </div>
+ </form>
+
+ <form action="$rel_path_to_root/backend/admin/users" method="POST" accept-charset="UTF-8">
+ <h2><ste:get_translation for="users" /></h2>
+ <table class="listtab fullwidth">
+ <thead>
+ <tr>
+ <th style="width: 3ex">&nbsp;</th>
+ <th><ste:get_translation for="username" /></th>
+ <th><ste:get_translation for="member_of_groups" /></th>
+ <th><ste:get_translation for="fullname"/></th>
+ <th><ste:get_translation for="mail_address" /></th>
+ </tr>
+ </thead>
+ <tbody>
+ <ste:foreach array="users" value="user_x">
+ <tr>
+ <td><input type="checkbox" name="users_multiselect[]" value="$user_x[id]" /></td>
+ <td><a href="$rel_path_to_root/backend/admin/users/u/$user_x[id]"><ste:escape>$user_x[name]</ste:escape></a></td>
+ <td>
+ <ste:foreach array="user_x[memberof]" value="group" counter="i">
+ ?{~{$i|eq|0}||, }<ste:escape>$group</ste:escape>
+ </ste:foreach>
+ </td>
+ <td><ste:escape>$user_x[fullname]</ste:escape></td>
+ <td><ste:escape>$user_x[mail]</ste:escape></td>
+ </tr>
+ </ste:foreach>
+ </tbody>
+ </table>
+ <div>
+ <input type="submit" name="delete_users" value="<ste:get_translation for='delete' />" /><select name="really_delete"><option value="no" selected="selected"><ste:get_translation for="no" /></option><option value="yes"><ste:get_translation for="yes" /></option></select>
+ </div>
+ </form>
+ </div>
+ </div>
+ <div class="dualcolumns_stop"></div>
+</ste:block>