-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows uploading a CSV with updated responses to a question for bulk editing
- Loading branch information
Showing
5 changed files
with
241 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
crowdsourcer/templates/crowdsourcer/questions/question_bulk_upload.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% extends 'crowdsourcer/base.html' %} | ||
|
||
{% load crowdsourcer_tags django_bootstrap5 %} | ||
|
||
{% block content %} | ||
{% if show_login %} | ||
<h1 class="mb-4">Sign in</h1> | ||
<a href="{% url 'login' %}">Sign in</a> | ||
{% else %} | ||
<h1 class="mb-4">Update Responses for {{ section.title }} {{ question.number_and_part }}</h1> | ||
<h4 class="mb-4">{{ question.description }}</h4> | ||
|
||
|
||
<form enctype="multipart/form-data" action="" method="post"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
<input type="submit" value="Update"> | ||
</form> | ||
|
||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters