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

i18n form repo page

This commit is contained in:
zhengxie
2012-10-27 17:23:30 +08:00
parent e4b82b8396
commit 56ad57c565
5 changed files with 202 additions and 79 deletions

View File

@@ -1,25 +1,26 @@
{% load i18n %}
{% load url from future %}
<form action="{% url 'group_recommend' %}" method="post" id="recommend-to-group-form" class="hide">{% csrf_token %}
<h3>推荐
<h3>{% trans "Recommend"%}
{% for name, link in zipped %}
{% if forloop.last %}
<span class="op-target">{{ name }}</span>
{% endif %}
{% endfor %}
到群组:
{% trans "to group:"%}
</h3>
<div class="groups">
{% for group in groups %}
<input type="checkbox" name="groups" value="{{ group.id }}" id="{{ group.id }}" {% if forloop.first and forloop.last %}checked="checked"{% endif %} class="group-checkbox"><label for="{{ group.id }}" class="group-name">{{ group.group_name }}</label>
{% endfor %}
</div>
<label>推荐语:</label>
<label>{% trans "Recommend Message"%}</label>
<textarea name="message"></textarea>
<input type="hidden" name="repo_id" value="{{ repo.id }}" />
<input type="hidden" name="path" value="{{ path }}" />
<input type="hidden" name="attach_type" value="{{ attach_type }}" />
<p class="error hide"></p>
<input type="submit" id="recommend-submit" class="submit" value="提交" />
<input type="submit" id="recommend-submit" class="submit" value="{% trans "Submit"%}" />
</form>
<div id="recommend-to-group-caret" class="hide">
<div class="outer-caret">

View File

@@ -89,7 +89,7 @@
<table>
<tr>
<th width="5%"></th>
<th width="45%">{% trans "File" %}</th>
<th width="45%">{% trans "File Name" %}</th>
<th width="30%">{% trans "Library" %}</th>
<th width="20%">{% trans "UpdateTime" %}</th>
</tr>