2020-11-16 21:32:08 +08:00
|
|
|
{% extends 'app_doc/user/user_base.html' %}
|
2020-10-18 08:05:41 +08:00
|
|
|
{% load static %}
|
2020-04-03 21:05:27 +08:00
|
|
|
{% block title %}我协作的文集{% endblock %}
|
|
|
|
{% block content %}
|
2020-11-16 21:32:08 +08:00
|
|
|
<div class="layui-card">
|
|
|
|
<div class="layui-card-body">
|
2020-04-03 21:05:27 +08:00
|
|
|
<div class="layui-card-header" style="margin-bottom: 10px;">
|
|
|
|
|
|
|
|
<div class="layui-row">
|
2020-11-16 21:32:08 +08:00
|
|
|
<span style="font-size:18px;">我的协作文集
|
2020-04-03 21:05:27 +08:00
|
|
|
</span>
|
|
|
|
</div>
|
2020-11-16 21:32:08 +08:00
|
|
|
</div>
|
2020-04-03 21:05:27 +08:00
|
|
|
{% if colla_pros.count != 0 %}
|
|
|
|
<div class="layui-row">
|
|
|
|
<table class="layui-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>文集名称</th>
|
|
|
|
<th>作者</th>
|
|
|
|
<th>权限</th>
|
|
|
|
<th>操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for colla in colla_pros %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ colla.project }}</td>
|
|
|
|
<td>{{ colla.project.create_user }}</td>
|
|
|
|
<td>
|
|
|
|
{% if colla.role == 0 %}
|
|
|
|
初级 - 可新建文档、修改和删除自己创建的文档
|
|
|
|
{% else %}
|
|
|
|
高级 - 可新建文档、修改所有文档、删除自己创建的文档
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'pro_index' colla.project.id %}" target="_blank" class="layui-btn layui-btn-xs">查看</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="layui-row">
|
|
|
|
你还没有成为任何文集的协作者
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-11-16 21:32:08 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-03 21:05:27 +08:00
|
|
|
{% endblock %}
|
|
|
|
{% block custom_script %}
|
|
|
|
<script>
|
2020-11-16 21:32:08 +08:00
|
|
|
layui.use(['table','jquery','form','layer','element'], function() {
|
|
|
|
let table = layui.table;
|
|
|
|
let form = layui.form;
|
|
|
|
let $ = layui.jquery;
|
|
|
|
let layer = layui.layer;
|
|
|
|
let element = layui.element;
|
|
|
|
$.ajaxSetup({
|
2020-04-03 21:05:27 +08:00
|
|
|
data: {csrfmiddlewaretoken: '{{ csrf_token }}' },
|
|
|
|
});
|
2020-11-16 21:32:08 +08:00
|
|
|
})
|
2020-04-03 21:05:27 +08:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|