Minor tweaks before testing
This commit is contained in:
		
							parent
							
								
									c47c22d617
								
							
						
					
					
						commit
						bcdc6a864a
					
				
					 5 changed files with 18 additions and 11 deletions
				
			
		|  | @ -1,7 +1,7 @@ | |||
| #!/bin/bash | ||||
| 
 | ||||
| /usr/local/bin/python /app/symposion_app/manage.py migrate | ||||
| /usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{conference,proposal_base,sites,sitetree,flatpages}.json | ||||
| /usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{conference,proposal_base,sites,flatpages}.json | ||||
| /usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{2019_groups,2019_registrasion,2019_schedule,2019_sitetree,2019_flatpages}.json | ||||
| 
 | ||||
| /usr/local/bin/python /app/symposion_app/manage.py create_review_permissions | ||||
|  |  | |||
|  | @ -48,12 +48,10 @@ | |||
|       </fieldset> | ||||
|         {% endfor %} | ||||
| 
 | ||||
|         <div class="btn-group"> | ||||
|           {% if current_step > 1 %} | ||||
|           <a class="btn btn-primary" role="button" href="{{ previous_step }}">Back</a> | ||||
|           {% endif %} | ||||
|           <input class="btn btn-primary" type="submit" value="Next Step" /> | ||||
|         </div> | ||||
|       {% if current_step > 1 %} | ||||
|       <a class="btn btn-primary" role="button" href="{{ previous_step }}">Back</a> | ||||
|       {% endif %} | ||||
|       <input class="btn btn-primary" type="submit" value="Next Step" /> | ||||
|   </form> | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -91,9 +91,7 @@ | |||
|       {% csrf_token %} | ||||
|       {% include "_form_snippet.html" with form=form %} | ||||
|       <br /> | ||||
|       <div class="btn-group"> | ||||
|         <input id="pay" class="btn btn-primary" type="submit" value="Pay ${{ invoice.balance_due }}" /> | ||||
|       </div> | ||||
|       <input id="pay" class="btn btn-primary" type="submit" value="Pay ${{ invoice.balance_due }}" /> | ||||
|     </fieldset> | ||||
|   </form> | ||||
| {% endblock %} | ||||
|  |  | |||
|  | @ -4,6 +4,7 @@ | |||
| {% load teams_tags %} | ||||
| {% load registrasion_tags %} | ||||
| {% load lca2018_tags %} | ||||
| {% load lca2019_tags %} | ||||
| {% load staticfiles %} | ||||
| 
 | ||||
| {% if user.is_staff %} | ||||
|  | @ -78,7 +79,7 @@ | |||
|     <div class="col-6 my-3 d-flex flex-column"> | ||||
|       <h4>Items pending payment</h4> | ||||
|       {% include "registrasion/_items_list.html" with items=pending %} | ||||
|       <a class="btn btn-lg btn-success" role="button" href="{% url "checkout" %}">Check out and pay</a> | ||||
|       <a class="btn btn-lg btn-primary" role="button" href="{% url "checkout" %}">Check out and pay</a> | ||||
|     </div> | ||||
|     {% endif %} | ||||
| 
 | ||||
|  | @ -107,9 +108,11 @@ | |||
|         </li> | ||||
|         {% endfor %} | ||||
|       </ul> | ||||
|       {% if invoices|any_is_void %} | ||||
|       <div class="mt-auto"> | ||||
|         <button id="toggle-void-invoices" onclick="toggleVoidInvoices();" class="btn btn-lg btn-default">Show void invoices</button> | ||||
|       </div> | ||||
|       {% endif %} | ||||
|     </div> | ||||
|     {% endif %} | ||||
| 
 | ||||
|  |  | |||
|  | @ -14,3 +14,11 @@ def has_required_fields(form): | |||
|         if field.field.required: | ||||
|             return True | ||||
|     return False | ||||
| 
 | ||||
| 
 | ||||
| @register.filter | ||||
| def any_is_void(invoices): | ||||
|     for invoice in invoices: | ||||
|         if invoice.is_void: | ||||
|             return True | ||||
|     return False | ||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Tobias
						Tobias