# HG changeset patch # User Mads Kiilerich # Date 2016-12-04 22:53:37 # Node ID 25da0eeaa3ea22095d816c9db9ee899ab34798b7 # Parent 15909fe588e136ffc0ce21e4005592b24aff4dee 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. diff --git a/kallithea/templates/admin/my_account/my_account_api_keys.html b/kallithea/templates/admin/my_account/my_account_api_keys.html --- a/kallithea/templates/admin/my_account/my_account_api_keys.html +++ b/kallithea/templates/admin/my_account/my_account_api_keys.html @@ -57,9 +57,17 @@
- -
+ +
+
+ +
${h.text('description', class_='form-control', placeholder=_('Description'))} +
+
+
+ +
${h.select('lifetime', '', c.lifetime_options)}
diff --git a/kallithea/templates/admin/users/user_edit_api_keys.html b/kallithea/templates/admin/users/user_edit_api_keys.html --- a/kallithea/templates/admin/users/user_edit_api_keys.html +++ b/kallithea/templates/admin/users/user_edit_api_keys.html @@ -57,13 +57,20 @@
- -
+ +
+
+ +
${h.text('description', class_='form-control', placeholder=_('Description'))} +
+
+
+ +
${h.select('lifetime', '', c.lifetime_options)}
-
${h.submit('save',_('Add'),class_="btn btn-default")}