Changes to report.html
This commit is contained in:
		
							parent
							
								
									c8e21b8011
								
							
						
					
					
						commit
						b6222c5eba
					
				
					 1 changed files with 13 additions and 6 deletions
				
			
		|  | @ -6,11 +6,13 @@ | |||
| 
 | ||||
|   <h2>{{ title }}</h2> | ||||
| 
 | ||||
|   {% if form %} | ||||
|     <form method="GET"> | ||||
|       {{ form | bootstrap}} | ||||
|       <br/> | ||||
|       <input type="submit"> | ||||
|     </form> | ||||
|   {% endif %} | ||||
| <hr /> | ||||
| 
 | ||||
| <table class="table table-striped"> | ||||
|  | @ -22,7 +24,12 @@ | |||
|   {% for line in report.data %} | ||||
|     <tr> | ||||
|       {% for item in line %} | ||||
|         <td>{{ item }}</td> | ||||
|         <td> | ||||
|           {% if report.link_view and forloop.counter0 == 0 %} | ||||
|             <a href="{% url report.link_view item %}"> | ||||
|           {% endif %} | ||||
|           {{ item }} | ||||
|         </td> | ||||
|       {% endfor %} | ||||
|     </tr> | ||||
|   {% endfor %} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer