permissionedit.php 1.68 KB
<?php
use yii\web\View;
use yii\helpers\Html;
use backend\widgets\YHGImage\Common\Images as CommonImages;

$this->title = $this->params['main_title'].'-'.$this->params['sub_title'];
?>

<div class="col-md-6">
    <form id="form" method="POST" action="">
        <div class="panel panel-default">

            <div class="panel-body">
                <div class="row">
                    
                    <div class="form-group">
                        <label class="col-sm-3 control-label">权限标签: <span class="asterisk">*</span></label>
                        <div class="col-sm-5">
                            <input type="text" name="name" class="form-control" required="required" value="<?=$model->name?>">
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-3 control-label">描述: </label>
                        <div class="col-sm-5">
                            <input type="text" name="description" class="form-control" required="required" value="<?=$model->description?>">
                        </div>
                    </div>
                    
                </div><!-- row -->
            </div><!-- panel-body -->
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-9 col-sm-offset-3">
                        <button class="btn btn-primary mr5" id="upload_button">保存</button>
                        <a href="<?=$_refer?>" class="btn btn-dark">取消</a>
                    </div>
                </div>
            </div><!-- panel-footer -->
        </div><!-- panel -->
    </form>

</div>