File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 3
3
{% block subtitle %}{% translate "Friends' group" %}{% endblock %}
4
4
{% block content %}
5
5
< h1 > {% translate "Apply with friends" %}</ h1 >
6
- < p > {% translate "The friends group created is not required to be your final team for the hackathon." %}</ p >
6
+ < p > {% translate 'Please keep this in mind:' %}</ p >
7
+ < ul >
8
+ < li > {% translate 'The friends group created is not required to be your final team for the hackathon.' %}</ li >
9
+ < li > {% translate 'If someone of the group is invited, the group will be closed and no one will be able to join.' %}</ li >
10
+ {% if friends_max_capacity is not None %}
11
+ < li > {% translate 'Max group capacity:' %} {{ friends_max_capacity }}</ li >
12
+ {% endif %}
13
+ </ ul >
7
14
< form method ="post " id ="invite-form ">
8
15
{% csrf_token %}
9
16
{% include 'components/bootstrap5_form.html' with form=friends_form %}
Original file line number Diff line number Diff line change
1
+ from django .conf import settings
1
2
from django .contrib import messages
2
3
from django .db import Error , transaction
3
4
from django .http import HttpResponseBadRequest
@@ -42,6 +43,7 @@ def get_context_data(self, **kwargs):
42
43
context .update ({"friends_code" : friends_code })
43
44
except FriendsCode .DoesNotExist :
44
45
context .update ({"friends_form" : FriendsForm ()})
46
+ context .update ({'friends_max_capacity' : getattr (settings , 'FRIENDS_MAX_CAPACITY' , None )})
45
47
return context
46
48
47
49
def post (self , request , ** kwargs ):
You can’t perform that action at this time.
0 commit comments