创建版本
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<form method="post" action="{{url()}}" id="myform" name="myform">
|
||||
<div class="panel">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table table-form m-b-none">
|
||||
|
||||
<tr>
|
||||
<td align="right" width="10%">项目名称</td>
|
||||
<td align="left">
|
||||
<input type="text" name="name" id="name" class="form-control input-sm">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">项目权限</td>
|
||||
<td align="left">
|
||||
<select class="form-control input-sm" name="permission">
|
||||
<option value="0">公开</option>
|
||||
<option value="1">私有</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">项目拥有者</td>
|
||||
<td align="left">
|
||||
{{App\Support\Dialog::user('user','user_id', '', 0, 0)}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">项目描述</td>
|
||||
<td align="left">
|
||||
<textarea name="description" id="description" class="form-control input-sm"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="left" colspan="2">
|
||||
<button type="button" onclick="history.back();" class="btn btn-default">返回</button>
|
||||
<button type="submit" class="btn btn-success btn-large"><i class="fa fa-check-circle"></i> 提交</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,49 @@
|
||||
<form method="post" action="{{url()}}" id="myform" name="myform">
|
||||
<div class="panel">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table table-form m-b-none">
|
||||
|
||||
<tr>
|
||||
<td align="right" width="10%">项目名称</td>
|
||||
<td align="left">
|
||||
<input type="text" name="name" id="name" value="{{$project['name']}}" class="form-control input-sm">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">项目权限 <a href="javascript:;" class="fa fa-question-circle hinted" title="公开:所有人可以访问,成员编辑。私有:成员访问和编辑。"></a></td>
|
||||
<td align="left">
|
||||
<select class="form-control input-sm" name="permission">
|
||||
<option value="0" @if($project['permission'] == '0') selected="selected" @endif>公开</option>
|
||||
<option value="1" @if($project['permission'] == '1') selected="selected" @endif>私有</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">项目拥有者</td>
|
||||
<td align="left">
|
||||
{{App\Support\Dialog::user('user','user_id', $project['user_id'], 0, 0)}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">项目描述</td>
|
||||
<td align="left">
|
||||
<textarea name="description" id="description" class="form-control input-sm">{{$project['description']}}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="left" colspan="2">
|
||||
<input type="hidden" name="id" value="{{$project['id']}}">
|
||||
<button type="button" onclick="history.back();" class="btn btn-default">返回</button>
|
||||
<button type="submit" class="btn btn-success btn-large"><i class="fa fa-check-circle"></i> 提交</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,56 @@
|
||||
<div class="panel">
|
||||
|
||||
<div class="wrapper-sm">
|
||||
@include('project/query')
|
||||
</div>
|
||||
|
||||
<div class="padder b-t">
|
||||
<div class="row m-t">
|
||||
@if($rows)
|
||||
@foreach($rows as $row)
|
||||
<div class="col-xs-12 col-sm-4 col-md-3">
|
||||
<div class="thumbnail" style="{{$upload_url}}/{{$row->image}}">
|
||||
<div class="caption">
|
||||
<h4 class="m-t-none">
|
||||
<span class="pull-right text-muted text-xs hinted" title="项目拥有者">{{get_user($row->user_id, 'name', false)}}</span>
|
||||
@if($row->tasks->count())
|
||||
<span class="text-base badge bg-danger">{{$row->tasks->count()}}</span>
|
||||
@endif
|
||||
<a class="m-t-sm" href="{{url('task/index', ['project_id' => $row->id])}}">
|
||||
{{$row->name}}
|
||||
</a>
|
||||
</h4>
|
||||
<div class="text-muted">
|
||||
<span class="pull-right">
|
||||
|
||||
<div class="btn-group">
|
||||
@if(isset($access['edit']) && ($auth_id == $row['created_id'] || $auth_id == $row['user_id']))
|
||||
<a class="btn btn-xs btn-default hinted" title="编辑项目" href="{{url('edit',['id'=>$row->id])}}"><i class="fa fa-pencil"></i></a>
|
||||
@endif
|
||||
@if(isset($access['delete']) && ($auth_id == $row['created_id'] || $auth_id == $row['user_id']))
|
||||
<a class="btn btn-xs btn-default hinted" title="删除项目" onclick="app.confirm('{{url('delete',['id'=>$row->id])}}','确定要删除吗?');" href="javascript:;"><i class="fa fa-remove"></i></a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</span>
|
||||
<span class="hinted" title="创建时间">@datetime($row->created_at)</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-sm-1 hidden-xs">
|
||||
</div>
|
||||
<div class="col-sm-11 text-right text-center-xs">
|
||||
{{$rows->render()}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,20 @@
|
||||
<form id="search-form" class="form-inline" name="mysearch" action="{{url()}}" method="get">
|
||||
|
||||
@if(isset($access['add']))
|
||||
<a href="{{url('add')}}" class="btn btn-sm btn-info"><i class="fa fa-plus"></i> 添加项目</a>
|
||||
@endif
|
||||
|
||||
@include('searchForm')
|
||||
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('#search-form').searchForm({
|
||||
data: {{json_encode($search['forms'])}},
|
||||
init:function(e) {
|
||||
var self = this;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user