-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle the disabling of the registration process (#303)
- Loading branch information
Showing
15 changed files
with
189 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends 'ngo/base.html' %} | ||
{% load social_share %} | ||
{% load static %} | ||
{% load spurl %} | ||
{% load i18n %} | ||
|
||
|
||
{% block title %}{% trans 'Sign In Error' %}{% endblock %} | ||
|
||
{% block left-side-view %} | ||
<div class="container tight-container content mb-50"> | ||
<h2> | ||
{% trans 'Sign In Error' %} | ||
</h2> | ||
|
||
{% block error_message %} | ||
<p></p> | ||
{% endblock %} | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,8 @@ | ||
{% extends 'ngo/base.html' %} | ||
{% load social_share %} | ||
{% load static %} | ||
{% load spurl %} | ||
{% extends 'error_org_base.html' %} | ||
{% load i18n %} | ||
|
||
|
||
{% block title %}Eroare autentificare{% endblock %} | ||
|
||
{% block left-side-view %} | ||
<div class="container tight-container content mb-50"> | ||
<h2> | ||
Eroare autentificare | ||
</h2> | ||
|
||
<p> | ||
Organizația dumneavoastră există deja în platforma VotONG, pentru un alt cont de utilizator. | ||
</p> | ||
</div> | ||
{% block error_message %} | ||
<p> | ||
{% trans 'This NGO Hub organization already exists for another VotONG user.' %} | ||
</p> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,8 @@ | ||
{% extends 'ngo/base.html' %} | ||
{% load social_share %} | ||
{% load static %} | ||
{% load spurl %} | ||
{% extends 'error_org_base.html' %} | ||
{% load i18n %} | ||
|
||
|
||
{% block title %}Eroare autentificare{% endblock %} | ||
|
||
{% block left-side-view %} | ||
<div class="container tight-container content mb-50"> | ||
<h2> | ||
Eroare autentificare | ||
</h2> | ||
|
||
<p> | ||
Pentru a vă putea autentifica în platforma VotONG, trebuie să aveți o organizație înscrisă in NGO Hub. | ||
</p> | ||
</div> | ||
{% block error_message %} | ||
<p> | ||
{% trans 'There is no NGO Hub organization for this VotONG user.' %} | ||
</p> | ||
{% endblock %} |
8 changes: 8 additions & 0 deletions
8
backend/accounts/templates/error_org_registration_closed.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,8 @@ | ||
{% extends 'error_org_base.html' %} | ||
{% load i18n %} | ||
|
||
{% block error_message %} | ||
<p> | ||
{% trans 'The registration process for new organizations is currently disabled.' %} | ||
</p> | ||
{% 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
class OrganizationException(Exception): | ||
"""Some kind of problem with an organization""" | ||
|
||
pass | ||
|
||
|
||
class ClosedRegistrationException(OrganizationException): | ||
"""New organizations cannot be registered anymore""" | ||
|
||
pass | ||
|
||
|
||
class DisabledOrganizationException(OrganizationException): | ||
"""The requested organization has been disabled from the platform""" | ||
|
||
pass | ||
|
||
|
||
class DuplicateOrganizationException(OrganizationException): | ||
"""An organization with the same NGO Hub ID already exists""" | ||
|
||
pass | ||
|
||
|
||
class MissingOrganizationException(OrganizationException): | ||
"""The requested organization does not exist""" | ||
|
||
pass |
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
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
Oops, something went wrong.