Changed the "no user with this email" warning when adding delegates/shepherds.

- Legacy-Id: 3016
This commit is contained in:
Emilio A. Sánchez López 2011-03-30 19:07:45 +00:00
parent e80062394c
commit c9241edf7b
2 changed files with 19 additions and 3 deletions

View file

@ -1,10 +1,26 @@
{% if shepherd %}
<p>
The shepherd you are trying to designate does not have a personal user-id and password to log-on to the Datatracker.
</p>
<p>
An email will be sent to the following addresses to inform that
the person you have designated to be one of your document shepherds
currently does not have login credentials for the Datatracker
and should contact the Secretariat to obtain their own user-id and
password for the Datatracker.
</p>
{% else %}
<p>
The delegate you are trying to designate does not have a personal user-id and password to log-on to the Datatracker.
</p>
<p>
An email will be sent to the following address to inform that the person designated sould contact with the Secretariat
to obtain their own user-id and password to the Datatracker.
An email will be sent to the following addresses to inform that
the person you have designated to be one of your delegates
currently does not have login credentials for the Datatracker
and should contact the Secretariat to obtain their own user-id and
password for the Datatracker.
</p>
{% endif %}
<ul>
{% for email in email_list %}
<li>{{ email }}</li>

View file

@ -278,7 +278,7 @@ class NotExistDelegateForm(MultipleDelegateForm):
def as_p(self):
email_list = self.get_email_list()
info = render_to_string('wgchairs/notexistdelegate.html', {'email_list': email_list})
info = render_to_string('wgchairs/notexistdelegate.html', {'email_list': email_list, 'shepherd': self.shepherd})
return info + super(NotExistDelegateForm, self).as_p()
def send_email(self, email, template):