{include file='header.tpl' subheader='user-header.tpl'}

<center><h3>Edit your profile | <a href='{$base_url}/user-connections.php'>Connections to other services</a></h3></center>

{if isset($errors)}
<div id="errors">
{section loop=$errors name=error}
	<p>{$errors[error]}</p>
{/section}
</div>
{/if}

<div id='user-edit'>
	<form action='{$base_url}/user-edit.php' method='post'>

	<div><h3><label for='fullname'>{t}Full name:{/t}</h3>

	<div class="formHelp">{t}Enter your name here, if you want to.{/t}</div>

	<input name='fullname' id='fullname' value='{$fullname|escape:'html':'UTF-8'}' />
				</div>
				<div>
					<h3><label for='location'>{t}Location:{/t}</h3>

					<div class="formHelp"></div>

					<input name='location' id='location' value='{$location|escape:'html':'UTF-8'}' />
				</div>
				<div>
					<h3><label for='homepage'>{t}Website address:{/t}</h3>

					<div class="formHelp"></div>
					<input name='homepage' id='homepage' value='{$homepage|escape:'html':'UTF-8'}' />
				</div>
				<div>
					<h3><label for='avatar_uri'>{t}Avatar address:{/t}
						<span><a href='#dfn_avatar_uri' rel='glossary'>{t}What's this?{/t}</a></span>
					</h3>

					<div class="formHelp"></div>

					<input name='avatar_uri' id='avatar_uri' value='{$avatar_uri|escape:'html':'UTF-8'}' />
				</div>
				<div>
					<h3><label for='bio'>{t}Mini Biography:{/t}</h3>

					<div class="formHelp"></div>

					<textarea name='bio' id='bio'>{$bio|escape:'html':'UTF-8'}</textarea>
				</div>
				<div>
					<h3>
						<input type='checkbox' name='receive_emails' id='receive_emails' style='width: auto;' {if $receive_emails}checked{/if} />
						<label for='receive_emails'>{t}Receive E-mails:{/t}</label>
						<span><a href='#dfn_receive_emails' rel='glossary'>{t}What's this?{/t}</a></span>
					</h3>
				</div>

				<div id='advanced' style='display: none;'>
					<div>
						<h3><label for='id'>{t}WebID (FOAF){/t}
							<span><a href='#dfn_id' rel='glossary'>{t}What's this?{/t}</a></span>
						</h3>

						<div class="formHelp"></div>

						<input name='id' id='id' value='{$id|escape:'html':'UTF-8'}' />
					</div>
					<div>
						<h3><label for='laconica_profile'>{t}StatusNet/identi.ca Profile:{/t}
							<span><a href='#dfn_laconica_profile' rel='glossary'>{t}What's this?{/t}</a></span>
						</h3>


						<div class="formHelp"></div>

						<input onchange='laconicaChange();' onclick='laconicaClick();' name='laconica_profile' id='laconica_profile' value='{$laconica_profile|escape:'html':'UTF-8'}' />
					</div>
					<div>
						<h3><label for='journal_rss'>{t}RSS Feed:{/t}
							<span><a href='#dfn_journal_rss' rel='glossary'>{t}What's this?{/t}</a></span>
						</h3>


						<div class="formHelp"></div>

						<input name='journal_rss' id='journal_rss' value='{$journal_rss|escape:'html':'UTF-8'}' />
					</div>
					<div>
						<h3><input type='checkbox' id='delete_account' name='delete_account' style='width: auto;'><label for='delete_account'> {t}Delete my account{/t}</input></h3>
					</div>
					<p><br /><a href='#' onClick='$("#advanced").toggle(500); $("#show_advanced").toggle(500);'>{t}Hide advanced settings{/t}</a></p>
				</div>

				<div id='show_advanced'><br /><a href='#' onClick='$("#advanced").toggle(500); $("#show_advanced").toggle(500);'>{t}Show advanced settings{/t}</a></div>

				<div>
					<h3><label for='password_1'>{t}Password:{/t}
						<span>{t}Leave this blank if you don't want to change your password.{/t}</span>
					</h3>

					<div class="formHelp"></div>

					<input name='password_1' id='password_1' type='password' autocomplete="off" value='' />
				</div>
				<div>
					<h3><label for='password_2'>{t}Confirm Password:{/t}</h3>

					<div class="formHelp"></div>


					<input name='password_2' id='password_2' type='password' autocomplete="off" value='' />
				</div>

			</ul>

				<br />
				<p>
					<input type='submit' value='{t}Change{/t}' />
					<input name='submit' value='1' type='hidden' />
				</p>

	</form>

	<h3>{t}Help{/t}</h3>
	<dl>
		<dt id='dfn_location_uri'>{t}Location check{/t}</dt>
		<dd>{t escape=no}This feature looks up your location on <a href='http://www.geonames.org'>geonames</a>. You don't need to do it, but it will allow us find your latitude and longitude so we can add some great location-based features in the future.{/t}</dd>

		<dt id='dfn_avatar_uri'>{t}Avatar address{/t}</dt>
		<dd>{t site=$site_name escape=no}The web address for a picture to represent you on %1. It should not be more than 80x80 pixels. (64x64 is best.) If you leave this empty, we'll use <a href='http://gravatar.com'>Gravatar</a> to find an image for you.{/t}</dd>

		<dt id='dfn_id'>WebID (FOAF)</dt>
		<dd>{t escape=no}An address that represents you in RDF. See <a href='http://esw.w3.org/topic/WebID'>WebID</a> for details. If you don't know what this is, it's best to leave it blank.{/t}</dd>

		<dt id='dfn_laconica_profile'>StatusNet/identi.ca Profile</dt>
		<dd>{t escape=no}The address for your micro-blog on a <a href='http://status.net/'>StatusNet</a>-powered site such as <a href='http://identi.ca/'>identi.ca</a>.{/t}</dd>

		<dt id='dfn_journal_rss'>RSS Feed</dt>
		<dd>{t site=$site_name escape=no}An RSS feed which will be used to populate your journal on %1. Defaults to your StatusNet RSS feed if you provide your StatusNet micro-blog address.{/t}</dd>

		<dt id='dfn_receive_emails'>Receive E-mails</dt>
		<dd>{t escape=no}From time to time we send out e-mails about all the cool new stuff we're getting up to. If you'd rather not hear about these things then simply untick this box.{/t}</dd>
	</dl>
</div>


{include file='footer.tpl'}
