-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add separate form for project visibility and improve wording
- Loading branch information
1 parent
d370398
commit 12798ce
Showing
5 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
rdmo/projects/templates/projects/project_form_visibility.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends 'core/page.html' %} | ||
{% load i18n %} | ||
{% load core_tags %} | ||
|
||
{% block page %} | ||
|
||
<h1> | ||
{% if object.visibility %} | ||
{% trans 'Update project visibility' %} | ||
{% else %} | ||
{% trans 'Make project visible' %} | ||
{% endif %} | ||
</h1> | ||
|
||
<p class="mb-20"> | ||
{% blocktrans trimmed %} | ||
Projects can be made visible to all users, for example to be used as a template. | ||
When a project is made visible, users can access it as if they were in the guest role. | ||
{% endblocktrans %} | ||
</p> | ||
|
||
{% if object.visibility and 'sites' in form.fields or 'groups' in form.fields %} | ||
{% bootstrap_form submit=_('Update visibility') delete=_('Remove visibility') %} | ||
{% elif object.visibility %} | ||
{% bootstrap_form delete=_('Remove visibility') %} | ||
{% else %} | ||
{% bootstrap_form submit=_('Make visible') %} | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters