[Mageia-sysadm] [161] new style for user/index

root at mageia.org root at mageia.org
Sat Nov 27 20:43:58 CET 2010


Revision: 161
Author:   obgr_seneca
Date:     2010-11-27 20:43:58 +0100 (Sat, 27 Nov 2010)
Log Message:
-----------
new style for user/index

Modified Paths:
--------------
    identity/CatDap/trunk/root/static/style/ttsite.css
    identity/CatDap/trunk/root/user/index.tt

Modified: identity/CatDap/trunk/root/static/style/ttsite.css
===================================================================
--- identity/CatDap/trunk/root/static/style/ttsite.css	2010-11-27 18:34:46 UTC (rev 160)
+++ identity/CatDap/trunk/root/static/style/ttsite.css	2010-11-27 19:43:58 UTC (rev 161)
@@ -57,6 +57,11 @@
 	border: 0px;
 }
 
+#input_form th {
+	border: 0px;
+	text-align: left;
+}
+
 #input_form input {
 	background: #fff;
 	border: inset 1px;

Modified: identity/CatDap/trunk/root/user/index.tt
===================================================================
--- identity/CatDap/trunk/root/user/index.tt	2010-11-27 18:34:46 UTC (rev 160)
+++ identity/CatDap/trunk/root/user/index.tt	2010-11-27 19:43:58 UTC (rev 161)
@@ -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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101127/3fddd199/attachment.html>


More information about the Mageia-sysadm mailing list