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") }}