From ea0a0d91b098ce79e178fee1a8cb941f530891d9 Mon Sep 17 00:00:00 2001 From: rahul Bajaj Date: Dec 06 2016 20:49:01 +0000 Subject: Add group button on dashboard For maintaining consistency, the modal is also removed from https://pagure.io/groups and points directly to 'Create New Group' page. Fixes : https://pagure.io/pagure/issue/1227 --- diff --git a/pagure/templates/add_group.html b/pagure/templates/add_group.html index 73bd161..cf82563 100644 --- a/pagure/templates/add_group.html +++ b/pagure/templates/add_group.html @@ -1,32 +1,36 @@ {% extends "master.html" %} -{% from "_formhelper.html" import render_field_in_row %} +{% from "_formhelper.html" import render_bootstrap_field %} +{% block title %}Create Group{% endblock %} {% set tag = "groups" %} -{% block title %}Create group{% endblock %} {% block content %} -

Create group

- -
-
- - - {{ render_field_in_row(form.group_name) }} - {{ render_field_in_row(form.display_name) }} - {{ render_field_in_row(form.description) }} - {%- if admin %} - {{ render_field_in_row(form.group_type) }} - {%- endif %} -
-

- - - {{ form.csrf_token }} -

-
-
- +
+
+
+
+
+ Create new group +
+
+
+ {{ render_bootstrap_field(form.group_name, field_description="the name of your group") }} + {{ render_bootstrap_field(form.display_name, field_description="display name of your group") }} + {{ render_bootstrap_field(form.description, field_description="short description about the group") }} + {%- if admin %} + {{ render_bootstrap_field(form.group_type, field_description="mention the type of group") }} + {%- endif %} +

+ + + {{ form.csrf_token }} +

+
+
+
+
+
+
{% endblock %} diff --git a/pagure/templates/group_list.html b/pagure/templates/group_list.html index b75eed8..a2b6905 100644 --- a/pagure/templates/group_list.html +++ b/pagure/templates/group_list.html @@ -21,45 +21,16 @@ Groups {{ groups | length }} {% if authenticated and config.get('ENABLE_GROUP_MNGT', False) %} - + + + {% endif %} - {% if authenticated %} - - {% endif %} - {% if total_page and total_page > 1 %}