1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-01 01:12:41 +00:00
seahub/templates/snippets/user_profile_html.html

41 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>