160 lines
5.9 KiB
Plaintext
160 lines
5.9 KiB
Plaintext
@using EnVisage.Code
|
|
@model EnVisage.Models.ActivationUserModel
|
|
@{
|
|
Layout = "";
|
|
}
|
|
<!DOCTYPE html>
|
|
<!--[if IE 9]> <html class="ie9 gt-ie8"> <![endif]-->
|
|
<!--[if gt IE 9]><!-->
|
|
<html class="gt-ie8 gt-ie9 not-ie">
|
|
<!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>Activate account - Prevu</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300&subset=latin" rel="stylesheet" type="text/css">
|
|
@Styles.Render(String.Format("{0}/{1}", Constants.C_BUNDLE_STYLES_BASE_PATH, "prevu-commonstyles"))
|
|
@Styles.Render(String.Format("{0}/{1}", Constants.C_BUNDLE_STYLES_BASE_PATH, "prevu-accountstyles"))
|
|
@Scripts.Render("~/Scripts/jquery-2.0.3.min.js")
|
|
</head>
|
|
<body class="theme-default page-signup">
|
|
<!-- Page background -->
|
|
<div id="page-signup-bg">
|
|
<!-- Background overlay -->
|
|
<div class="overlay"></div>
|
|
<!-- Replace this with your bg image -->
|
|
<img src="~/Content/images/signin-bg-1.jpg" alt="">
|
|
</div>
|
|
<!-- / Page background -->
|
|
<!-- Container -->
|
|
<div class="signup-container">
|
|
<!-- Header -->
|
|
<div class="signup-header">
|
|
<span class="logo">
|
|
<img src="~/Content/images/prevu-m.png" alt="">
|
|
</span>
|
|
<!-- / .logo -->
|
|
</div>
|
|
<!-- / Header -->
|
|
<!-- Form -->
|
|
<div class="signup-form">
|
|
@using (Html.BeginForm("Activate", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<div class="signup-text">
|
|
<span>Sign In to your account</span>
|
|
</div>
|
|
@Html.HiddenFor(model => model.UserId)
|
|
<div class="form-group w-icon">
|
|
@Html.TextBoxFor(m => m.UserName, new { @class = "form-control input-lg", @placeholder = "Username", @id = "username_id", @readonly = "readonly" })
|
|
<span class="fa fa-user signup-form-icon"></span>
|
|
</div>
|
|
|
|
<div class="form-group w-icon">
|
|
@Html.TextBoxFor(m => m.Email, new { @class = "form-control input-lg", @placeholder = "Username", @id = "username_id", @readonly = "readonly" })
|
|
<span class="fa fa-user signup-form-icon"></span>
|
|
</div>
|
|
|
|
<div class="form-group w-icon">
|
|
@Html.PasswordFor(m => m.Password, new { @class = "form-control input-lg", @placeholder = "Password", @id = "password_id" })
|
|
<span class="fa fa-lock signup-form-icon"></span>
|
|
@Html.ValidationMessageFor(m => m.Password)
|
|
</div>
|
|
|
|
<div class="form-group w-icon">
|
|
@Html.PasswordFor(m => m.ConfirmationPassword, new { @class = "form-control input-lg", @placeholder = "Password confirmation", @id = "password_confirmation_id" })
|
|
<span class="fa fa-lock signup-form-icon"></span>
|
|
@Html.ValidationMessageFor(m => m.ConfirmationPassword)
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.ValidationSummary(false, "Account could not be activated due to the following errors:")
|
|
@if (ViewData.ModelState.IsValid)
|
|
{<div class="alert alert-info" id="passwordHint">
|
|
<ul>
|
|
Password needs be a minimum of 6 characters including:
|
|
<li>
|
|
1 upper case letter
|
|
</li>
|
|
<li>
|
|
1 lower case letter
|
|
</li>
|
|
<li>
|
|
1 number
|
|
</li>
|
|
<li>
|
|
1 special character (e.g. - @(Html.Raw("!#$\"%&'()*+,-./:;<=>?@[\\]^_`{|}~")))
|
|
</li>
|
|
</ul>
|
|
</div>}
|
|
</div>
|
|
<div class="form-actions">
|
|
<input type="submit" value="Activate" class="signup-btn bg-primary">
|
|
</div>
|
|
@*<p>
|
|
@Html.ActionLink("Register", "Register") if you don't have a local account.
|
|
</p>*@
|
|
}
|
|
|
|
<!-- "Sign In with" block -->
|
|
<div class="signup-with">
|
|
<!-- Facebook -->
|
|
@*<a href="index.html" class="signup-with-btn" style="background:#4f6faa;background:rgba(79, 111, 170, .8);">Sign Up with <span>Facebook</span></a>*@
|
|
@*@Html.Partial("_ExternalLoginsStrippedPartial", new { Action = "ExternalLogin", ReturnUrl = ViewBag.ReturnUrl })*@
|
|
</div>
|
|
<!-- / "Sign In with" block -->
|
|
</div>
|
|
<!-- Right side -->
|
|
</div>
|
|
|
|
@*<div class="have-account">
|
|
Already have an account? <a href="pages-signin.html">Sign In</a>
|
|
</div>*@
|
|
|
|
@Scripts.Render(String.Format("{0}/{1}", Constants.C_BUNDLE_SCRIPTS_BASE_PATH, "platform-pixeladmin"))
|
|
|
|
<script type="text/javascript">
|
|
// Resize BG
|
|
if (typeof init != 'undefined') {
|
|
init.push(function () {
|
|
var $ph = $('#page-signup-bg'),
|
|
$img = $ph.find('> img');
|
|
|
|
$(window).on('resize', function () {
|
|
$img.attr('style', '');
|
|
if ($img.height() < $ph.height()) {
|
|
$img.css({
|
|
height: '100%',
|
|
width: 'auto'
|
|
});
|
|
}
|
|
});
|
|
|
|
$("#signup-form_id").validate({ focusInvalid: true, errorPlacement: function () { } });
|
|
|
|
|
|
|
|
// Validate username
|
|
$("#username_id").rules("add", {
|
|
required: true,
|
|
minlength: 3
|
|
});
|
|
|
|
// Validate password
|
|
$("#password_id").rules("add", {
|
|
required: true,
|
|
minlength: 6
|
|
});
|
|
});
|
|
|
|
window.PixelAdmin.start(init);
|
|
}
|
|
else {
|
|
window.PixelAdmin.start();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|