2018-08-26 14:40:24 +08:00
|
|
|
|
@model ModelBase
|
2018-06-07 00:45:47 +08:00
|
|
|
|
@{
|
|
|
|
|
ViewBag.Title = Model.Title;
|
2018-09-23 13:31:03 +08:00
|
|
|
|
Layout = "_Layout";
|
2018-06-07 00:45:47 +08:00
|
|
|
|
}
|
|
|
|
|
@section css {
|
2018-09-06 16:37:49 +08:00
|
|
|
|
<environment include="Development">
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<link href="~/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />
|
|
|
|
|
<link href="~/css/font-awesome.css" rel="stylesheet" asp-append-version="true" />
|
2018-09-06 16:37:49 +08:00
|
|
|
|
</environment>
|
|
|
|
|
<environment exclude="Development">
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<link href="~/css/bootstrap.min.css" rel="stylesheet" asp-append-version="true" />
|
|
|
|
|
<link href="~/css/font-awesome.min.css" rel="stylesheet" asp-append-version="true" />
|
2018-09-06 16:37:49 +08:00
|
|
|
|
</environment>
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<link href="~/css/sweetalert.css" rel="stylesheet" asp-append-version="true" />
|
|
|
|
|
<link href="~/css/theme.css" rel="stylesheet" asp-append-version="true" />
|
|
|
|
|
<link href="~/css/login.css" rel="stylesheet" asp-append-version="true" />
|
|
|
|
|
<link href="~/css/login-responsive.css" rel="stylesheet" asp-append-version="true" />
|
2018-09-06 16:37:49 +08:00
|
|
|
|
@if (!string.IsNullOrEmpty(Model.Theme))
|
|
|
|
|
{
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<link href="~/css/@Model.Theme" rel="stylesheet" asp-append-version="true" />
|
2018-09-06 16:37:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@section javascript {
|
|
|
|
|
<environment include="Development">
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<script src="~/js/bootstrap.bundle.js" asp-append-version="true"></script>
|
|
|
|
|
<script src="~/js/jquery.validate.js" asp-append-version="true"></script>
|
|
|
|
|
<script src="~/js/messages_zh.js" asp-append-version="true"></script>
|
|
|
|
|
<script src="~/js/sweetalert.js" asp-append-version="true"></script>
|
2018-09-06 16:37:49 +08:00
|
|
|
|
</environment>
|
|
|
|
|
<environment exclude="Development">
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<script src="~/js/bootstrap.bundle.min.js" asp-append-version="true"></script>
|
|
|
|
|
<script src="~/js/jquery.validate.min.js" asp-append-version="true"></script>
|
|
|
|
|
<script src="~/js/messages_zh.min.js" asp-append-version="true"></script>
|
|
|
|
|
<script src="~/js/sweetalert.min.js" asp-append-version="true"></script>
|
2018-09-06 16:37:49 +08:00
|
|
|
|
</environment>
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<script src="~/js/longbow.common.js" asp-append-version="true"></script>
|
|
|
|
|
<script src="~/js/longbow.validate.js" asp-append-version="true"></script>
|
|
|
|
|
<script src="~/js/login.js" asp-append-version="true"></script>
|
2018-09-06 16:37:49 +08:00
|
|
|
|
}
|
2018-09-12 22:15:30 +08:00
|
|
|
|
<div class="container">
|
|
|
|
|
<form id="login" method="post" class="form-signin">
|
|
|
|
|
<h2 class="form-signin-heading">@Model.Title</h2>
|
|
|
|
|
<div class="login-wrap" data-toggle="LgbValidate" data-valid-button="button[type='submit']">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<div class="input-group-text">
|
|
|
|
|
<span class="fa fa-user"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="text" name="userName" class="form-control" placeholder="用户名" data-required-msg="请输入用户名" value="" autofocus data-valid="true" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<div class="input-group-text">
|
|
|
|
|
<span class="fa fa-lock"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="password" name="password" class="form-control" value="" placeholder="密码" data-required-msg="请输入密码" data-valid="true" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-09-26 17:50:19 +08:00
|
|
|
|
<div class="form-group rememberPwd" onselectstart="return false">
|
|
|
|
|
<i class="fa fa-square-o"></i>
|
|
|
|
|
<span>记住密码自动登录</span>
|
|
|
|
|
<input id="remember" name="remember" type="hidden" value="false" />
|
2018-09-12 22:15:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
<button class="btn btn-lg btn-login btn-block" type="submit">登 陆</button>
|
|
|
|
|
<div class="login-footer">
|
|
|
|
|
<a href="#" data-method="register">申请账号</a>
|
|
|
|
|
<a href="#" data-method="forgot">忘记密码</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2018-09-06 16:37:49 +08:00
|
|
|
|
<div class="modal fade" id="dialogNew" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
|
|
|
|
<div class="modal-content" data-toggle="LgbValidate" data-valid-button="#btnSubmit" data-valid-modal="#dialogNew">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h5 class="modal-title" id="myModalLabel">新用户注册</h5>
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="userName">登陆账号:</label>
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<div class="input-group-text">
|
|
|
|
|
<span class="fa fa-user-plus"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-09-13 16:58:59 +08:00
|
|
|
|
<input type="text" id="userName" autocomplete="off" class="form-control" placeholder="登陆账号不可为空" minlength="4" maxlength="50" remote="api/Register" data-remote-msg="此用户已存在" data-valid="true" />
|
2018-09-06 16:37:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="displayName">显示名称:</label>
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<div class="input-group-text">
|
|
|
|
|
<span class="fa fa-user-circle-o"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="text" id="displayName" class="form-control" value="" placeholder="显示名称不可为空" maxlength="50" data-valid="true" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="password">密码:</label>
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<div class="input-group-text">
|
|
|
|
|
<span class="fa fa-lock"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="password" id="password" class="form-control" value="" placeholder="密码不可为空" maxlength="50" data-valid="true" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="assurePassword">确认密码:</label>
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<div class="input-group-text">
|
|
|
|
|
<span class="fa fa-lock"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="password" id="assurePassword" class="form-control" value="" placeholder="确认密码" maxlength="50" equalTo="#password" data-valid="true" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="description">申请理由:</label>
|
|
|
|
|
<textarea id="description" class="form-control" placeholder="申请理由,500字以内" rows="3" maxlength="500" data-valid="true"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">
|
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
|
<span>关闭</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnSubmit">
|
|
|
|
|
<i class="fa fa-save"></i>
|
|
|
|
|
<span>提交</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|