Modifications to review_admin.html (#62)
* Modifications to review_admin.html * Adds “submit & jump to random proposal” button * If user has a speaker profile, display their speaker profile name alongside their comments instead of their user name.
This commit is contained in:
		
							parent
							
								
									e46c4c4b23
								
							
						
					
					
						commit
						09725bede0
					
				
					 2 changed files with 26 additions and 4 deletions
				
			
		|  | @ -1,7 +1,7 @@ | ||||||
| {% extends "symposion/reviews/base.html" %} | {% extends "symposion/reviews/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% block body %} | {% block body %} | ||||||
|     <h1>Reviewers</h1> |     <h1>Reviewers – {{ section_slug }}</h1> | ||||||
| 
 | 
 | ||||||
|     <table class="table table-striped"> |     <table class="table table-striped"> | ||||||
|         <tr> |         <tr> | ||||||
|  | @ -14,6 +14,9 @@ | ||||||
|             <th> |             <th> | ||||||
|                 Comments |                 Comments | ||||||
|             </th> |             </th> | ||||||
|  |             <th> | ||||||
|  |                 Avg | ||||||
|  |             </th> | ||||||
|             <th> |             <th> | ||||||
|                 +2 |                 +2 | ||||||
|             </th> |             </th> | ||||||
|  | @ -26,11 +29,16 @@ | ||||||
|             <th> |             <th> | ||||||
|                 −2 |                 −2 | ||||||
|             </th> |             </th> | ||||||
|  |             <th> | ||||||
|  |                 Abstain | ||||||
|  |             </th> | ||||||
|         </tr> |         </tr> | ||||||
|         {% for reviewer in reviewers %} |         {% for reviewer in reviewers %} | ||||||
|         <tr> |         <tr> | ||||||
|             <td> |             <td> | ||||||
|                 <a href="{% url "review_list_user" section_slug reviewer.pk %}">{{ reviewer.get_full_name }}</a> |                 <a href="{% url "review_list_user" section_slug reviewer.pk %}"> | ||||||
|  |                     {{ reviewer.get_full_name }} <{{ reviewer.email }}> | ||||||
|  |                 </a> | ||||||
|             </td> |             </td> | ||||||
|             <td> |             <td> | ||||||
|                 {{ reviewer.total_votes }} |                 {{ reviewer.total_votes }} | ||||||
|  | @ -38,6 +46,9 @@ | ||||||
|             <td> |             <td> | ||||||
|                 {{ reviewer.comment_count }} |                 {{ reviewer.comment_count }} | ||||||
|             </td> |             </td> | ||||||
|  |             <td> | ||||||
|  |                 {{ reviewer.average }} | ||||||
|  |             </td> | ||||||
|             <td> |             <td> | ||||||
|                 {{ reviewer.plus_two }} |                 {{ reviewer.plus_two }} | ||||||
|             </td> |             </td> | ||||||
|  | @ -50,6 +61,9 @@ | ||||||
|             <td> |             <td> | ||||||
|                 {{ reviewer.minus_two }} |                 {{ reviewer.minus_two }} | ||||||
|             </td> |             </td> | ||||||
|  |             <td> | ||||||
|  |                 {{ reviewer.abstain }} | ||||||
|  |             </td> | ||||||
|         </tr> |         </tr> | ||||||
|         {% endfor %} |         {% endfor %} | ||||||
|     </table> |     </table> | ||||||
|  |  | ||||||
|  | @ -107,7 +107,8 @@ | ||||||
|                         {% csrf_token %} |                         {% csrf_token %} | ||||||
|                             {{ review_form|bootstrap }} |                             {{ review_form|bootstrap }} | ||||||
|                             <div class="form-action"> |                             <div class="form-action"> | ||||||
|                                 <input type="submit" class="btn btn-primary" name="vote_submit" value="Submit Review" /> |                               <input type="submit" class="btn btn-primary" name="vote_submit" value="Submit Review" /> | ||||||
|  |                               <input type="submit" class="btn btn-primary" name="vote_submit_and_random" value="Submit Review and jump to random proposal" /> | ||||||
|                             </div> |                             </div> | ||||||
|                     </form> |                     </form> | ||||||
|                 {% else %} |                 {% else %} | ||||||
|  | @ -130,7 +131,14 @@ | ||||||
|                                 </div> |                                 </div> | ||||||
|                             {% endif %} |                             {% endif %} | ||||||
|                             <div class="review-content"> |                             <div class="review-content"> | ||||||
|                                   <b>{% user_display review.user %}</b> |                                   | ||||||
|  |                                 <b> | ||||||
|  |                                   {% if review.user.speaker_profile %} | ||||||
|  |                                     {{ review.user.speaker_profile.name }} | ||||||
|  |                                   {% else %} | ||||||
|  |                                     {% user_display review.user %} | ||||||
|  |                                   {% endif %} | ||||||
|  |                                 </b> | ||||||
|                                 {{ review.submitted_at|timesince }} ago <br /> |                                 {{ review.submitted_at|timesince }} ago <br /> | ||||||
|                                 {{ review.comment_html|safe }} |                                 {{ review.comment_html|safe }} | ||||||
|                             </div> |                             </div> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer