aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Burger <obgr_seneca@mageia.org>2010-11-27 19:43:58 +0000
committerOliver Burger <obgr_seneca@mageia.org>2010-11-27 19:43:58 +0000
commit1a8fc3260f551c6b8f1caae4367c274155266b31 (patch)
treea73fa37d3623a8981a3ee8c18a604342ca9ac501
parent88d27c3ac4ee974de1ff56be252ce81943d45ce3 (diff)
downloadidentity-1a8fc3260f551c6b8f1caae4367c274155266b31.tar
identity-1a8fc3260f551c6b8f1caae4367c274155266b31.tar.gz
identity-1a8fc3260f551c6b8f1caae4367c274155266b31.tar.bz2
identity-1a8fc3260f551c6b8f1caae4367c274155266b31.tar.xz
identity-1a8fc3260f551c6b8f1caae4367c274155266b31.zip
new style for user/index
-rw-r--r--root/static/style/ttsite.css5
-rw-r--r--root/user/index.tt17
2 files changed, 16 insertions, 6 deletions
diff --git a/root/static/style/ttsite.css b/root/static/style/ttsite.css
index 1d4dd90..cf2b9f6 100644
--- a/root/static/style/ttsite.css
+++ b/root/static/style/ttsite.css
@@ -57,6 +57,11 @@ html, body {
border: 0px;
}
+#input_form th {
+ border: 0px;
+ text-align: left;
+}
+
#input_form input {
background: #fff;
border: inset 1px;
diff --git a/root/user/index.tt b/root/user/index.tt
index 7c70b4a..7cad173 100644
--- a/root/user/index.tt
+++ b/root/user/index.tt
@@ -1,6 +1,7 @@
+<div id="input_form">
<form method="post" action="">
<table border=0>
- <tr><th>Attribute</th><th>Value</th></tr>
+ <tr><th>Attribute</th><th>Value</th><th></th></tr>
[% FOREACH attr IN values %]
<tr>
<td>[% attr.name %]</td>
@@ -12,19 +13,22 @@
[% val %]
<br/>
[% END %]
+ </td>
+ <td>
[% IF attr.addable AND attr.editable %]
- <a href="/user/add/[% attr.name %]">[% l('Add') %]</a>
+ <button type="button" onclick="location='/user/add/[% attr.name %]'">[% l('Add') %]</button>
[% END %]
[% IF attr.removable AND attr.editable %]
- <a href="/user/delete/[% attr.name %]/[% val %]">[% l('Delete') %]</a>
+ <button type="button" onclick="location='/user/delete/[% attr.name %]/[% val %]'">[% l('Delete') %]</button>
[% END %]
[% END %]
</td>
</tr>
[% END %]
+ <tr>
+ <td colspan="3" style="text-align:center;"><button type="Submit" value="[% l('Update') %]">[% l('Update') %]</button></td>
+ </tr>
</table>
-
- <p><input type="Submit" value="[% l('Update') %]" /></p>
</form>
<hr />
@@ -38,6 +42,7 @@
<input name="value" value="" />
- <input type="submit" value="[% l('Add') %]" />
+ <button type="submit" value="[% l('Add') %]">[% l('Add') %]</button>
</p>
</form>
+</div>