Replaced tabs with spaces

This commit is contained in:
corentin-feys 2022-03-07 21:20:42 +01:00
parent 35f115bc0a
commit bb7d080f65
3 changed files with 15 additions and 16 deletions

View file

@ -70,13 +70,13 @@
{% include 'snippets/form_errors.html' with errors_list=request_form.email.errors id="desc_request_email" %} {% include 'snippets/form_errors.html' with errors_list=request_form.email.errors id="desc_request_email" %}
</div> </div>
{% if site.invite_request_question %} {% if site.invite_request_question %}
<div class="block"> <div class="block">
<label for="id_answer_register" class="label">{{ site.invite_question_text }}</label> <label for="id_answer_register" class="label">{{ site.invite_question_text }}</label>
<input type="answer" name="answer" maxlength="50" class="input" required="true" id="id_answer_register" aria-describedby="desc_answer_register"> <input type="answer" name="answer" maxlength="50" class="input" required="true" id="id_answer_register" aria-describedby="desc_answer_register">
{% include 'snippets/form_errors.html' with errors_list=request_form.answer.errors id="desc_answer_register" %} {% include 'snippets/form_errors.html' with errors_list=request_form.answer.errors id="desc_answer_register" %}
</div> </div>
{% endif %} {% endif %}
<button type="submit" class="button is-link">{% trans "Submit" %}</button> <button type="submit" class="button is-link">{% trans "Submit" %}</button>
</form> </form>

View file

@ -145,18 +145,18 @@
{% trans "Allow invite requests" %} {% trans "Allow invite requests" %}
</label> </label>
</div> </div>
<div class="field"> <div class="field">
<label class="label" for="id_invite_requests_question"> <label class="label" for="id_invite_requests_question">
{{ site_form.invite_request_question }} {{ site_form.invite_request_question }}
{% trans "Set a question for invite requests" %} {% trans "Set a question for invite requests" %}
</label> </label>
</div> </div>
<div class="field"> <div class="field">
<label class="label" for="id_invite_question_text"> <label class="label" for="id_invite_question_text">
{% trans "Question:" %} {% trans "Question:" %}
{{ site_form.invite_question_text }} {{ site_form.invite_question_text }}
</label> </label>
</div> </div>
<div class="field"> <div class="field">
<label class="label mb-0" for="id_require_confirm_email"> <label class="label mb-0" for="id_require_confirm_email">
{{ site_form.require_confirm_email }} {{ site_form.require_confirm_email }}

View file

@ -96,7 +96,7 @@ class ManageInviteRequests(View):
"created_date", "created_date",
"invite__times_used", "invite__times_used",
"invite__invitees__created_date", "invite__invitees__created_date",
"answer" "answer"
] ]
# pylint: disable=consider-using-f-string # pylint: disable=consider-using-f-string
if not sort in sort_fields + ["-{:s}".format(f) for f in sort_fields]: if not sort in sort_fields + ["-{:s}".format(f) for f in sort_fields]:
@ -172,7 +172,6 @@ class InviteRequest(View):
if form.is_valid(): if form.is_valid():
received = True received = True
form.save() form.save()
#answer =
data = { data = {
"request_form": form, "request_form": form,