diff options
Diffstat (limited to 'root')
-rw-r--r-- | root/static/style/ttsite.css | 5 | ||||
-rw-r--r-- | root/user/index.tt | 17 |
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> |