2012-08-13 15:58:54 +08:00
|
|
|
{% load url from future %}
|
|
|
|
<form action="{% url 'group_recommend' %}" method="post" id="recommend-form" class="hide">{% csrf_token %}
|
2012-08-13 15:14:49 +08:00
|
|
|
<h3>推荐
|
2012-08-13 15:58:54 +08:00
|
|
|
{% for name, link in zipped %}
|
2012-08-15 14:16:15 +08:00
|
|
|
{% if forloop.last %}
|
2012-08-13 15:58:54 +08:00
|
|
|
{{ name }}
|
|
|
|
{% endif %}
|
2012-08-15 14:16:15 +08:00
|
|
|
{% endfor %}
|
2012-10-20 15:22:27 +08:00
|
|
|
到群组:
|
2012-08-13 15:14:49 +08:00
|
|
|
</h3>
|
2012-10-20 15:22:27 +08:00
|
|
|
<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>
|
|
|
|
|
2012-08-13 15:14:49 +08:00
|
|
|
<label>推荐语:</label><br />
|
2012-10-20 15:22:27 +08:00
|
|
|
<textarea name="message" id="recommend-msg">看一看~</textarea><br />
|
2012-08-13 15:58:54 +08:00
|
|
|
<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 }}" />
|
2012-08-13 21:43:34 +08:00
|
|
|
<p class="error hide"></p>
|
|
|
|
<input type="submit" id="recommend-submit" class="submit" value="提交" />
|
2012-08-13 15:58:54 +08:00
|
|
|
<button class="simplemodal-close">取消</button>
|
|
|
|
</form>
|