171 lines
7.9 KiB
Plaintext
171 lines
7.9 KiB
Plaintext
@model Church.Net.Entity.NewVisitor
|
|
@{
|
|
Layout = null;
|
|
}
|
|
<!DOCTYPE html>
|
|
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 lt8"> <![endif]-->
|
|
<!--[if IE 7 ]> <html lang="en" class="no-js ie7 lt8"> <![endif]-->
|
|
<!--[if IE 8 ]> <html lang="en" class="no-js ie8 lt8"> <![endif]-->
|
|
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
|
<!--[if (gt IE 9)|!(IE)]><!-->
|
|
<html lang="en" class="no-js">
|
|
<!--<![endif]-->
|
|
@Scripts.Render("~/bundles/jquery")
|
|
@Scripts.Render("~/bundles/jqueryval")
|
|
@Html.Partial("_Processing")
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no,user-scalable=0">
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<meta charset="UTF-8" />
|
|
<!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> -->
|
|
<title>歡迎新朋友</title>
|
|
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
|
|
<link href="https://fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
<link href="/Content/Login.css" rel="stylesheet" type="text/css" />
|
|
@*<link href="/Content/sweetalert2.css" rel="stylesheet" type="text/css" />*@
|
|
|
|
</head>
|
|
<body style="background-image: url('/Images/background.jpg');background-position: center;">
|
|
<script src="/Scripts/sweetalert2.all.js"></script>
|
|
|
|
<div class="container">
|
|
|
|
<header>
|
|
<h1>新生命靈糧堂-亞凱迪亞</h1>
|
|
</header>
|
|
<section>
|
|
<div id="container_demo">
|
|
<a class="hiddenanchor" id="toregister"></a>
|
|
<a class="hiddenanchor" id="tologin"></a>
|
|
<div id="wrapper">
|
|
<div id="login" class="animate form">
|
|
@using (Html.BeginForm("Registration", "NewVisitor", FormMethod.Post, new { enctype = "multipart/form-data" }))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<h1> 歡迎新朋友 </h1>
|
|
<p>
|
|
<label for="usernamesignup" class="uname">
|
|
姓氏
|
|
</label>
|
|
@Html.ValidationMessageFor(c => c.LastName)
|
|
@Html.TextBoxFor(c => c.LastName, new
|
|
{
|
|
placeholder = "請輸入您的姓氏"
|
|
})
|
|
</p>
|
|
|
|
<p>
|
|
<label for="usernamesignup" class="uname">
|
|
名字
|
|
</label>
|
|
@Html.ValidationMessageFor(c => c.FirstName)
|
|
@Html.TextBoxFor(c => c.FirstName, new
|
|
{
|
|
placeholder = "請輸入您的名字"
|
|
})
|
|
</p>
|
|
<p>
|
|
<label for="emailsignup" class="youmail">性別</label>
|
|
<br />
|
|
<br />
|
|
@Html.RadioButtonFor(c => c.Gender, Church.Net.Entity.Enumeration.Gender.Male)@Html.Label("弟兄")
|
|
@Html.RadioButtonFor(c => c.Gender, Church.Net.Entity.Enumeration.Gender.Female)@Html.Label("姊妹")
|
|
</p>
|
|
<p>
|
|
<label for="emailsignup" class="youmail">電話</label>
|
|
@Html.ValidationMessageFor(c => c.Phone)
|
|
@Html.TextBoxFor(c => c.Phone, new { placeholder = "請輸入您的聯繫電話" })
|
|
</p>
|
|
<p>
|
|
<label for="emailsignup" class="youmail">Email</label>
|
|
@Html.ValidationMessageFor(c => c.Email)
|
|
@Html.TextBoxFor(c => c.Email, new { placeholder = "請輸入您的聯繫Email" })
|
|
</p>
|
|
|
|
<p>
|
|
<label for="emailsignup" class="youmail">來訪原因</label>
|
|
@Html.ValidationMessageFor(c => c.Note)
|
|
@Html.TextBoxFor(c => c.Note, new { placeholder = "請輸入您的來訪原因" })
|
|
</p>
|
|
<p>
|
|
<label for="emailsignup" class="youmail">通信軟體 Id</label>
|
|
@Html.ValidationMessageFor(c => c.ComunityAppId)
|
|
@Html.TextBoxFor(c => c.ComunityAppId, new { placeholder = "請輸入您的通信軟體 Id ex:WeChat,Line" })
|
|
</p>
|
|
<p>
|
|
<label for="emailsignup" class="youmail">宗教信仰</label>
|
|
@Html.DropDownList("ReligionId", null, htmlAttributes: new { @class = "w-100 u-select-v2 u-shadow-v19 g-brd-none g-color-black g-color-primary--hover g-bg-white text-left g-rounded-30 g-pl-30 g-py-12" })
|
|
</p>
|
|
<p>
|
|
<label for="emailsignup" class="youmail">照片</label>
|
|
@Html.TextBox("AttachFile", "", new { @class = "form-control-file", type = "file", accept = "image/*;capture=camera" })
|
|
</p>
|
|
<p class="signin button">
|
|
<input type="submit" value="註冊" />
|
|
</p>
|
|
|
|
}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script>
|
|
@if (!string.IsNullOrWhiteSpace(ViewBag.StartScript))
|
|
{
|
|
@Html.Raw(ViewBag.StartScript)
|
|
}
|
|
$(function() {
|
|
|
|
$('Form').each(function (index) {
|
|
|
|
var formData = $.data(this);
|
|
|
|
var validator = formData.validator;
|
|
if (validator != null) {
|
|
var settings = formData.validator.settings
|
|
// Store existing event handlers in local variables
|
|
, oldErrorPlacement = settings.errorPlacement
|
|
, oldSuccess = settings.success;
|
|
|
|
settings.errorPlacement = function (label, element) {
|
|
|
|
// Call old handler so it can update the HTML
|
|
oldErrorPlacement(label, element);
|
|
|
|
// Add Bootstrap classes to newly added elements
|
|
label.parents('.form-group').addClass('has-error');
|
|
label.addClass('label label-warning');
|
|
};
|
|
|
|
settings.success = function (label) {
|
|
// Remove error class from <div class="form-group">, but don't worry about
|
|
// validation error messages as the plugin is going to remove it anyway
|
|
label.parents('.form-group').removeClass('has-error');
|
|
|
|
// Call old handler to do rest of the work
|
|
oldSuccess(label);
|
|
};
|
|
|
|
}
|
|
|
|
|
|
$(this).submit(function () {
|
|
if ((typeof Page_IsValid == 'undefined' || Page_IsValid) && $(this).valid()) {
|
|
window.ShowProcessing();
|
|
}
|
|
});
|
|
$(".field-validation-error").removeClass("field-validation-error").addClass("field-validation-valid").html("");
|
|
$(".input-validation-error").removeClass("input-validation-error").addClass("form-control valid");
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
</html> |