2012-05-26 12:52:53 +00:00
|
|
|
{% extends "admin_base.html" %}
|
2012-11-01 07:09:14 +00:00
|
|
|
{% load seahub_tags i18n %}
|
2012-05-26 12:52:53 +00:00
|
|
|
|
2012-06-20 11:39:21 +00:00
|
|
|
{% block nav_orgadmin_class %}class="cur"{% endblock %}
|
2012-05-26 12:52:53 +00:00
|
|
|
|
|
|
|
{% block right_panel %}
|
2012-11-01 07:09:14 +00:00
|
|
|
<h3>{% trans "All Organizations" %}</h3>
|
2012-06-20 11:39:21 +00:00
|
|
|
{% if orgs %}
|
2012-05-26 12:52:53 +00:00
|
|
|
<table>
|
|
|
|
<tr>
|
2012-11-01 07:09:14 +00:00
|
|
|
<th width="20%">{% trans "Name" %}</th>
|
|
|
|
<th width="18%">{% trans "Url Prefix" %}</th>
|
|
|
|
<th width="27%">{% trans "Creator" %}</th>
|
|
|
|
<th width="23%">{% trans "Create At" %}</th>
|
|
|
|
<th width="12%">{% trans "Operations" %}</th>
|
2012-05-26 12:52:53 +00:00
|
|
|
</tr>
|
2012-06-20 11:39:21 +00:00
|
|
|
{% for org in orgs %}
|
2012-05-26 12:52:53 +00:00
|
|
|
<tr>
|
2012-06-20 11:39:21 +00:00
|
|
|
<td>{{ org.org_name }}</td>
|
|
|
|
<td>{{ org.url_prefix }}</td>
|
|
|
|
<td>{{ org.creator }}</td>
|
|
|
|
<td>{{ org.ctime|tsstr_sec }}</td>
|
2012-11-09 11:16:31 +00:00
|
|
|
<td><a href="#" data-url="{{ SITE_ROOT}}org/remove/{{ org.org_id }}/" data-target="{{ org.org_name }}" class="org-remove-btn op">{% trans "Delete" %}</a></td>
|
2012-05-26 12:52:53 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2012-06-20 11:39:21 +00:00
|
|
|
<!--
|
2012-05-26 12:52:53 +00:00
|
|
|
<div id="paginator">
|
|
|
|
{% if current_page != 1 %}
|
|
|
|
<a href="{{ SITE_ROOT }}groupadmin/?page={{ prev_page }}&per_page={{ per_page }}">上一页</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if page_next %}
|
|
|
|
<a href="{{ SITE_ROOT }}groupadmin/?page={{ next_page }}&per_page={{ per_page }}">下一页</a>
|
|
|
|
{% endif %}
|
|
|
|
<span>每页:</span>
|
|
|
|
{% if per_page == 25 %}
|
|
|
|
<span> 25 </span>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ SITE_ROOT }}groupadmin/?per_page=25" class="per-page">25</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if per_page == 50 %}
|
|
|
|
<span> 50 </span>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ SITE_ROOT }}groupadmin/?per_page=50" class="per-page">50</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if per_page == 100 %}
|
|
|
|
<span> 100 </span>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ SITE_ROOT }}groupadmin/?per_page=100" class="per-page">100</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2012-06-20 11:39:21 +00:00
|
|
|
-->
|
2012-05-26 12:52:53 +00:00
|
|
|
{% else %}
|
2012-11-01 07:09:14 +00:00
|
|
|
<p>{% trans "Empty" %}</p>
|
2012-05-26 12:52:53 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_script %}
|
|
|
|
<script type="text/javascript">
|
2013-03-01 09:31:08 +00:00
|
|
|
addConfirmTo($('.org-remove-btn'), {
|
|
|
|
'title':'{% trans "Delete Organization" %}',
|
|
|
|
'con':'{% trans "Are you sure you want to delete %s ?" %}'
|
|
|
|
});
|
2012-05-26 12:52:53 +00:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|