changeset 6359:25da0eeaa3ea

style: tweak markup for API key admin The labels were odd - this gives a better starting point for a good Bootstrap UI. TODO after Bootstrap: Don't use a label as header for the "Add" section.
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 04 Dec 2016 22:53:37 +0100
parents 15909fe588e1
children b2e9677577ca
files kallithea/templates/admin/my_account/my_account_api_keys.html kallithea/templates/admin/users/user_edit_api_keys.html
diffstat 2 files changed, 20 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/admin/my_account/my_account_api_keys.html	Sun Dec 04 22:53:37 2016 +0100
+++ b/kallithea/templates/admin/my_account/my_account_api_keys.html	Sun Dec 04 22:53:37 2016 +0100
@@ -57,9 +57,17 @@
         <!-- fields -->
         <div class="form-horizontal">
             <div class="form-group">
-                <label class="control-label" for="description">${_('New API key')}:</label>
-                <div class="form-inline">
+                <label class="control-label">${_('New API key')}</label>
+            </div>
+            <div class="form-group">
+                <label class="control-label" for="description">${_('Description')}:</label>
+                <div>
                     ${h.text('description', class_='form-control', placeholder=_('Description'))}
+                </div>
+            </div>
+            <div class="form-group">
+                <label class="control-label" for="lifetime">${_('Lifetime')}:</label>
+                <div>
                     ${h.select('lifetime', '', c.lifetime_options)}
                 </div>
             </div>
--- a/kallithea/templates/admin/users/user_edit_api_keys.html	Sun Dec 04 22:53:37 2016 +0100
+++ b/kallithea/templates/admin/users/user_edit_api_keys.html	Sun Dec 04 22:53:37 2016 +0100
@@ -57,13 +57,20 @@
         <!-- fields -->
         <div class="form-horizontal">
             <div class="form-group">
-                <label class="control-label" for="description">${_('New API key')}:</label>
-                <div class="form-inline">
+                <label class="control-label">${_('New API key')}</label>
+            </div>
+            <div class="form-group">
+                <label class="control-label" for="description">${_('Description')}:</label>
+                <div>
                     ${h.text('description', class_='form-control', placeholder=_('Description'))}
+                </div>
+            </div>
+            <div class="form-group">
+                <label class="control-label" for="lifetime">${_('Lifetime')}:</label>
+                <div>
                     ${h.select('lifetime', '', c.lifetime_options)}
                 </div>
             </div>
-
             <div class="form-group">
                 <div class="buttons">
                     ${h.submit('save',_('Add'),class_="btn btn-default")}