Source

beerfingers / bf-templates / mobile / rate.html

Full commit
{%extends "mobile/mindex.html"%}

{%block title%}{%for item in j %}{{item.beer.beername}} = {{ item.satisfaction.satgroup }}{%endfor%}{%endblock%}

{% block mobile %}

<div id="topbar" class="black">
	<div id="leftnav">
		<a href="{% url mobile.views.mobile_index %}"><img alt="home" src="/media/iwebkit5/images/home.png" /></a>
                <a href="">Rating: {% if setformvalues %} {{ setformvalues.beername }} {% endif %}</a></div>
</div>
<div class="content">			
	<form action="." method="post">
		{% if setformvalues %}
		<input type="hidden" name="beer" id="id_beer" value="{{ setformvalues.id }}">
		<input type="hidden" name="brewery" id="id_brewery" value="{{ setformvalues.brewery.id }}">
		{% endif %}
		<ul class="pageitem">
		<span class="graytitle">How badly do you want to drink this again?</span>
		{{ form.satisfaction.errors }}
		<li class="select">
		{{ form.satisfaction }}
		<span class="arrow"></span> </li>
		</ul>
		<ul class="pageitem">
		{{ form.note.errors }}
		<li class="textbox"><span class="header">How does it make you feel?</span><textarea name="note" id="id_note" rows="4"></textarea></li>
		{{ form.datetime }}
		</ul>
		<ul class="pageitem">
		<li class="button"><input type="submit" value="Rate IT" /></li>
		</ul>

	</form>

</div>
{% endblock %}