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

Modified group recommend

This commit is contained in:
zhengxie
2012-10-20 15:22:27 +08:00
parent 5545afe6d7
commit 8c556ed0e9
7 changed files with 63 additions and 60 deletions

View File

@@ -28,10 +28,6 @@ $('#click-into-group').click(function() {
});
$('#recommend-submit').click(function() {
if (!$.trim($('#recommend-groups').val())) {
apply_form_error('recommend-form', '群组名称不能为空。');
return false;
}
if (!$.trim($('#recommend-msg').val())) {
apply_form_error('recommend-form', '推荐语不能为空。');
return false;

View File

@@ -6,12 +6,16 @@
{{ name }}
{% endif %}
{% endfor %}
到群组
到群组
</h3>
<label>群组名称:</label><br />
<input type="input" name="groups" id="recommend-groups" value="" /><br />
<div>
{% for group in groups %}
<input type="checkbox" name="groups" value="{{ group.id }}" {% if forloop.first and forloop.last %} checked {% endif %}>{{ group.group_name }}<br>
{% endfor %}
</div>
<label>推荐语:</label><br />
<textarea name="message" id="recommend-msg"></textarea><br />
<textarea name="message" id="recommend-msg">看一看~</textarea><br />
<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 }}" />