![mark](http://olbhidnfa.bkt.clouddn.com/blog/20171015-003044256.png)
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<form action="{:url('AdminCategory/editPost')}" method="post">
<div class="form-group">
<label for="input-parent"><span class="form-required">*</span>上级</label>
<div>
<select class="form-control" name="parent_id" id="input-parent">
<option value="0">作为一级分类</option>
{$categories_tree}
</select>
</div>
</div>
<div class="form-group">
<label for="input-name"><span class="form-required">*</span>分类名称</label>
<div>
<input type="text" class="form-control" id="input-name" name="name" value="{$name}">
</div>
</div>
<div class="form-group">
<input type="hidden" name="id" value="{$id}">
<button type="submit" class="btn btn-primary">保存</button>
</div>
</form>
</body>
</html>
```