Initial commit
This commit is contained in:
35
App/Views/Form/Index.cshtml
Normal file
35
App/Views/Form/Index.cshtml
Normal file
@@ -0,0 +1,35 @@
|
||||
@using Syncfusion.EJ2
|
||||
@{
|
||||
ViewBag.Title = "Test";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<h2>Test</h2>
|
||||
<br />
|
||||
|
||||
<div class="control-section">
|
||||
<form method="post" enctype="multipart/form-data" asp-controller="Form" asp-action="Save">
|
||||
<div class="control_wrapper accordion-control-section">
|
||||
<ejs-textbox id="firstname" placeholder="First Name"></ejs-textbox>
|
||||
<ejs-textbox id="lastname" placeholder="Last Name"></ejs-textbox>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>First Name: </td>
|
||||
<td><input type="text" id="txtFirstName" name="FirstName" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Name: </td>
|
||||
<td><input type="text" id="txtLastName" name="LastName" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" value="Submit" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<ejs-button id="element" content="Button" content="Submit"></ejs-button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
44
App/Views/Home/Index.cshtml
Normal file
44
App/Views/Home/Index.cshtml
Normal file
@@ -0,0 +1,44 @@
|
||||
@{
|
||||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Welcome</h1>
|
||||
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
|
||||
</div>
|
||||
|
||||
<table class="tabstyle" style="margin-top:20px"><tr><td style="padding:25px">
|
||||
<div class="desc">
|
||||
<p>Thank you for using Syncfusion ASP.NET Core Wizard. We have modified the default ASP.NET Core internet application project template based on Syncfusion controls and settings.
|
||||
The following are the samples links:
|
||||
</p>
|
||||
</div>
|
||||
<div class="sf-samples">
|
||||
<ul class="ulstyle">
|
||||
<li class="list">
|
||||
<div class="column">
|
||||
@Html.ActionLink("DataGrid", "DataGridFeatures", "DataGrid", null, new { Style = "text-decoration:none;color:#616161;" })
|
||||
</div>
|
||||
</li>
|
||||
<li class="list">
|
||||
<div class="column">
|
||||
@Html.ActionLink("User", "", "User", null, new { Style = "text-decoration:none;color:#616161;" })
|
||||
</div>
|
||||
</li>
|
||||
<li class="list">
|
||||
<div class="column">
|
||||
@Html.ActionLink("Product", "", "Product", null, new { Style = "text-decoration:none;color:#616161;" })
|
||||
</div>
|
||||
</li>
|
||||
<li class="list">
|
||||
<div class="column">
|
||||
@Html.ActionLink("Form", "", "Form", null, new { Style = "text-decoration:none;color:#616161;" })
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="clear"> </div>
|
||||
6
App/Views/Home/Privacy.cshtml
Normal file
6
App/Views/Home/Privacy.cshtml
Normal file
@@ -0,0 +1,6 @@
|
||||
@{
|
||||
ViewData["Title"] = "Privacy Policy";
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<p>Use this page to detail your site's privacy policy.</p>
|
||||
25
App/Views/Shared/Error.cshtml
Normal file
25
App/Views/Shared/Error.cshtml
Normal file
@@ -0,0 +1,25 @@
|
||||
@model ErrorViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
@if (Model.ShowRequestId)
|
||||
{
|
||||
<p>
|
||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||
It can result in displaying sensitive information from exceptions to end users.
|
||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||
and restarting the app.
|
||||
</p>
|
||||
53
App/Views/Shared/_Layout.cshtml
Normal file
53
App/Views/Shared/_Layout.cshtml
Normal file
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - sf1</title>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
<link rel ="stylesheet" href="~/css/ej2/bootstrap.css" />
|
||||
|
||||
<script src="~/js/ej2/ej2.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">sf1</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
|
||||
<ul class="navbar-nav flex-grow-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="container">
|
||||
<main role="main" class="pb-3">
|
||||
@RenderBody()
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© @DateTime.Now.Year - sf1 - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
<ejs-scripts></ejs-scripts>
|
||||
@RenderSection("Scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
2
App/Views/Shared/_ValidationScriptsPartial.cshtml
Normal file
2
App/Views/Shared/_ValidationScriptsPartial.cshtml
Normal file
@@ -0,0 +1,2 @@
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
21
App/Views/User/Index.cshtml
Normal file
21
App/Views/User/Index.cshtml
Normal file
@@ -0,0 +1,21 @@
|
||||
@using Syncfusion.EJ2
|
||||
@{
|
||||
ViewBag.Title = "User";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<h2>User</h2>
|
||||
<br />
|
||||
|
||||
<div class="control-wrapper">
|
||||
<ejs-grid id="Grid" allowPaging="true" dataSource="@ViewBag.DataSource" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
|
||||
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true"></e-grid-editSettings>
|
||||
<e-data-manager url="/User/UrlDataSource" adaptor="UrlAdaptor" updateUrl="/user/Update" removeUrl="/user/Remove" insertUrl="/user/Insert"></e-data-manager>
|
||||
<e-grid-columns>
|
||||
<e-grid-column field="ID" headerText="ID" textAlign="Right" width="160" isPrimaryKey="true"></e-grid-column>
|
||||
<e-grid-column field="FirstName" headerText="Vorname" width="170"></e-grid-column>
|
||||
<e-grid-column field="LastName" headerText="Nachname" textAlign="Right" width="170"></e-grid-column>
|
||||
<e-grid-column field="aktiv" headerText="Aktiv" textAlign="Right" width="170"></e-grid-column>
|
||||
|
||||
</e-grid-columns>
|
||||
</ejs-grid>
|
||||
</div>
|
||||
4
App/Views/_ViewImports.cshtml
Normal file
4
App/Views/_ViewImports.cshtml
Normal file
@@ -0,0 +1,4 @@
|
||||
@using sf1
|
||||
@using sf1.Models
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@addTagHelper *, Syncfusion.EJ2
|
||||
4
App/Views/_ViewStart.cshtml
Normal file
4
App/Views/_ViewStart.cshtml
Normal file
@@ -0,0 +1,4 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
gaga
|
||||
Reference in New Issue
Block a user