forked from expfactory/expfactory-docker
-
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.
Merge pull request #2 from rwblair/issue154
Fix for Issue expfactory#154
- Loading branch information
Showing
8 changed files
with
128 additions
and
25 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
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,19 @@ | ||
{% load crispy_forms_tags %} | ||
<div class="modal-dialog modal-lg"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h4 class="modal-title">Contact Worker {{ worker }}</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<div> | ||
<form method="post" action="{% url 'contact_worker' assignment.id %}"> | ||
{% crispy form %} | ||
</form> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | ||
</div> | ||
</div><!-- /.modal-content --> | ||
</div><!-- /.modal-dialog --> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,47 @@ | ||
from expdj.apps.turk.views import edit_hit, delete_hit, expire_hit, preview_hit, \ | ||
serve_hit, multiple_new_hit, end_assignment, finished_view, not_consent_view, \ | ||
survey_submit, manage_hit | ||
from expdj.apps.turk.views import (edit_hit, delete_hit, expire_hit, | ||
preview_hit, serve_hit, multiple_new_hit, end_assignment, finished_view, | ||
not_consent_view, survey_submit, manage_hit, contact_worker) | ||
from expdj.apps.experiments.views import sync | ||
from django.views.generic.base import TemplateView | ||
from django.conf.urls import patterns, url | ||
|
||
urlpatterns = patterns('', | ||
# HITS | ||
url(r'^hits/(?P<bid>\d+|[A-Z]{8})/new$',edit_hit,name='new_hit'), | ||
url(r'^hits/(?P<bid>\d+|[A-Z]{8})/(?P<hid>\d+|[A-Z]{8})/manage$',manage_hit,name='manage_hit'), | ||
url(r'^hits/(?P<bid>\d+|[A-Z]{8})/multiple$',multiple_new_hit,name='multiple_new_hit'), | ||
url(r'^hits/(?P<bid>\d+|[A-Z]{8})/(?P<hid>\d+|[A-Z]{8})/edit$',edit_hit,name='edit_hit'), | ||
url( | ||
r'^hits/(?P<bid>\d+|[A-Z]{8})/(?P<hid>\d+|[A-Z]{8})/manage$', | ||
manage_hit, | ||
name='manage_hit' | ||
), | ||
url( | ||
r'^hits/(?P<bid>\d+|[A-Z]{8})/multiple$', | ||
multiple_new_hit, | ||
name='multiple_new_hit' | ||
), | ||
url( | ||
r'^hits/(?P<bid>\d+|[A-Z]{8})/(?P<hid>\d+|[A-Z]{8})/edit$', | ||
edit_hit, | ||
name='edit_hit' | ||
), | ||
url(r'^hits/(?P<hid>\d+|[A-Z]{8})/delete$',delete_hit,name='delete_hit'), | ||
url(r'^hits/(?P<hid>\d+|[A-Z]{8})/expire$',expire_hit,name='expire_hit'), | ||
|
||
# Turk Deployments | ||
url(r'^accept/(?P<hid>\d+|[A-Z]{8})',serve_hit,name='serve_hit'), | ||
url(r'^turk/(?P<hid>\d+|[A-Z]{8})',preview_hit,name='preview_hit'), | ||
url(r'^turk/preview',not_consent_view,name='not_consent_view'), | ||
url(r'^turk/end/(?P<rid>\d+|[A-Z]{8})',end_assignment,name='end_assignment'), | ||
url(r'^surveys/(?P<rid>\d+|[A-Z]{8})/(?P<hid>[A-Za-z0-9]{30})/submit$',survey_submit,name='survey_submit'), | ||
url( | ||
r'^turk/end/(?P<rid>\d+|[A-Z]{8})', | ||
end_assignment, | ||
name='end_assignment' | ||
), | ||
url( | ||
r'^surveys/(?P<rid>\d+|[A-Z]{8})/(?P<hid>[A-Za-z0-9]{30})/submit$', | ||
survey_submit, | ||
name='survey_submit' | ||
), | ||
url(r'^sync/(?P<rid>\d+|[A-Z]{8})/$',sync,name='sync_data'), | ||
url(r'^sync/$',sync,name='sync_data'), | ||
url(r'^finished$', finished_view, name="finished_view") | ||
url(r'^finished$', finished_view, name="finished_view"), | ||
url(r'^worker/contact/(?P<aid>\d+)',contact_worker,name='contact_worker') | ||
) |
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