1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <extend name="Public:base" />
- <block name="content">
- <div class="page-header">
- <h1>
- 编辑角色
- <small>
- <i class="icon-double-angle-right"></i>
- {$crumbs}
- </small>
- </h1>
- </div>
- <div class="row">
- <div class="col-xs-12">
- <form class="form-horizontal" id="validation-form" method="post" action='{:U("Roles/update")}'>
-
-
- <div class="form-group required">
- <label class="col-sm-2 control-label">角色名称:</label>
- <div class="col-sm-10">
- <input name="role[name]" type="text" class="input" size="30" value="{$role['name']}" />
- </div>
- </div>
- <div class="form-group required">
- <label class="col-sm-2 control-label">父角色:</label>
- <div class="col-sm-10">
- <select name="role[pid]">
- <option value="0" <if condition="$iteam['id'] eq 0">selected</if>>无</option>
- <volist name="roles" id="item">
- <option value="{$item['id']}" <if condition="$role['pid'] eq $item['id']">selected</if> <if condition="$role['id'] == $item['id'] || in_array($item['id'], $sids)">disabled="true"</if>>{$item['fullname']}</option>
- </volist>
- </select>
- </div>
- </div>
- <div class="form-group required">
- <label class="col-sm-2 control-label">状态:</label>
- <div class="col-sm-10">
- <select name="role[status]">
- <option value="1" <if condition="$role['status'] eq 1" >selected</if>>启用</option>
- <option value="0" <if condition="$role['status'] eq 0" >selected</if>>禁用</option>
- </select>
- </div>
- </div>
-
- <div class="form-group required">
- <label class="col-sm-2 control-label">角色描述:</label>
- <div class="col-sm-10">
- <input class="form-control" type="text" placeholder="角色描述" name="role[description]" value="{$role['description']}" />
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-1 control-label no-padding-left"> </label>
- <div class="col-sm-11">
- <input type="hidden" name="role[id]" value="{$role['id']}" />
- <input name="send" type="submit" value="提交" class="btn btn-primary" />
- </div>
- </div>
- </form>
- </div>
- </div>
- </block>
|