Added some basic templates

This commit is contained in:
2011-09-30 09:33:16 +01:00
parent 23a5df5eda
commit 0b7055ee26
7 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
<h2>Group Request Accepted</h2>
<p>
Your request to join <b>{{ request.group.name }}</b> has been <b>accepted</b>.
</p>
<p>
Please check the forums for further information on what this group entitles you to. Your accesss will be updated within the next few minutes.
</p>

View File

@@ -0,0 +1,3 @@
Your request to join {{ request.group.name }} has been accepted.
Please check the forums for further information on what this group entitles you to. Your accesss will be updated within the next few minutes.

View File

@@ -0,0 +1,7 @@
<h2>Group Request Rejected</h2>
<p>
Your request to join <b>{{ request.group.name }}</b> has been <b>rejected</b>.
</p>
<p>
Your request was rejected by {{ request.changed_by.get_profile.primarycharacter.name }}, if you have any questions regarding this please contact them.
</p>

View File

@@ -0,0 +1,3 @@
Your request to join {{ request.group.name }} has been rejected.
Your request was rejected by {{ request.changed_by.get_profile.primarycharacter.name }}, if you have any questions regarding this please contact them.

View File

@@ -0,0 +1,8 @@
<h2>Group Request</h2>
<p>
<b>{{ request.user.username }}</b> has requested to be a member of the <b>{{ request.group.name }}<b> group.
</p>
<p>
To accept or reject this request, please use the <a href="{{% url groups.admin request.group.id %}}">group administration panel</a>.
</p>

View File

@@ -0,0 +1,5 @@
{{ request.user.username }} has requested to be a member of the {{ request.group.name }} group.
To accept or reject this request, please use the group administration panel[1].
[1] {{% url groups.admin request.group.id %}}

View File

@@ -8,7 +8,7 @@ urlpatterns = patterns('',
(r'^kick/(?P<groupid>\d+)/(?P<userid>\d+)/$', views.kick_member),
(r'^promote/(?P<groupid>\d+)/(?P<userid>\d+)/$', views.promote_member),
(r'^admin/(?P<groupid>\d+)/$', views.admin_group),
url(r'^admin/(?P<groupid>\d+)/$', views.admin_group, name='groups-admin'),
(r'^accept/(?P<requestid>\d+)/$', views.accept_request),
(r'^reject/(?P<requestid>\d+)/$', views.reject_request),
)