Source

beerfingers / bf-templates / bar / bar_index.html

Full commit
{% extends "index.html" %}

{% block title %} Rating {% for i in setformvalues %} {{ i.beername }} from {{ i.brewery }}{% endfor %}
{% endblock %}

{% block content %}
	<div style="width:420px;">
		{% for i in setformvalues %}
		<p class="success">Rating:<br/> <strong>{{ i.beername }}</strong> from {{ i.brewery }}</p>
		<p class="notice">Want to Drink This Again? And How badly?</p>
		{% endfor %}
		<div class="success">
		<form action="." method="post" class="greenforgo">
			{% for i in setformvalues %}
			<input type="hidden" name="beer" id="id_beer" value="{{ i.id }}">
			<input type="hidden" name="brewery" id="id_brewery" value="{{ i.brewery.id }}">
			{% endfor %}
	
			{% for field in form %}
				<div class="fieldWrapper">
					{{ field.label_tag }}
					{{ field.errors }}
					{{ field }}
				</div>
			{% endfor %}
			<p><input type="submit" value="Add Beer Rating" /></p>
		</form>
		</p>
	</div>
	
	<h3>Rated Recently</h3>	
	<!-- start recent rating -->
	<div class="accordion clearleft">
	<div id="consumption">
{% for item in journal_list.object_list %}

	<p class="head beerpanel" style="clear:right;">
		<span class="beername">
		<a href="#">{{item.beer}}</a>
		</span>
		
		<span class="desire">{{ item.satisfaction.satgroup }}</span> 
	</p>
	<div class="details">
		<span class="note">Note: {{ item.note }}</span>
		<hr>
		<span class="brewery">{{ item.brewery.breweryname }}</span>
		<span class="abv">{{ item.beer.abv }}% ABV</span>
		<span class="date">{{ item.datetime }}</span>
		<span class="beerstyle" style="">{{ item.beer.beerstyle.stylename }}</span>
		
		<a href="{% url bar.views.edit_journal item.id %}" class="small-link">{Edit}</a>
		<p class='' style='margin-bottom:40px;'></p>
	</div>

{% empty %}
	<p>No Ratings yet. Add One!</p>
{% endfor %}
	</div>
	</div><!-- end recent journals -->
	
	<!-- pagination -->
	<div class="pagination">
		<span class="step-links">
			{% if journal_list.has_previous %}
				<a href="?page={{ journal_list.previous_page_number }}">previous</a>
			{% endif %}

			<span class="current">
				Page {{ journal_list.number }} of {{ journal_list.paginator.num_pages }}.
			</span>

			{% if journal_list.has_next %}
				<a href="?page={{ journal_list.next_page_number }}">next</a>
			{% endif %}
		</span>
	</div><!-- end pagination -->

{% endblock %}

{% block column %}

      <div><img alt="Profile picture" src="{{ MEDIA_URL }}images/default-avatar.png"/>
	<div>	{% if user %}
		<a href="{% url profiles.views.profile_detail user %}" rel="Personal Information">{{ user.first_name}} {{ user.last_name }}</a>
		<a href="{% url profiles.views.profile_detail user %}" rel="Personal Information">Profile</a>
		{% endif %}
	</div>
	<div>
	<p><strong>Search</strong> for beer or breweries to <strong>rate</strong> the beers you've drank. You can rate multiple time if you choose too, and <strong>no mininum</strong> word requirements. <strong>No deletes!</strong></p>
	<p>BeerFingers rating system is very <strong>simple.</strong> If you want to do the standard five paragraph review it's up to you.</p>
	<p>Give me feedback at <a href="http://twitter.com/beerfingers" rel="nofollow">@BeerFingers</a></p>
		
	</div>
      </div>

{% endblock %}