mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-01 01:12:41 +00:00
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
<div id="user-profile" class="user-profile ovhd hide"></div>
|
||
<textarea id="jtemplate" class="hide">
|
||
{#if !$T.err_msg}
|
||
<div class="pic fleft">
|
||
<img class="avatar" width="80" height="80" alt="{$T.email}" />
|
||
{#if $T.new_user}
|
||
<button id="add-as-contact">加为联系人</button>
|
||
{#/if}
|
||
</div>
|
||
|
||
<div class="txt fright">
|
||
{#if $T.user_nickname}
|
||
<p>{$T.user_nickname}</p>
|
||
{#/if}
|
||
|
||
<p>{$T.email}</p>
|
||
|
||
{#if $T.user_intro}
|
||
<p class="intro">{$T.user_intro}</p>
|
||
{#/if}
|
||
</div>
|
||
|
||
{#if $T.new_user}
|
||
<form id="add-as-contact-form" class="hide" action="{{ SITE_ROOT }}contacts/add/" method="post">
|
||
<input type="hidden" name="user_email" value="{{ request.user.username }}" id="id_user_email" />
|
||
<label>邮箱:</label><br />
|
||
<input id="id_contact_email" type="text" name="contact_email" maxlength="255" value="{$T.email}" /><br />
|
||
<label>名字(可选):</label><br />
|
||
<input id="id_contact_name" type="text" name="contact_name" maxlength="255" /><br />
|
||
<label>备注(可选):</label><br />
|
||
<input id="id_note" type="text" name="note" maxlength="255" /><br />
|
||
<input type="submit" value="提交" class="submit" />
|
||
</form>
|
||
{#/if}
|
||
|
||
{#else}
|
||
<p class="error">{$T.err_msg}</p>
|
||
{#/if}
|
||
|
||
</textarea>
|