Update nach BlazorApp Berufe
This commit is contained in:
1 parent
a437ae0be4
commit
93e3957702
4853 files changed
+9820723
-2369
No files matched your search
@@ -0,0 +1,77 @@
|
||||
<!--@using BWPMModels;
|
||||
@model LoginViewModel
|
||||
@using APP.Utils
|
||||
@using Syncfusion.EJ2
|
||||
@{
|
||||
//Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
var Modalanimation = new Syncfusion.EJ2.Popups.DialogAnimationSettings { Effect = Syncfusion.EJ2.Popups.DialogEffect.None };
|
||||
}-->
|
||||
@*<ejs-button id="targetButton" e-ripple="true" content="Open Login Form Dialog"></ejs-button>
|
||||
<ejs-dialog id="dialog" width="350px" header="Login Form" visible="true" showCloseIcon="true" created="onCreate">
|
||||
<e-content-template>
|
||||
<form method="post" action="/account/login">
|
||||
<div class="col-12 form-item">
|
||||
<input class="e-input" placeholder="UserName" name="UserName">
|
||||
</div>
|
||||
<div class="col-12 form-item">
|
||||
<div class="e-input-group">
|
||||
<input class="e-input" placeholder="Password" type="password" name="password">
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center">
|
||||
<button class="e-btn" type="submit"> Login </button>
|
||||
</div>
|
||||
</form>
|
||||
</e-content-template>
|
||||
</ejs-dialog>
|
||||
<style>
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.form-item {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
var dialogObj;
|
||||
|
||||
function onCreate() {
|
||||
dialogObj = this;
|
||||
}
|
||||
|
||||
document.getElementById("targetButton").addEventListener("click", function () {
|
||||
dialogObj.show();
|
||||
});
|
||||
</script>*@
|
||||
|
||||
|
||||
<!--<div id="logreg-forms">
|
||||
<form class="form-signin" method="post" asp-action="Login">
|
||||
<h1 class="h3 mb-3 font-weight-normal" style="text-align: center"> Sign in</h1>
|
||||
<div class="social-login">
|
||||
<button class="btn facebook-btn social-btn" type="button"><span><i class="fab fa-facebook-f"></i> Sign in with Facebook</span> </button>
|
||||
<button class="btn google-btn social-btn" type="button"><span><i class="fab fa-google-plus-g"></i> Sign in with Google+</span> </button>
|
||||
</div>
|
||||
<p style="text-align:center"> OR </p>
|
||||
<div class="red-msg">@Html.ValidationSummary(false)</div>
|
||||
<input type="email" asp-for="Email" id="inputEmail" class="form-control" placeholder="Email address" autofocus="">
|
||||
<span class="red-msg" asp-validation-for="Email"></span>
|
||||
|
||||
<input type="password" asp-for="Password" id="inputPassword" class="form-control" placeholder="Password">
|
||||
<span class="red-msg" asp-validation-for="Password"></span>
|
||||
|
||||
<button class="btn btn-success btn-block" type="submit"><i class="fas fa-sign-in-alt"></i> Sign in</button>
|
||||
<a href="#" id="forgot_pswd">Forgot password?</a>
|
||||
<hr>
|
||||
<p>Don't have an account!</p>
|
||||
<button class="btn btn-primary btn-block" type="button" id="btn-signup"><i class="fas fa-user-plus"></i> Sign up New Account</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>-->
|
||||
@@ -0,0 +1,31 @@
|
||||
@page
|
||||
@using System.Security.Claims
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
gaga
|
||||
|
||||
@ViewBag.sessionvariable
|
||||
|
||||
@if (User.Identity.IsAuthenticated)
|
||||
{
|
||||
|
||||
ClaimsPrincipal user = User;
|
||||
var claimId = user.Claims.FirstOrDefault(x => x.Type == "Id");
|
||||
var claimEmail = user.Claims.FirstOrDefault(x => x.Type == "Email");
|
||||
var claimDisplayName = user.Claims.FirstOrDefault(x => x.Type == "DisplayName");
|
||||
|
||||
string userId = claimId != null ? claimId.Value : string.Empty; ;
|
||||
string userEmail = claimEmail != null ? claimEmail.Value : string.Empty; ;
|
||||
string userDisplayName = claimDisplayName != null ? claimDisplayName.Value : string.Empty; ;
|
||||
|
||||
<h6> Welcome <b style="color: red; font-size: 22px;">@User.Identity.Name</b></h6>
|
||||
<ul>
|
||||
<li>Id : @userId</li>
|
||||
<li>Email : @userEmail</li>
|
||||
<li>Display name : @userDisplayName</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a href="/employee/logout" style="text-decoration: underline;">Logout</a>
|
||||
</p>
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<h3>Demo</h3>
|
||||
<Microsoft.AspNetCore.Components.Authorization.AuthorizeView>
|
||||
<Authorized>
|
||||
gugus
|
||||
</Authorized>
|
||||
</Microsoft.AspNetCore.Components.Authorization.AuthorizeView>
|
||||
@code {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
@using Syncfusion.EJ2
|
||||
@{
|
||||
var defaultanimation = new Syncfusion.EJ2.Popups.DialogAnimationSettings { Effect = Syncfusion.EJ2.Popups.DialogEffect.Zoom };
|
||||
}
|
||||
@{
|
||||
ViewBag.Title = "Dialog";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<h2>Dialog Features:</h2>
|
||||
<br/>
|
||||
<li> Dialog Samples - Default</li>
|
||||
<li> Position - Center Center</li>
|
||||
<li> Animation - Zoom</li>
|
||||
<li> DialogType - Non-modal</li>
|
||||
<li> RTL</li>
|
||||
<li> Draggable</li>
|
||||
<li> Theme - Bootstrap-Theme</li>
|
||||
<br/>
|
||||
<div id = "ControlRegion">
|
||||
<div class="col-lg-12 control-section" id="target">
|
||||
<ejs-button id="normalbtn" content="Open"></ejs-button>
|
||||
<ejs-dialog id="default_dialog"
|
||||
allowDragging="true"
|
||||
enableRtl="true"
|
||||
animationSettings="defaultanimation" width="500px"
|
||||
isModal="false"
|
||||
target="#target" open="dialogOpen" Content="<p>In the Succinctly series, Syncfusion created a robust, free library of more than 130 technical e - books formatted for PDF, Kindle, and EPUB.<br> <br>The Succinctly series was born in 2012 out of a desire to provide concise technical e-books for software developers.Each title in the Succinctly series is written by a carefully chosen expert and provides essential content in about 100 pages.</p>"
|
||||
close="dialogClose" showCloseIcon="true" header="About SYNCFUSION succintly series">
|
||||
<e-dialog-buttons>
|
||||
<e-dialog-dialogbutton buttonModel="ViewBag.button" click="dlgButtonClick"></e-dialog-dialogbutton>
|
||||
</e-dialog-buttons>
|
||||
<e-dialog-position
|
||||
X="center" Y="center"
|
||||
></e-dialog-position>
|
||||
</ejs-dialog>
|
||||
</div>
|
||||
<style>
|
||||
.control-section {
|
||||
padding-left: 10px;
|
||||
min-height: 350px;
|
||||
height: 100%;
|
||||
}
|
||||
@@media screen and (min-width: 150px) and (max-width: 480px) {
|
||||
.control-section {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.control-wrapper {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
document.getElementById("normalbtn").addEventListener('click', function () {
|
||||
var dialogObj = document.getElementById("default_dialog")
|
||||
dialogObj.ej2_instances[0].show();
|
||||
});
|
||||
function dialogClose() {
|
||||
document.getElementById("normalbtn").style.display = "block";
|
||||
}
|
||||
function dialogOpen() {
|
||||
document.getElementById("normalbtn").style.display = "none";
|
||||
}
|
||||
function dlgButtonClick() {
|
||||
window.open('https://www.syncfusion.com/company/about-us');
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
@@ -0,0 +1,55 @@
|
||||
@{
|
||||
ViewBag.Title = "Menu";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<h2>Menu Features:</h2>
|
||||
<br/>
|
||||
<li> Default</li>
|
||||
<li> Theme - Bootstrap-Theme</li>
|
||||
<br/>
|
||||
<div id = "ControlRegion">
|
||||
<div>
|
||||
<ejs-menu id="ej2-menu" items="ViewBag.menuItems"></ejs-menu>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
@@font-face {
|
||||
font-family: 'e-menu-icons';
|
||||
src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1M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bwBuACAATQBlAHQAcgBvACAAUwB0AHUAZABpAG8AdwB3AHcALgBzAHkAbgBjAGYAdQBzAGkAbwBuAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJAQIBAwEEAQUBBgEHAQgBCQEKAA1zaG9wcGluZy1jYXJ0B2VkaXQtMDUMZmlsZS1vcGVuLTAxDGZpbGUtdGV4dC0wMQNDdXQFUGFzdGUEQ29weQZTZWFyY2gAAAAAAA==) format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
.e-menu-icons {
|
||||
font-family: 'e-menu-icons';
|
||||
}
|
||||
.e-menu-wrapper {
|
||||
text-align: center;
|
||||
}
|
||||
.menu-control {
|
||||
margin-top: 45px;
|
||||
}
|
||||
.e-file::before {
|
||||
content: '\e886';
|
||||
}
|
||||
.e-edit::before {
|
||||
content: '\e822';
|
||||
}
|
||||
.e-tool::before {
|
||||
content: '\e7cf';
|
||||
}
|
||||
.e-cut::before {
|
||||
content: '\e5a9';
|
||||
}
|
||||
.e-copy::before {
|
||||
content: '\e5b3';
|
||||
}
|
||||
.e-paste::before {
|
||||
content: '\e5b2';
|
||||
}
|
||||
.e-open::before {
|
||||
content: '\e885';
|
||||
}
|
||||
.e-save::before {
|
||||
content: '\e954';
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,47 @@
|
||||
@using APP.Controllers
|
||||
@{
|
||||
ViewBag.Title = "NumericTextBox";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<h2>NumericTextBox Features:</h2>
|
||||
<br/>
|
||||
<li> NumericTextBox Samples - Default</li>
|
||||
<li> Theme - Bootstrap-Theme</li>
|
||||
<br/>
|
||||
<div id = "ControlRegion">
|
||||
<div style="width: 400px; margin: 0 auto">
|
||||
</div>
|
||||
<div style="padding-top: 20px; margin: 0 auto; width: 300px;">
|
||||
<div>
|
||||
<label>Numeric TextBox</label>
|
||||
<br />
|
||||
<ejs-numerictextbox id="numeric" value="10" width="250px"></ejs-numerictextbox>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<label>Percentage TextBox</label>
|
||||
<br />
|
||||
<ejs-numerictextbox id="percentage" value="0.5" min="0" max="1" step="0.01" format="p2" width="250px"></ejs-numerictextbox>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<label>Currency TextBox</label>
|
||||
<br />
|
||||
<ejs-numerictextbox id="currency" value="100" format="c2" width="250px"></ejs-numerictextbox>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
.content-wrapper {
|
||||
width: 35%;
|
||||
margin: 0 auto;
|
||||
min-width: 185px;
|
||||
}
|
||||
.e-float-input.e-numeric.e-input-group {
|
||||
margin-top: 40px;
|
||||
}
|
||||
.control-label {
|
||||
padding: 24px 0px 10px 0px;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
<div>
|
||||
@@ -0,0 +1,54 @@
|
||||
@{
|
||||
ViewBag.Title = "RichTextEditor";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<h2>RichTextEditor Features:</h2>
|
||||
<br/>
|
||||
<li> RichTextEditor Samples - Default</li>
|
||||
<li> Theme - Bootstrap-Theme</li>
|
||||
<br/>
|
||||
<div id = "ControlRegion">
|
||||
<ejs-richtexteditor id="defaultRTE" showCharCount="true" maxLength="2000">
|
||||
<e-content-template>
|
||||
<div>
|
||||
<p>The rich text editor is WYSIWYG ('what you see is what you get') editor useful to create and edit content, and return the valid <a href='rte / rich - text - editor.html'>HTML markup</a> or <a href='rte / markdown - editor.html'>markdown</a> of the content</p>
|
||||
<p><b> Toolbar </b></p>
|
||||
<ol>
|
||||
<li>
|
||||
<p> Toolbar contains commands to align the text, insert link, insert image, insert list, undo / redo operations, HTML view, etc </p>
|
||||
</li>
|
||||
<li>
|
||||
<p> Toolbar is fully customizable </p>
|
||||
</li>
|
||||
</ol>
|
||||
<p><b> Links </b></p>
|
||||
<ol>
|
||||
<li>
|
||||
<p> You can insert a hyperlink with its corresponding dialog</p>
|
||||
</li>
|
||||
<li>
|
||||
<p> Attach a hyperlink to the displayed text. </p>
|
||||
</li>
|
||||
<li>
|
||||
<p> Customize the quick toolbar based on the hyperlink </p>
|
||||
</li>
|
||||
</ol>
|
||||
<p><b> Image.</b></p>
|
||||
<ol>
|
||||
<li>
|
||||
<p> Allows you to insert images from an online source as well as the local computer</p>
|
||||
</li>
|
||||
<li>
|
||||
<p> You can upload an image</p>
|
||||
</li>
|
||||
<li>
|
||||
<p> Provides an option to customize quick toolbar for an image </p>
|
||||
</li>
|
||||
</ol>
|
||||
<img alt='Logo' src='images/RichTextEditor/RTEImage-Feather.png' style='width: 300px' />
|
||||
</div>
|
||||
</e-content-template>
|
||||
<e-richtexteditor-toolbarsettings items="@ViewBag.tools">
|
||||
</e-richtexteditor-toolbarsettings>
|
||||
</ejs-richtexteditor>
|
||||
</div>
|
||||
@@ -0,0 +1,145 @@
|
||||
@using Syncfusion.EJ2
|
||||
@{
|
||||
ViewBag.Title = "Schulhaus-Verwaltung";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
|
||||
|
||||
}
|
||||
<h2>Schulhaus-Verwaltung</h2>
|
||||
<br />
|
||||
|
||||
<div class="control-wrapper">
|
||||
<ejs-grid id="Grid" dataSource="@ViewBag.DataSource" allowPaging="true" toolbar="@(new List<string>() {"Add", "Edit", "Update", "Delete" })" actionComplete="actionComplete">
|
||||
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Dialog" template='#dialogtemplate'></e-grid-editSettings>
|
||||
<e-data-manager url="/Schulhaus/UrlDataSource" adaptor="UrlAdaptor" updateUrl="/Schulhaus/Update" removeUrl="/Schulhaus/Remove" insertUrl="/Schulhaus/Insert"></e-data-manager>
|
||||
|
||||
<e-grid-columns>
|
||||
|
||||
<e-grid-column field="id" headerText="ID" textAlign="Right" width="50" isPrimaryKey="true" defaultValue="0" allowediting="false" isIdentity="true" type="number"></e-grid-column>
|
||||
|
||||
<e-grid-column field="bezeichnung" headerText="Bezeichnung" width="100"></e-grid-column>
|
||||
|
||||
<e-grid-column field="strasse" headerText="Strasse" width="100"></e-grid-column>
|
||||
|
||||
<e-grid-column field="plz" headerText="Plz" width="50"></e-grid-column>
|
||||
|
||||
<e-grid-column field="ort" headerText="Ort" width="100"></e-grid-column>
|
||||
|
||||
<e-grid-column field="telefon" headerText="Tel." width="100"></e-grid-column>
|
||||
|
||||
<e-grid-column field="aktiv" headerText="Akt." width="50" defaultValue="true" displayAsCheckBox="true" textAlign="Center" editType="booleanedit"></e-grid-column>
|
||||
@if (ViewBag.showadmin == "true")
|
||||
{
|
||||
<e-grid-column field="erstellt_am" headerText="erstellt_am" width="50" format="dd.MM.yyyy mm:ss:hs" DefaultValue="@(DateTime.Now)" visible="true"></e-grid-column>
|
||||
|
||||
<e-grid-column field="mutiert_am" headerText="Mut." width="50" format="dd.MM.yyyy mm:ss:hs" DefaultValue="@(DateTime.Now)"></e-grid-column>
|
||||
|
||||
<e-grid-column field="mutierer" headerText="MU" width="50" DefaultValue="0"></e-grid-column>
|
||||
|
||||
<e-grid-column field="sort" headerText="sort" width="50" visible="true" DefaultValue="0"></e-grid-column>
|
||||
|
||||
<e-grid-column field="mandantnr" headerText="mandantnr" width="50" visible="true" DefaultValue="0"></e-grid-column>
|
||||
}
|
||||
</e-grid-columns>
|
||||
</ejs-grid>
|
||||
</div>
|
||||
|
||||
<script id="dialogtemplate" type="text/template">
|
||||
<div class="container" style="width:600px">
|
||||
|
||||
|
||||
|
||||
<div class="form-row ">
|
||||
<div class="form-group col-6 ">
|
||||
<div class="e-float-input e-control-wrapper">
|
||||
<input id="id" name="id" type="text" value="${id}" ${if(isAdd)} ${else} disabled ${ /if} />
|
||||
<span class="e-float-line"></span>
|
||||
<label class="e-float-text e-label-top" for="id">ID</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-6 justify-content-end">
|
||||
<div class="e-float-input e-control-wrapper justify-content-end">
|
||||
<input id="aktiv" name="aktiv" type="checkbox" class="e-field e-ejcheckbox valid" ${if (aktiv)} checked ${ /if} style="width:20px;" />
|
||||
<label class="e-float-text e-label-top" for="aktiv">Aktiv</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<div class="e-float-input e-control-wrapper">
|
||||
<input id="bezeichnung" name="bezeichnung" type="text" value="${bezeichnung}" />
|
||||
<span class="e-float-line"></span>
|
||||
<label class="e-float-text e-label-top" for="bezeichnung">Bezeichnung</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6">
|
||||
<div class="e-float-input e-control-wrapper">
|
||||
<input name="plz" id="plz" value="${plz}" />
|
||||
<span class="e-float-line"></span>
|
||||
<label class="e-float-text e-label-top" for="plz">PLZ</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<div class="e-float-input e-control-wrapper">
|
||||
<input name="ort" id="ort" value="${ort}" />
|
||||
<span class="e-float-line"></span>
|
||||
<label class="e-float-text e-label-top" for="ort">Ort</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6">
|
||||
<div class="e-float-input e-control-wrapper">
|
||||
<input name="strasse" id="strasse" value="${strasse}" />
|
||||
<span class="e-float-line"></span>
|
||||
<label class="e-float-text e-label-top" for="strasse">Strasse</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<div class="e-float-input e-control-wrapper">
|
||||
<input name="telefon" id="telefon" value="${telefon}" />
|
||||
<span class="e-float-line"></span>
|
||||
<label class="e-float-text e-label-top" for="telefon">Telefon</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<hidden name="erstellt_am" id="erstellt_am" value="${erstellt_am}" visible="false" />
|
||||
<hidden name="mutiert_am" id="mutiert_am" value="${mutiert_am}" />
|
||||
<hidden name="mutierer" id="mutierer" value="${mutierer}" />
|
||||
<hidden name="sort" id="sort" value="${sort}" />
|
||||
<hidden name="mandantnr" id="mandantnr" value="${mandantnr}" />
|
||||
</div>
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function actionComplete(args) {
|
||||
if ((args.requestType === 'beginEdit' || args.requestType === 'add')) {
|
||||
var data = args.rowData;
|
||||
|
||||
//var localData = @Html.Raw(Json.Serialize(ViewBag.DataSource));
|
||||
|
||||
|
||||
|
||||
// Set initail Focus
|
||||
if (args.requestType === 'beginEdit') {
|
||||
args.form.elements.namedItem('id').focus();
|
||||
args.dialog.header = "Bearbeitung " + args.form.elements.namedItem('bezeichnung').value;
|
||||
|
||||
} else {
|
||||
args.form.elements.namedItem('id').focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
© @DateTime.Now.Year - @ViewBag.copyright / Version @ViewBag.version
|
||||
@@ -0,0 +1,123 @@
|
||||
@{
|
||||
ViewBag.Title = "TextBoxes";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<h2>TextBoxes Features:</h2>
|
||||
<br/>
|
||||
<li> TextBoxes Samples - Default</li>
|
||||
<li> Theme - Bootstrap-Theme</li>
|
||||
<br/>
|
||||
<div id = "ControlRegion">
|
||||
<div id="target" class="col-lg-12 control-section">
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6"><b>Default Inputs</b></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
|
||||
<div class="e-input-group">
|
||||
<input class="e-input" type="text" placeholder="Enter Name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
|
||||
<div class="e-input-group e-rtl">
|
||||
<input class="e-input" type="text" placeholder="Last Name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
|
||||
<div class="e-input-group">
|
||||
<input class="e-input" type="password" placeholder="Password" value="password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
|
||||
<div class="e-input-group">
|
||||
<input class="e-input" type="email" placeholder="Enter Email">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
|
||||
<b>Input with Icons</b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
|
||||
<div class="e-input-group">
|
||||
<input class="e-input" placeholder="Date of Birth" type="text">
|
||||
<span id="DOB" class="e-input-group-icon e-input-calendar"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
|
||||
<div class="e-input-group e-float-icon-left">
|
||||
<span class="e-input-group-icon e-input-picture"></span>
|
||||
<div class="e-input-in-wrap">
|
||||
<input class="e-input" placeholder="Upload Picture" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var inputObject = {};
|
||||
var input = document.querySelectorAll('.e-input-group .e-input,.e-float-input.e-input-group input');
|
||||
var inputIcon = document.querySelectorAll('.e-input-group-icon');
|
||||
var focusFn = function (index) {
|
||||
return function () {
|
||||
getParentNode(input[index]).classList.add('e-input-focus');
|
||||
};
|
||||
};
|
||||
var blurFn = function (index) {
|
||||
return function () {
|
||||
getParentNode(input[index]).classList.remove('e-input-focus');
|
||||
};
|
||||
};
|
||||
var mouseupFn = function () {
|
||||
var ele = this;
|
||||
setTimeout(function () { ele.classList.remove('e-input-btn-ripple'); }, 500);
|
||||
};
|
||||
for (var i = 0; i < input.length; i++) {
|
||||
//Focus Event binding for input component
|
||||
input[i].addEventListener('focus', focusFn(i));
|
||||
//Blur Event binding for input component
|
||||
input[i].addEventListener('blur', blurFn(i));
|
||||
}
|
||||
for (var j = 0; j < inputIcon.length; j++) {
|
||||
inputIcon[j].addEventListener('mousedown', function () {
|
||||
this.classList.add('e-input-btn-ripple');
|
||||
});
|
||||
inputIcon[j].addEventListener('mouseup', mouseupFn);
|
||||
}
|
||||
function getParentNode(element) {
|
||||
var parentNode = element.parentNode;
|
||||
if (parentNode.classList.contains('e-input-in-wrap')) {
|
||||
return parentNode.parentNode;
|
||||
}
|
||||
return parentNode;
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
input {
|
||||
max-width: 100%;
|
||||
}
|
||||
.e-input-picture:before {
|
||||
content: '\e7b3';
|
||||
font-family: e-icons;
|
||||
}
|
||||
.e-input-calendar:before {
|
||||
content: "";
|
||||
font-family: e-icons;
|
||||
font-size: 13px;
|
||||
}
|
||||
.content-wrapper {
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
min-width: 185px;
|
||||
}
|
||||
.content-wrapper div.row {
|
||||
padding: 15px 0px;
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
Reference in new issue
Block a user