forked from xsir317/svn_publisher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
136 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
@extends('layouts.master') | ||
@section('title') | ||
<?php if($user):?> 编辑用户-<?php echo $user->username; ?> <?php else:?> 新增用户-<?php endif;?> @parent @stop | ||
@section('sidebar') | ||
@include('sidebar', array('currpage'=>'users')) | ||
@stop | ||
@section('content') | ||
<?php if($user):?> | ||
{{ Form::model($user, array('url' => '/users/edit' ,'class' => 'uk-form uk-form-horizontal' )) }} | ||
<div class="uk-form-row"> | ||
<label class="uk-form-label">用户ID</label> | ||
<div class="uk-form-controls"><?php echo $user->id;?><?php echo Form::hidden('id',$user->id);?></div> | ||
</div> | ||
<div class="uk-form-row"> | ||
{{ Form::label('username','用户名',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ $user->username }} | ||
</div> | ||
</div> | ||
<?php else: ?> | ||
{{ Form::open(array('url' => '/users/add' ,'class' => 'uk-form uk-form-horizontal' )) }} | ||
<div class="uk-form-row"> | ||
{{ Form::label('username','用户名',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::text('username') }} | ||
</div> | ||
</div> | ||
<?php endif;?> | ||
<div class="uk-form-row"> | ||
{{ Form::label('password','密码',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::password('password') }} | ||
</div> | ||
</div> | ||
<div class="uk-form-row"> | ||
{{ Form::label('is_superadmin','超级管理员',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::checkbox('is_superadmin','1',($user && $user->is_superadmin)) }} | ||
</div> | ||
</div> | ||
<div class="uk-form-row"> | ||
{{ Form::label('','项目',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
<ul> | ||
<?php foreach($projects as $_row):?> | ||
<li> | ||
{{ Form::checkbox('project[]',$_row->id,($user && in_array($_row->id,$user->pj_ids()))) }} {{ $_row->title }} | ||
</li> | ||
<?php endforeach;?> | ||
|
||
</ul> | ||
</div> | ||
</div> | ||
<?php if($error):?> | ||
<div class="uk-alert uk-alert-danger">{{ $error }}</div> | ||
<?php endif;?> | ||
<div class="uk-form-row"> | ||
{{ Form::submit('提交',array('class'=>'uk-button uk-button-primary')) }} | ||
</div> | ||
{{ Form::close() }} | ||
@stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@extends('layouts.master') | ||
@section('title') | ||
<?php if($project):?> 编辑项目-<?php echo $project->title; ?> <?php else:?> 新增项目-<?php endif;?> @parent @stop | ||
@section('sidebar') | ||
@include('sidebar', array('currpage'=>'users')) | ||
@stop | ||
@section('content') | ||
{{ Form::open(array('url' => '/users/password' ,'class' => 'uk-form uk-form-horizontal' )) }} | ||
<div class="uk-form-row"> | ||
{{ Form::label('title','项目名',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::text('title') }} | ||
</div> | ||
</div> | ||
<div class="uk-form-row"> | ||
{{ Form::label('manager','项目管理员',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::text('manager') }} | ||
</div> | ||
</div> | ||
<div class="uk-form-row"> | ||
{{ Form::label('vcs_type','版本管理工具',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::select('vcs_type',Project::$vcs_types) }} | ||
</div> | ||
</div> | ||
<div class="uk-form-row"> | ||
{{ Form::label('src_addr','源码地址',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::text('src_addr',null,array('class'=>'uk-form-width-large')) }} | ||
</div> | ||
</div> | ||
<div class="uk-form-row"> | ||
{{ Form::label('username','账号密码',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::text('username') }} {{ Form::text('password') }} | ||
</div> | ||
</div> | ||
<?php if($project):?> | ||
<div class="uk-form-row"> | ||
{{ Form::label('current_version','当前版本',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ $project->current_version }} | ||
</div> | ||
</div> | ||
<?php endif;?> | ||
<div class="uk-form-row"> | ||
{{ Form::label('ignore_files','同步时忽略',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::textarea('ignore_files',null,array('rows'=>3)) }} | ||
</div> | ||
</div> | ||
<div class="uk-form-row"> | ||
{{ Form::label('comments','备注',array('class' => 'uk-form-label')) }} | ||
<div class="uk-form-controls"> | ||
{{ Form::textarea('comments',null,array('rows'=>3)) }} | ||
</div> | ||
</div> | ||
<?php if($error):?> | ||
<div class="uk-alert uk-alert-danger">{{ $error }}</div> | ||
<?php endif;?> | ||
<div class="uk-form-row"> | ||
{{ Form::submit('提交',array('class'=>'uk-button uk-button-primary')) }} | ||
</div> | ||
{{ Form::close() }} | ||
@stop |