forked from kuafuRace/phprap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecycle.html
More file actions
executable file
·140 lines (111 loc) · 6.34 KB
/
Copy pathrecycle.html
File metadata and controls
executable file
·140 lines (111 loc) · 6.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{{include_file name='home/public/header' title='回收站'}}
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
{{include_file name='home/public/nav' sidebar='admin/public/sidebar' active='project'}}
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">回收站</h1>
<div class="search">
<div class="row">
<form action="{{url()}}" method="get" autocomplete="off">
<div class="col-sm-4">
<div class="form-group">
<input name="title" type="text" class="form-control" placeholder="项目名称,支持模糊查询" value="{{$project->params->title}}">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input name="user[name]" type="text" class="form-control" placeholder="创建人昵称或邮箱,支持模糊查询" value="{{$project->params->user->name}}">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<select class="form-control" name="type">
<option disabled="" selected="" style="display:none;">项目类型</option>
<option value="">不限</option>
{{foreach $model->typeLabels as $k => $v}}
<option value="{{$k}}" {{if $model->params->type == $k}}selected{{/if}}>{{$v}}</option>
{{/foreach}}
</select>
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<button type="reset" class="btn btn-warning mr-1">重置</button>
<button type="submit" class="btn btn-primary">搜索</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
{{include_file name='admin/project/tab' active='recycle'}}
<!-- /.panel-heading -->
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>项目名称</th>
<th width="80px">项目类型</th>
<th>创建人昵称/账号</th>
<th width="60px">成员数</th>
<th width="60px">模块数</th>
<th width="60px">接口数</th>
<th class="text-center" width="80px">项目状态</th>
<th class="datetime">删除时间</th>
{{if $project->count}}
<th width="95px"></th>
{{/if}}
</tr>
</thead>
<tbody>
{{foreach $project->models as $model}}
<tr>
<td >{{$model->title}}</td>
<td >{{$model->typeLabel}}</td>
<td >{{$model->creater->fullName}}</td>
<td class="text-center"><a href="{{url('admin/user/index', ['project_id' => $model->encode_id])}}" data-toggle="tooltip" title="" data-original-title="点击查看成员">{{$model->getMembers()->count()}}</a></td>
<td class="text-center">{{$model->getModules()->count()}}</td>
<td class="text-center">{{$model->getApis()->count()}}</td>
<td class="text-center">
{{if $model->status == $model::ACTIVE_STATUS}}
<span class="text-success">{{$model->statusLabel}}</span>
{{else if $model->status == $model::DELETED_STATUS}}
<span class="text-danger">{{$model->statusLabel}}</span>
{{/if}}
</td>
<td >{{$model->updated_at}}</td>
{{if $project->count}}
<td >
<a type="button" class="btn btn-warning btn-xs mr-1" data-modal="#js_popModal" data-height="200" data-src="{{url('admin/project/recover', ['id' => $model->encode_id])}}" data-toggle="tooltip" data-placement="bottom" data-title="恢复项目">恢复</a>
<a class="btn btn-success btn-xs" target="_blank" href="{{url('home/project/show', ['id' => $model->encode_id])}}">查看</a>
</td>
{{/if}}
</tr>
{{/foreach}}
</tbody>
</table>
</div>
{{$project->pages}}
<!-- /.table-responsive -->
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-6 -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
{{include_file name='admin/public/footer'}}