Files
zszq-trs/YLErpWeb/Views/System/RoleEdit.cshtml
T
2024-05-09 14:06:26 +08:00

30 lines
883 B
Plaintext

@model BaseOUDAL.Role
@{
ViewBag.Title = "角色 | 修改";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
bool isRoleEdit = CurUser.系统管理.角色新增 || CurUser.系统管理.角色修改 && Model.Id == 0;
}
@section CSS{
<style>
.form-group.col-md-6 {
min-width: 100%;
}
</style>
}
<form class="yc-panel" action="/System/RoleEdit/0" method="post" novalidate="novalidate" autocomplete="off">
@Html.HiddenFor(model => model.Id)
@Html.MyTextFor(model => model.Name)
@Html.MyTextFor(model => model.Remark)
<div class="form-group" style="text-align: center;">
@if (isRoleEdit)
{
<input id="RoleEdit" type="submit" class="btn btn-primary" value="保 存">
}
<input type="button" class="btn btn-primary" onclick="layer.closeMe();" value="取 消">
</div>
</form>