{% extends "forms/base.html" %}
{% load forms_tags %}
{% load base_filters %}
{% load i18n %}

{% block title %}Entry - {{ entry.form.title }}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/forms-builder.css">
{% endblock %}

{% block body %}
<div class="t">
	{% forms_nav request.user %}
	<div class="form-builder-wrap">
		<h2>Entry - {{ entry.form.title }}</h2>
         <div class="quick-options">
			{% forms_entry_options request.user entry %}       
         </div>
    	{% for field in entry.entry_fields %}
    		{% if field.field.field_type == 'FileField' %}
    		<p>
    			<strong>{{ field.field.label }}</strong><br />
    			<a href="{{ field|media_url }}">{{ field.value|basename }}</a>
    		</p>   		
    		{% else %}
    		<p>
    			<strong>{{ field.field.label }}</strong><br />
    			<em>{{ field.value }}</em>
    		</p>
    		{% endif %}
    	{% endfor %}
        {% if entry.entry_path %}
            <p>
    			<strong>Entry Path</strong><br />
    			<em>{{ entry.entry_path }}</em>
    		</p>
        {% endif %}
    </div>
</div>
{% endblock %}
