2013-03-15 06:41:20 +00:00
|
|
|
{% load seahub_tags i18n %}
|
2012-08-13 07:58:54 +00:00
|
|
|
{% load url from future %}
|
2013-03-15 06:41:20 +00:00
|
|
|
<form action="{% url 'group_recommend' %}" method="post" id="discuss-to-group-form" class="hide">{% csrf_token %}
|
|
|
|
<h3>{% trans "Post a discussion to group" %}</h3>
|
2012-10-22 09:15:35 +00:00
|
|
|
<div class="groups">
|
|
|
|
{% for group in groups %}
|
2013-03-05 08:09:34 +00:00
|
|
|
<label for="{{ group.id }}" class="checkbox-label">
|
|
|
|
<span class="checkbox{% if forloop.first and forloop.last %} checkbox-checked{% endif %}"><input type="checkbox" name="groups" value="{{ group.id }}" id="{{ group.id }}" {% if forloop.first and forloop.last %}checked="checked"{% endif %} class="checkbox-orig"></span>
|
|
|
|
<span class="checkbox-option">{{ group.group_name }}</span>
|
|
|
|
</label>
|
2012-10-22 09:15:35 +00:00
|
|
|
{% endfor %}
|
2012-10-20 07:22:27 +00:00
|
|
|
</div>
|
2013-03-15 06:41:20 +00:00
|
|
|
<textarea name="message" placeholder="{% trans 'discussion' %}" class="input"></textarea>
|
|
|
|
<div class="attachment">
|
|
|
|
{% if attach_type == 'dir' %}
|
|
|
|
<img src="{{ MEDIA_URL }}img/folder-icon-24.png" alt="{% trans 'Directory icon' %}" height="20" class="vam" />
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for name,link in zipped %}
|
|
|
|
{% if forloop.last %}
|
|
|
|
{% if attach_type == 'file' %}
|
|
|
|
<img src="{{ MEDIA_URL }}img/file/{{ ma.name|file_icon_filter }}" alt="{% trans 'File' %}" height="18" class="vam" />
|
|
|
|
{% endif %}
|
|
|
|
<span class="vam">{{ name }}</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
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>
|
2013-03-15 06:41:20 +00:00
|
|
|
<input type="submit" id="discuss-submit" class="submit" value="{% trans "Submit"%}" />
|
2012-08-13 07:58:54 +00:00
|
|
|
</form>
|
2013-03-15 06:41:20 +00:00
|
|
|
<div id="discuss-to-group-caret" class="hide">
|
2012-10-22 09:15:35 +00:00
|
|
|
<div class="outer-caret">
|
|
|
|
<div class="inner-caret"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|