]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/account/NamesForm.templ
UPD: visual restructure of my details names form
[gigi.git] / src / org / cacert / gigi / pages / account / NamesForm.templ
index 1ca468de24a50342dcf2f1628898e7fa2daa6b29..b38b71790b37697d4d2fefb5e7b73ca626f2f3d7 100644 (file)
@@ -1,8 +1,14 @@
-<table class="table">
-  <tbody>
+<div class="panel panel-default">
+  <div class="panel-heading">
+    <h3 class="panel-title"><?=_Names?></h3>
+  </div>
+  <table class="table">
+  <tr>
+    <th>Name</th>
+    <th><?=_Points?></th>
+    <th colspan="3"></th>
   <? foreach($exNames) { ?>
   <tr>
-    <td><?=_Name?>: </td>
     <td><?=$name?></td>
     <td><?=$npoints?></td>
     <td><button class="btn btn-warning" name="deprecateName" value="<?=$id?>" type="submit"<?=$deprecated?>><?=_Deprecate Name?></button></td>
     <td><button class="btn btn-primary" name="preferred" value="<?=$id?>" type="submit"<?=$preferred?>><?=_Set as Preferred?></button></td>
   </tr>
   <? } ?>
-  <tr>
-    <td><?=_Name?>: </td>
-    <td colspan="5"><?=$name?>
-    <button class="btn btn-primary" name="action" value="addName" type="submit"><?=_Add Name?></button></td>
-  </tr>
-  </tbody>
-</table>
+  </table>
+</div>
+
+<div class="panel panel-default">
+  <div class="panel-heading">
+    <h3 class="panel-title"><?=_New name?></h3>
+  </div>
+   <div class="panel-body">
+    <?=$name?>
+    <div class="clearfix"></div>
+    <div class="form-group">
+    <button class="btn btn-primary pull-right" name="action" value="addName" type="submit"><?=_Add Name?></button>
+    </div>
+  </div>
+</div>