{% extends "base.html" %}
{% load thumbnail %}


{% block title %}Edit Profile Settings{% endblock %}


{% block content %}

{% if form.errors %}
	<ul id="messagelist">
		<p>The following required fields are missing:</p>
		{% for error in form.errors %}
		<li class="error">{{ error }}</li>
		{% endfor %}
	</ul>
{% endif %}


<h2>Edit settings for {{ user.first_name }} {{ user.last_name }} ({{user}})</h2>


<div class="clear"></div>

<form enctype="multipart/form-data" method="post" action="" style="margin-top:20px;">

	{% csrf_token %}

	<p>We recommend  keeping all of these settings enabled. <br />
		Don't worry - none of them will result in a ton of email!</p>

	<div class="fieldWrapper inline">
	{{form.use_full_name}} {{form.use_full_name.label_tag}}<br />
	<span style="margin-left:25px;">{{form.use_full_name.help_text}}</span>
	</div>
		
	<div class="fieldWrapper inline">
	{{form.email_updates}} {{form.email_updates.label_tag}}
	</div>
	
	<div class="fieldWrapper inline">
	{{form.email_on_follow}} {{form.email_on_follow.label_tag}}
	</div>
	
	<div class="fieldWrapper inline">
	{{form.email_on_copy}} {{form.email_on_copy.label_tag}}
	</div>		
	
	<div class="fieldWrapper inline">
	{{form.email_site_news}} {{form.email_site_news.label_tag}}
	</div>	
	
	<div class="fieldWrapper inline">
	{{form.allow_contact}} {{form.allow_contact.label_tag}}
	</div>	
	
	<div class="fieldWrapper inline">
	{{form.enable_comments}} {{form.enable_comments.label_tag}}
	</div>		
	
			
	
	<p style="margin-top:30px;"><input class="button blue" type="submit" value="Update settings" /> </p>

	<p>
		<a href="/accounts/password/change/" class="button medium green">&raquo; Change my password &laquo;</a> 
		<a href="{% url profiles_edit_profile %}" class="button medium green">&raquo; Update profile &laquo;</a> 		
	</p>

</form>
{% endblock content %}

