148 lines
7.3 KiB
Plaintext
148 lines
7.3 KiB
Plaintext
@model ModelBase
|
||
@{
|
||
ViewBag.Title = Model.Title;
|
||
Layout = "~/Views/Shared/_Root.cshtml";
|
||
}
|
||
@section css {
|
||
<environment include="Development">
|
||
<link href="~/css/bootstrap.css" rel="stylesheet">
|
||
<link href="~/css/font-awesome.css" rel="stylesheet" />
|
||
</environment>
|
||
<environment exclude="Development">
|
||
<link href="~/css/bootstrap.min.css" rel="stylesheet">
|
||
<link href="~/css/font-awesome.min.css" rel="stylesheet" />
|
||
</environment>
|
||
<link href="~/css/sweetalert.css" rel="stylesheet" />
|
||
<link href="~/css/theme.css" rel="stylesheet" />
|
||
<link href="~/css/login.css" rel="stylesheet" />
|
||
<link href="~/css/login-responsive.css" rel="stylesheet" />
|
||
@if (!string.IsNullOrEmpty(Model.Theme))
|
||
{
|
||
<link href="~/css/@Model.Theme" rel="stylesheet" />
|
||
}
|
||
}
|
||
@section javascript {
|
||
<environment include="Development">
|
||
<script src="~/js/bootstrap.bundle.js"></script>
|
||
<script src="~/js/jquery.validate.js"></script>
|
||
<script src="~/js/messages_zh.js"></script>
|
||
<script src="~/js/sweetalert.js"></script>
|
||
</environment>
|
||
<environment exclude="Development">
|
||
<script src="~/js/bootstrap.bundle.min.js"></script>
|
||
<script src="~/js/jquery.validate.min.js"></script>
|
||
<script src="~/js/messages_zh.min.js"></script>
|
||
<script src="~/js/sweetalert.min.js"></script>
|
||
</environment>
|
||
<script src="~/js/longbow.common.js"></script>
|
||
<script src="~/js/longbow.validate.js"></script>
|
||
<script src="~/js/login.js"></script>
|
||
}
|
||
<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>
|
||
<div class="form-group">
|
||
<div class="form-check">
|
||
<input id="remember" name="remember" type="checkbox" class="form-check-input" value="true" /><label for="remember" class="form-check-label">记住我</label>
|
||
</div>
|
||
</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>
|
||
<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>
|
||
<input type="text" id="userName" autocomplete="off" class="form-control" placeholder="登陆账号不可为空" minlength="4" maxlength="50" remote="api/Register" data-remote-msg="此用户已存在" data-valid="true" />
|
||
</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>
|