1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

Modify org repo share tips

This commit is contained in:
xiez
2012-09-06 17:38:29 +08:00
parent 05b492dff8
commit 066618c6f9
4 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@
<label>邮箱:</label><br />
<textarea id="added-member-name" name="user_name"></textarea><br />
<input type="hidden" id="group_id" name="group_id" value="{{ group.id }}" />
<p class="error hide" id="member-add-error">输入不能为空。</p>
<p class="error hide" id="member-add-error"></p>
<input type="submit" value="提交" id="member-add-submit" />
</form>
@@ -76,7 +76,7 @@ $("#member-add").click(function() {
$('#member-add-submit').click(function() {
if (!$.trim($('#added-member-name').attr('value'))) {
$('#member-add-error').removeClass('hide');
apply_form_error('member-add-form', '输入不能为空。');
return false;
}
$.ajax({

View File

@@ -31,7 +31,7 @@
{% include "snippets/shared_in_repos.html" %}
{% url 'org_repo_share' org.url_prefix as repo_share_url %}
{% with post_url=repo_share_url %}
{% with post_url=repo_share_url tips='必须是团体内部成员或小组。' %}
{% include "snippets/repo_share_form.html" %}
{% endwith %}

View File

@@ -61,7 +61,7 @@
{% include "snippets/shared_in_repos.html" %}
{% url 'share_repo' as repo_share_url %}
{% with post_url=repo_share_url %}
{% with post_url=repo_share_url tips='可以是非网站注册用户,我们会以邮件通知对方。' %}
{% include "snippets/repo_share_form.html" %}
{% endwith %}

View File

@@ -2,7 +2,7 @@
<label>邮箱或小组:</label><br />
<textarea id="email_or_group" name="email_or_group"></textarea>
<input id="repo_id" type="hidden" name="repo_id" value="" />
<p class="tip">可以是非网站注册用户,我们会以邮件通知对方。</p>
<p class="tip">{{ tips }}</p>
<p class="error hide"></p>
<input type="submit" value="提交" id="share-submit-btn" />
</form>