Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: add timer disclaimer (#294) #295

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions applications/templates/application.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@
</div>
{% endif %}
<div style="padding-left: 15px; padding-right: 15px">
<div class="alert alert-warning">
{% if application.can_be_edit %}
<p>It is still possible to modify your application.</p>
{% else %}
<p>Your application has been reviewed already. Editing has been disabled to make sure all reviewers get the
same data. If you would like to change something important, please email us at {{ h_contact_email|urlize }}.</p>
{% endif %}


<p>
Be careful, you can only edit the application during <b style="text-decoration: underline;">2 hours</b> after applying
</p>

{% else %}
<p>Your application has been reviewed already. Editing has been disabled to make sure all reviewers get the
same data. If you would like to change something important, please email us at {{ h_contact_email|urlize }}.</p>
{% endif %}
</div>
</div>
{% include 'include/application_form.html' %}

Expand Down
2 changes: 1 addition & 1 deletion applications/templates/include/application_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>

{% if not application or application.can_be_edit %}
<button class="btn btn-success btn-block" type="submit">{% if application %}Update application{% else %}
<button class="btn btn-success btn-block" type="submit" {% if application and not application.can_be_edit %} disabled {% endif %}>{% if application %}Update application{% else %}
Submit application{% endif %}</button>

{% endif %}
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
build: .
ports:
- "${MYHACKUPC_PORT}:8000" # Map Gunicorn port
volumes:
- ./files:/code/files
expose:
- "${MYHACKUPC_PORT}"
env_file:
Expand Down