{style}
.anno_padding_left {
padding-left:45px;
}
{/style}
{literal}
<script language="javascript" type="text/javascript">
$(function(){
$(".unregister_profile_button").click(
function() { window.location = {/literal}"{$unregisterProfileUrl}"{literal} }
);
});
</script>
{/literal}
{if !empty($changePassword) }
{block_decorator name="box" type="empty" addClass="ow_superwide ow_automargin" }
<div class="clearfix ow_stdmargin"><div class="ow_right">{$changePassword}</div></div>
{/block_decorator}
{/if}
{block_decorator name="box" type="empty" addClass="ow_superwide ow_automargin"}
{if isset($editSynchronizeHook)}
{block_decorator name="box" addClass="ow_center" iconClass='ow_ic_update' langLabel='base+edit_remote_field_synchronize_title' style="overflow:hidden;"}
{foreach from=$editSynchronizeHook item='item'}
{$item}
{/foreach}
{/block_decorator}
{block_decorator name="box" type="empty" addClass="ow_center" style="padding:15px;"}
{text key="base+join_or"}
{/block_decorator}
{/if}
{form name=editForm}
<table class="ow_table_1 ow_form ow_stdmargin">
{if $displayAccountType}
<tr class="ow_alt1 ow_tr_first">
<td class="ow_label">
{label name='accountType'}
</td>
<td class="ow_value">
{input name='accountType'}
<div style="height:1px;"></div>
{error name='accountType'}
</td>
<td class="ow_desc ow_small">
</td>
</tr>
{/if}
<tr class="ow_tr_delimiter"><td></td></tr>
{foreach from=$questionArray key='section' item='questions' name='question'}
{if !empty($section) }
<tr class="ow_tr_first"><th colspan="3">{text key="base+questions_section_`$section`_label"}</th></tr>
{/if}
{foreach from=$questions item='question' name='question'}
{cycle assign='alt' name=$section values='ow_alt1,ow_alt2'}
<tr class=" {if $smarty.foreach.question.last}ow_tr_last{/if} {if !empty($changeList[$question.name]) && $adminMode } ow_premoderation_high {/if}">
<td class="{$alt} ow_label">
{label name=$question.name}
</td>
<td class="{$alt} ow_value">
{input name=$question.name}
<div style="height:1px;"></div>
{error name=$question.name}
</td>
<td class="{$alt} ow_desc ow_small">
{question_description_lang name=$question.name}
</td>
</tr>
{/foreach}
{if !empty($section)}{if !$smarty.foreach.question.first}
<tr class="ow_tr_delimiter"><td></td></tr>
{/if}
{/if}
{/foreach}
<tr class="ow_tr_delimiter"><td></td></tr>
<tr class="ow_tr_first">
<th colspan="3">{text key='base+questions_section_user_photo_label'}</th>
</tr>
<tr>
<td class="ow_alt1 ow_label">
{label name='avatar'}
</td>
<td class="ow_alt1 ow_value">
{input name='avatar'}
{error name='avatar'}
</td>
<td class="ow_alt1 ow_desc ow_small"></td>
</tr>
</table>
{if !$adminMode && !$isAdmin && $approveEnabled}
<div class="ow_anno ow_std_margin anno_padding_left">{text key="base+edit_profile_warning"}</div>
{/if}
<div class="clearfix ow_stdmargin{if !$isAdmin} ow_btn_delimiter{/if}">
{if $adminMode}
{if !$isUserApproved && !$isEditedUserModerator}
{decorator name="button" class="delete_user_by_moderator ow_ic_delete ow_red ow_negative" langLabel='base+delete_profile'}
{/if}
<div class="ow_right">
{if !$isUserApproved}
{decorator name="button" class="write_message_button ow_green ow_positive" langLabel='base+write_message'}
{submit name='saveAndApprove'}
{else}
{submit name='editSubmit'}
{/if}
</div>
{else}
{if !$isAdmin}
{decorator name="button" class="unregister_profile_button ow_ic_delete ow_red ow_negative" langLabel='base+delete_profile'}
{/if}
<div class="ow_right">
{submit name='editSubmit'}
</div>
{/if}
</div>
{/form}
{/block_decorator}