app/soc/templates/soc/request/process_invite.html
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 26 Oct 2009 10:25:01 -0700
changeset 3062 4b5a7e5746a0
parent 3048 b89af35c74d3
permissions -rw-r--r--
Now showing the message contained in Requests on the correct pages. Note that facilities to edit your message, and to perhaps change the message when accepting a request still need to be provided. Fixes Issue 385.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
920
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
{% comment %}
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
limitations under the License.
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    15
{% load forms_helpers %}
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    17
{% block body %}
3062
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    18
<div="text">
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    19
You have been invited to become a {{ role_name }} for {{ entity.group.name }}.<br/>
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    20
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    21
{% if entity.message %}
920
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    22
<p>
3062
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    23
<i>Invitation Message:</i><br/>
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    24
{{entity.message|linebreaks }}
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    25
</p>
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    26
{% endif %}
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    27
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    28
<p>
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    29
If you wish to accept this invitation please click the Accept button and fill out the required information.
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    30
If you wish to reject this invitation please click the Reject button, this invitation will then disappear from your invitation list.
4b5a7e5746a0 Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 3048
diff changeset
    31
</p>
920
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    32
</div>
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    33
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    34
<tr>
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    35
  <td>
929
7431d7770197 Renamed redirect methods to comply with the rest of the module.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 920
diff changeset
    36
    <input type="button" onclick="location.href='{{ invite_accepted_redirect }}'" value="Accept"/>
3048
b89af35c74d3 Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2748
diff changeset
    37
    <input type="button" onclick="location.href='/{{ module_name }}/process_invite/{{ entity.key.id_or_name }}?status=rejected'" value="Reject"/>
920
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    38
  </td>
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    39
</tr>
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    40
</table>
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    41
39badbfb80be Added the new way to process invites for club_admin only.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    42
{% endblock %}