1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-12 12:22:13 +00:00
seahub/templates/snippets/group_recommend_form.html

30 lines
1.4 KiB
HTML
Raw Normal View History

2012-10-27 09:23:30 +00:00
{% load i18n %}
2012-08-13 07:58:54 +00:00
{% load url from future %}
<form action="{% url 'group_recommend' %}" method="post" id="recommend-to-group-form" class="hide">{% csrf_token %}
<h3>{% trans "Recommend" %}
2012-08-13 07:58:54 +00:00
{% for name, link in zipped %}
2012-08-15 06:16:15 +00:00
{% if forloop.last %}
<span class="op-target">{{ name }}</span>
2012-08-13 07:58:54 +00:00
{% endif %}
2012-08-15 06:16:15 +00:00
{% endfor %}
2012-10-27 09:23:30 +00:00
{% trans "to group:"%}
2012-08-13 07:14:49 +00:00
</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 %}
2012-10-20 07:22:27 +00:00
</div>
2012-10-27 09:23:30 +00:00
<label>{% trans "Recommend Message"%}</label>
<textarea name="message"></textarea>
2012-08-13 07:58:54 +00: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 13:43:34 +00:00
<p class="error hide"></p>
2012-10-27 09:23:30 +00:00
<input type="submit" id="recommend-submit" class="submit" value="{% trans "Submit"%}" />
2012-08-13 07:58:54 +00:00
</form>
<div id="recommend-to-group-caret" class="hide">
<div class="outer-caret">
<div class="inner-caret"></div>
</div>
</div>