-
Notifications
You must be signed in to change notification settings - Fork 581
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 #859 from pneff/job-review-improvements
Job review improvements
- Loading branch information
Showing
12 changed files
with
226 additions
and
79 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
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,30 @@ | ||
{% extends "comments/form.html" %} | ||
{% load comments i18n %} | ||
{% block comment_action %} | ||
{% comment %}Special comment target for reviewers{% endcomment %} | ||
{% if request.user == object.creator %}{% comment_form_target %}{% else %}{% url "jobs:job_review" %}{% endif %} | ||
{% endblock %} | ||
{% block buttons %} | ||
{% if request.user == object.creator %} | ||
<input type="submit" name="post" class="submit-post" value="{% trans "Post" %}" /> | ||
{% else %} | ||
{% comment %}Special comment options for reviewer{% endcomment %} | ||
<strong>Insert Canned response:</strong> | ||
<select id="canned_response"> | ||
<option value="empty">---</option> | ||
<option value="not_python">No or not enough emphasis on Python</option> | ||
<option value="formatting">Formatting broken</option> | ||
<option value="duplicate">Duplicate posting</option> | ||
<option value="voluntary">Voluntary, non paid job</option> | ||
</select> | ||
<h3>Review action</h3> | ||
<input type="hidden" name="job_id" value="{{ job.id }}"> | ||
|
||
<div> | ||
<a class="review_button button" href="{% url 'jobs:job_edit' pk=object.pk %}?next={{request.get_full_path}}">Edit</a> | ||
<button class="review_button" name="action" value="approve">Approve</button> | ||
<button class="review_button" name="action" value="reject">Reject</button> | ||
</div> | ||
{% 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
Oops, something went wrong.