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:
@@ -50,7 +50,7 @@
|
|||||||
<label>邮箱:</label><br />
|
<label>邮箱:</label><br />
|
||||||
<textarea id="added-member-name" name="user_name"></textarea><br />
|
<textarea id="added-member-name" name="user_name"></textarea><br />
|
||||||
<input type="hidden" id="group_id" name="group_id" value="{{ group.id }}" />
|
<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" />
|
<input type="submit" value="提交" id="member-add-submit" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ $("#member-add").click(function() {
|
|||||||
|
|
||||||
$('#member-add-submit').click(function() {
|
$('#member-add-submit').click(function() {
|
||||||
if (!$.trim($('#added-member-name').attr('value'))) {
|
if (!$.trim($('#added-member-name').attr('value'))) {
|
||||||
$('#member-add-error').removeClass('hide');
|
apply_form_error('member-add-form', '输入不能为空。');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
{% include "snippets/shared_in_repos.html" %}
|
{% include "snippets/shared_in_repos.html" %}
|
||||||
|
|
||||||
{% url 'org_repo_share' org.url_prefix as repo_share_url %}
|
{% 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" %}
|
{% include "snippets/repo_share_form.html" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
@@ -61,7 +61,7 @@
|
|||||||
{% include "snippets/shared_in_repos.html" %}
|
{% include "snippets/shared_in_repos.html" %}
|
||||||
|
|
||||||
{% url 'share_repo' as repo_share_url %}
|
{% 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" %}
|
{% include "snippets/repo_share_form.html" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<label>邮箱或小组:</label><br />
|
<label>邮箱或小组:</label><br />
|
||||||
<textarea id="email_or_group" name="email_or_group"></textarea>
|
<textarea id="email_or_group" name="email_or_group"></textarea>
|
||||||
<input id="repo_id" type="hidden" name="repo_id" value="" />
|
<input id="repo_id" type="hidden" name="repo_id" value="" />
|
||||||
<p class="tip">可以是非网站注册用户,我们会以邮件通知对方。</p>
|
<p class="tip">{{ tips }}</p>
|
||||||
<p class="error hide"></p>
|
<p class="error hide"></p>
|
||||||
<input type="submit" value="提交" id="share-submit-btn" />
|
<input type="submit" value="提交" id="share-submit-btn" />
|
||||||
</form>
|
</form>
|
||||||
|
Reference in New Issue
Block a user