提交 b9fe93d8 编写于 作者: Richard__Hu's avatar Richard__Hu

注册账户界面设计,等待调试

上级 123b5456
......@@ -252,5 +252,18 @@ namespace 软件系统浏览器模版.Controllers
}
}
//GET
/// <summary>
/// 注册新的账户界面
/// </summary>
[HttpGet]
[AuthorizeAdmin]
public ActionResult RegisterAccount()
{
return View();
}
}
}
\ No newline at end of file
......@@ -236,16 +236,6 @@ namespace 软件系统浏览器模版.Controllers
//GET
/// <summary>
/// 注册新的账户界面
/// </summary>
[HttpGet]
[AuthorizeAdmin]
public ActionResult RegisterAccount()
{
return View();
}
}
}
\ No newline at end of file
......@@ -35,16 +35,47 @@
<input type="password" class="form-control" id="password" name="password" placeholder="用户登录的密码" required />
</div>
</div>
<div class="form-group">
<label for="factory" class="col-lg-2 control-label">工厂:</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="factory" name="factory" required />
</div>
</div>
<div class="form-group">
<label for="Announcement" class="col-lg-2 control-label"></label>
<label for="grade" class="col-lg-2 control-label">权限:</label>
<div class="col-lg-10">
<textarea class="form-control" id="Announcement" name="Announcement" placeholder="1000字以内" required rows="10">@ClientsLibrary.UserClient.Announcement</textarea>
<select class="form-control" id="grade" name="grade">
<option value="@CommonLibrary.AccountGrade.SuperAdministrator">@CommonLibrary.AccountGrade.GetDescription(CommonLibrary.AccountGrade.SuperAdministrator)</option>
<option value="@CommonLibrary.AccountGrade.Admin">@CommonLibrary.AccountGrade.GetDescription(CommonLibrary.AccountGrade.Admin)</option>
<option value="@CommonLibrary.AccountGrade.Technology">@CommonLibrary.AccountGrade.GetDescription(CommonLibrary.AccountGrade.Technology)</option>
<option value="@CommonLibrary.AccountGrade.General">@CommonLibrary.AccountGrade.GetDescription(CommonLibrary.AccountGrade.General)</option>
</select>
</div>
</div>
<div class="form-group">
<label for="loginEnable" class="col-lg-2 control-label">能否登录:</label>
<div class="col-lg-10">
<select class="form-control" id="loginEnable" name="loginEnable">
<option value="True">允许登录</option>
<option value="False">禁止登录</option>
</select>
</div>
</div>
<div class="form-group">
<label for="loginEnable" class="col-lg-2 control-label">禁止原因:</label>
<div class="col-lg-10">
<textarea class="form-control" name="reason" id="reason" placeholder="禁止登录的原因,在禁止登录时将会显示这个信息" rows="3"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
<button type="submit" class="btn btn-primary">提交公告</button>
<button type="submit" class="btn btn-primary">提交信息</button>
</div>
</div>
</fieldset>
......
......@@ -28,7 +28,7 @@
<ul class="dropdown-menu">
<li>@Html.ActionLink("公告更改", "ChangeAnnouncement", "Home")</li>
<li>@Html.ActionLink("账号管理", "ManagementAccount", "Home")</li>
<li>@Html.ActionLink("注册账户", "About", "Home")</li>
<li>@Html.ActionLink("注册账户", "RegisterAccount", "Account")</li>
<li role="separator" class="divider"></li>
<li>@Html.ActionLink("日志查看", "About", "Home")</li>
<li>@Html.ActionLink("消息发送", "About", "Home")</li>
......
......@@ -229,7 +229,7 @@
<Content Include="Views\Home\ChangeAnnouncement.cshtml" />
<Content Include="Views\Home\ManagementAccount.cshtml" />
<Content Include="Views\Home\LackOfAuthority.cshtml" />
<Content Include="Views\Home\RegisterAccount.cshtml" />
<Content Include="Views\Account\RegisterAccount.cshtml" />
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册