From b44e73974ab1e2e0a6f4b654f3c33086ac037f70 Mon Sep 17 00:00:00 2001 From: farhaanbukhsh Date: Apr 14 2017 10:32:36 +0000 Subject: Add Private Repo UI --- diff --git a/pagure/forms.py b/pagure/forms.py index 0ecae8a..25a0f30 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -130,6 +130,12 @@ class ProjectFormSimplified(PagureForm): wtforms.validators.Length(max=255), ] ) + private = wtforms.BooleanField( + 'Private', + [wtforms.validators.Optional()] + ) + + class ProjectForm(ProjectFormSimplified): diff --git a/pagure/templates/new_project.html b/pagure/templates/new_project.html index f7f67f5..b141ac9 100644 --- a/pagure/templates/new_project.html +++ b/pagure/templates/new_project.html @@ -20,6 +20,7 @@ {{ render_bootstrap_field(form.namespace, field_description="namespace of the project") }} {{ render_bootstrap_field(form.url, field_description="url of the project's website") }} {{ render_bootstrap_field(form.avatar_email, field_description="libravatar email address avatar email") }} + {{ render_bootstrap_field(form.private, field_description="To mark the repo private") }} {{ render_bootstrap_field(form.create_readme, field_description="Create a README file automatically") }}