39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% load i18n %}
 | 
						|
 | 
						|
<div class="LP-Voting">
 | 
						|
	<div class="LP-Voting__Left">
 | 
						|
		<h2 class="LP-Headline">
 | 
						|
			Place level
 | 
						|
		</h2>
 | 
						|
		<div class="LP-Voting__Choices">
 | 
						|
			{% for choice in voting.get_all_choices %}
 | 
						|
				<a href="{% url 'place_vote' place_id=place.id vote=choice.0 %}" class="LP-Voting__Vote {% if choice.0 <= place.level %} LP-Voting__Vote--overall{% endif %}" title="Vote place as "{{choice.1}}"">
 | 
						|
					<i class="mdi mdi-shield-home"></i>
 | 
						|
					<span class="LP-Voting__Label">
 | 
						|
						{{choice.1}}
 | 
						|
					</span>
 | 
						|
				</a>
 | 
						|
			{% endfor %}
 | 
						|
		</div>
 | 
						|
		<div class="LP-Voting__CurrentVote">
 | 
						|
			{{place.get_level_display}}
 | 
						|
		</div>
 | 
						|
	</div>
 | 
						|
	<div class="LP-Voting__Right">
 | 
						|
		<div class="LP-Voting__Info">
 | 
						|
			<div class="LP-Voting__UserVote">
 | 
						|
				<span class="LP-Voting__InfoLabel">You voted this place as</span>
 | 
						|
				<span class="LP-Voting__Vote">{{voting.get_human_readable_level}}</span>
 | 
						|
			</div>
 | 
						|
 | 
						|
			<div class="LP-Voting__Expiration">
 | 
						|
				<span class="LP-Voting__InfoLabel">Your vote expires on</span>
 | 
						|
				<span class="LP-Voting__Date">
 | 
						|
					<time datetime="{{voting.expires_when|date:'Y-m-d'}}">
 | 
						|
						{{voting.expires_when|date:'d.m.Y'}}
 | 
						|
					</time>
 | 
						|
				</span>
 | 
						|
			</div>
 | 
						|
		</div>
 | 
						|
	</div>
 | 
						|
</div> |