Serientermine können gelöscht werden, aber es fehlt noch eine Abfrage, ob man wirklich löschen will bei normalen Terminen.
100 lines
3.6 KiB
Plaintext
100 lines
3.6 KiB
Plaintext
@using BeWoPlanerMobil.Controllers
|
|
@using BeWoPlanerMobil.Models;
|
|
@using BeWoPlanerMobil.Util;
|
|
|
|
@model LoginModel
|
|
@{
|
|
ViewBag.Title = "Login";
|
|
|
|
var userName = string.Empty;
|
|
var password = string.Empty;
|
|
|
|
if(Html.IsInDebugMode())
|
|
{
|
|
userName = "demo";
|
|
password = "demo";
|
|
}
|
|
}
|
|
|
|
<nav class="navbar navbar-expand-md navbar-light py-4">
|
|
<div class="container-fluid justify-content-center align-items-center">
|
|
<img src="@Url.Content("~/Content/images/bewoplaner_by_ownsoft_logo_mok.png")" alt="BeWoPlaner">
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="modal-dialog col-sm-8">
|
|
<div class="modal-content border-0">
|
|
@if(ViewData[LoginController.LoginErrorIndex] != null || TempData[LoginController.LoginErrorIndex] != null || ViewData[AbstractBaseController.IsSessionTimedOut] != null)
|
|
{
|
|
<div class="alert alert-danger mx-3" role="alert">
|
|
@ViewData[LoginController.LoginErrorIndex]
|
|
@ViewData[AbstractBaseController.IsSessionTimedOut]
|
|
</div>
|
|
}
|
|
|
|
@*@if(AbstractModel.UserMessage != null)
|
|
{
|
|
<div class="alert alert-danger mx-3" role="alert">
|
|
@AbstractModel.UserMessage;
|
|
</div>
|
|
|
|
AbstractModel.UserMessage = null;
|
|
}*@
|
|
|
|
@using(Html.BeginForm("Index", "Login", FormMethod.Post, new { @class = "px-3 col-12", id = "loginForm" }))
|
|
{
|
|
<div class="form-group">
|
|
<label for="tenantFormControl">Kundennummer</label>
|
|
<input id="tenantFormControl" autocapitalize="false" name="tb_tenant" type="text" class="form-control" placeholder="Kundennummer" value="@LoginModel.Tenant" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="userNameFormControl">Benutzername</label>
|
|
<input id="userNameFormControl" autocapitalize="false" name="tb_login" type="text" class="form-control" placeholder="Benutzername" value="@userName" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="passwordFormControl">Passwort</label>
|
|
<input id="passwordFormControl" name="tb_password" type="password" class="form-control" placeholder="Passwort" value="@password" required>
|
|
</div>
|
|
|
|
var showPin = Request.Params["showPin"];
|
|
|
|
if(showPin != null && showPin == "1")
|
|
{
|
|
<div class="form-group">
|
|
<label for="pinFormControl">PIN</label>
|
|
<input id="pinFormControl" name="tb_pin" type="text" class="form-control" placeholder="PIN" />
|
|
</div>
|
|
}
|
|
|
|
<button class="btn btn-primary btn-block" type="submit" onclick="submitForm(this)" id="login-btn">Login</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$("body").keyup(
|
|
function(event) {
|
|
if (event.which === 13) {
|
|
event.preventDefault();
|
|
|
|
$("#login-btn").click();
|
|
}
|
|
});
|
|
</script>
|
|
|
|
@if(Html.IsInDebugMode())
|
|
{
|
|
if(!(TempData[TempDataConstants.ErrorMessageKey] is null))
|
|
{
|
|
<div class="container-fluid mt-3">
|
|
<div class="row d-flex justify-content-center">
|
|
<div class="col-md-3 col-lg-4">
|
|
<div class="alert alert-danger" role="alert">
|
|
@TempData[TempDataConstants.ErrorMessageKey]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|