mirror of https://github.com/interlegis/sapl.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							40 lines
						
					
					
						
							909 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							40 lines
						
					
					
						
							909 B
						
					
					
				| {% extends "parlamentares/parlamentares_detail.html" %} | |
| {% load i18n %} | |
| {% load crispy_forms_tags %} | |
| 
 | |
| {% block detail_content %} | |
| 	<fieldset> | |
| 		<legend>Selecione o Período</legend> | |
| 		<form method="POST"> | |
| 			{% csrf_token %} | |
| 			<select name="periodo" onChange="form.submit();"> | |
| 				{% for l in legislaturas %} | |
| 					<option value="{{l.id}}" {% if l.id == legislatura_id %} selected {% endif %}> | |
| 						{{l}} | |
| 					</option> | |
| 				{% endfor %} | |
| 			</select> | |
| 		</form> | |
| 	</fieldset> | |
| 
 | |
| 	<fieldset> | |
| 		<legend>Parlamentares</legend> | |
| 		<table> | |
| 			<tr>	 | |
| 				<th>Nome do Parlamentar</th> | |
| 				<th>Partido</th> | |
| 				<th>Ativo?</th> | |
| 			</tr> | |
| 
 | |
| 			{% for p in parlamentares %} | |
| 				<tr> | |
| 					<td><a href="{% url 'parlamentares_editar' legislatura_id p.id %}"> | |
| 						{{p.nome}} | |
| 					</a></td>	 | |
| 					<td>{{p.partido}}</td>					 | |
| 					<td>{{p.ativo|yesno:"Sim,Não"}}</td> | |
| 				</tr> | |
| 			{% endfor %} | |
| 		</table> | |
| 	</fieldset> | |
| {% endblock %} |