templates: Adjust what proposal fields are shown.
Show fields we use, not ones we don't.
This commit is contained in:
		
							parent
							
								
									b7de2f57a5
								
							
						
					
					
						commit
						2f260937da
					
				
					 1 changed files with 62 additions and 0 deletions
				
			
		
							
								
								
									
										62
									
								
								pinaxcon/templates/symposion/proposals/_proposal_fields.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								pinaxcon/templates/symposion/proposals/_proposal_fields.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,62 @@ | |||
| {% comment %} | ||||
| Based on the original file from | ||||
| <https://github.com/chrisjrn/symposion-bootstrap-templates/blob/7f1394697a8fd28c201dd4a489d497a24af95a1b/symposion_templates/templates/symposion/proposals/_proposal_fields.html> | ||||
| {% endcomment %} | ||||
| 
 | ||||
| {% load i18n %} | ||||
| 
 | ||||
| <dl class="dl-horizontal"> | ||||
|     <dt>{% trans "Submitted by" %}</dt> | ||||
|     <dd>{{ proposal.speaker }}</dd> | ||||
| 
 | ||||
|     <dt>{% trans "Proposal Kind" %}</dt> | ||||
|     <dd>{{ proposal.kind.name }}</dd> | ||||
| 
 | ||||
|     {% if proposal.additional_speakers.all %} | ||||
|         <dt>{% trans "Additional Speakers" %}</dt> | ||||
|         <dd> | ||||
|             {% for speaker in proposal.additional_speakers.all %} | ||||
|                 <li> | ||||
|                     {% if speaker.user %} | ||||
|                         <strong>{{ speaker.name }}</strong> <{{ speaker.email }}> | ||||
|                     {% else %} | ||||
|                         {{ speaker.email }} ({% trans "Invitation Sent" %}) | ||||
|                     {% endif %} | ||||
|                 </li> | ||||
|             {% endfor %} | ||||
|         </dd> | ||||
|     {% endif %} | ||||
| 
 | ||||
|     <dt>{% trans "Description" %}</dt> | ||||
|     <dd>{{ proposal.description }} </dd> | ||||
| 
 | ||||
|     <dt>{% trans "Abstract" %}</dt> | ||||
|     <dd>{{ proposal.abstract_html|safe }} </dd> | ||||
| 
 | ||||
|     <dt>{% trans "Notes" %}</dt> | ||||
|     <dd>{{ proposal.additional_notes_html|safe }} </dd> | ||||
| 
 | ||||
|     <dt>{% trans "Speaker Bio" %}</dt> | ||||
|     <dd>{{ proposal.speaker.biography|safe }} </dd> | ||||
| 
 | ||||
|     <dt>{% trans "Documents" %}</dt> | ||||
|     <dd> | ||||
|         {% if proposal.supporting_documents.exists %} | ||||
|             <table class="table table-striped"> | ||||
|                 {% for document in proposal.supporting_documents.all %} | ||||
|                     <tr> | ||||
|                         <td><a href="{{ document.download_url }}">{{ document.description }}</a></td> | ||||
|                         <td> | ||||
|                         <form style="margin: 0;" method="post" action="{% url "proposal_document_delete" document.pk %}"> | ||||
|                             {% csrf_token %} | ||||
|                             <button type="submit" class="btn btn-xs">delete</button> | ||||
|                         </form> | ||||
|                     </td> | ||||
|                     </tr> | ||||
|                 {% endfor %} | ||||
|             </table> | ||||
|         {% else %} | ||||
|             No supporting documents attached to this proposal. | ||||
|         {% endif %} | ||||
|     </dd> | ||||
| </dl> | ||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Brett Smith
						Brett Smith