1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

i18n for user_profile_get

This commit is contained in:
zhengxie
2012-10-31 17:04:11 +08:00
parent 677d62e7fe
commit a3f8b4c2a5
4 changed files with 25 additions and 71 deletions

View File

@@ -1,10 +1,11 @@
{% load i18n %}
<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>
<button id="add-as-contact">{% trans "Add as contact" %}</button>
{#/if}
</div>
@@ -23,13 +24,13 @@
{#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 />
<label>{% trans "Email" %}</label><br />
<input id="id_contact_email" type="text" name="contact_email" maxlength="255" value="{$T.email}" /><br />
<label>名字(可选)</label><br />
<label>{% trans "Name(optional)" %}</label><br />
<input id="id_contact_name" type="text" name="contact_name" maxlength="255" /><br />
<label>备注(可选)</label><br />
<label>{% trans "Note(optional)" %}</label><br />
<input id="id_note" type="text" name="note" maxlength="255" /><br />
<input type="submit" value="提交" class="submit" />
<input type="submit" value="{% trans "Submit" %}" class="submit" />
</form>
{#/if}