diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-02-26 13:56:08 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-02-26 13:56:08 +0200 |
| commit | 99fa6ef9b19dc81f10b582ca6749bf1c8cf32c44 (patch) | |
| tree | 9c5451e2c516e96ada413a6aa4f3f22e49817d8a /Software/Visual_Studio/Web/Tango.MachineService/Views | |
| parent | bbd04cf9e88d147225cc4b0d782fec31cfe21b6e (diff) | |
| download | Tango-99fa6ef9b19dc81f10b582ca6749bf1c8cf32c44.tar.gz Tango-99fa6ef9b19dc81f10b582ca6749bf1c8cf32c44.zip | |
Working on machine service downloads site.
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Views')
4 files changed, 95 insertions, 51 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Views/Account/Login.cshtml b/Software/Visual_Studio/Web/Tango.MachineService/Views/Account/Login.cshtml new file mode 100644 index 000000000..fbf0cb904 --- /dev/null +++ b/Software/Visual_Studio/Web/Tango.MachineService/Views/Account/Login.cshtml @@ -0,0 +1,36 @@ +@section styles +{ + <link rel="stylesheet" href="~/Styles/Account.css"> +} + +@section scripts +{ + <script type="text/javascript" src="~/Scripts/Account/Login.js"></script> +} + +<div class="background-wrap"> + <div class="background"></div> +</div> + +<form id="accesspanel" action="login" method="post"> + <h1 id="litheader">LOGIN</h1> + <div class="inset"> + <p> + <input type="text" name="username" id="email" placeholder="Email"> + </p> + <p> + <input type="password" name="password" id="password" placeholder="Password"> + </p> + <div style="text-align: center;"> + <div class="checkboxouter"> + <input type="checkbox" name="rememberme" id="remember" value="Remember"> + <label class="checkbox"></label> + </div> + <label for="remember">Remember me for 14 days</label> + </div> + <input class="loginLoginValue" type="hidden" name="service" value="login" /> + </div> + <p class="p-container"> + <input type="submit" name="Login" id="go" value="Authorize"> + </p> +</form>
\ No newline at end of file diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Views/Downloads/Index.cshtml b/Software/Visual_Studio/Web/Tango.MachineService/Views/Downloads/Index.cshtml index cb3058642..92590521d 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Views/Downloads/Index.cshtml +++ b/Software/Visual_Studio/Web/Tango.MachineService/Views/Downloads/Index.cshtml @@ -1,26 +1,30 @@ -<div class="jumbotron"> - <h1>ASP.NET</h1> - <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p> - <p><a href="https://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p> -</div> -<div class="row"> - <div class="col-md-4"> - <h2>Getting started</h2> - <p> - ASP.NET Web API is a framework that makes it easy to build HTTP services that reach - a broad range of clients, including browsers and mobile devices. ASP.NET Web API - is an ideal platform for building RESTful applications on the .NET Framework. - </p> - <p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301870">Learn more »</a></p> - </div> - <div class="col-md-4"> - <h2>Get more libraries</h2> - <p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p> - <p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301871">Learn more »</a></p> - </div> - <div class="col-md-4"> - <h2>Web Hosting</h2> - <p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p> - <p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301872">Learn more »</a></p> - </div> -</div>
\ No newline at end of file +@model Tango.MachineService.Views.Downloads.IndexViewModel + +@section styles +{ + <link rel="stylesheet" href="~/Styles/Downloads.css"> +} + + <table class="container"> + <thead> + <tr> + <th><h1>Name</h1></th> + <th><h1>Date</h1></th> + <th><h1>User</h1></th> + <th><h1>Comments</h1></th> + </tr> + </thead> + <tbody> + @foreach (var item in Model.Downloads) + { + <tr> + <td> + <a href="/Downloads/Download?id=@item.ID">@item.Name</a> + </td> + <td>@item.Date</td> + <td>@item.User</td> + <td>@item.Comments</td> + </tr> + } + </tbody> + </table>
\ No newline at end of file diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Views/Downloads/IndexViewModel.cs b/Software/Visual_Studio/Web/Tango.MachineService/Views/Downloads/IndexViewModel.cs new file mode 100644 index 000000000..43cdfcdef --- /dev/null +++ b/Software/Visual_Studio/Web/Tango.MachineService/Views/Downloads/IndexViewModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using Tango.MachineService.Models; + +namespace Tango.MachineService.Views.Downloads +{ + public class IndexViewModel + { + public List<DownloadModel> Downloads { get; set; } + + public IndexViewModel() + { + Downloads = new List<DownloadModel>(); + } + } +}
\ No newline at end of file diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Views/Shared/_Layout.cshtml b/Software/Visual_Studio/Web/Tango.MachineService/Views/Shared/_Layout.cshtml index 7b23b2f31..c6448159f 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Views/Shared/_Layout.cshtml +++ b/Software/Visual_Studio/Web/Tango.MachineService/Views/Shared/_Layout.cshtml @@ -4,38 +4,24 @@ <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> - @Styles.Render("~/Content/css") + @*@Styles.Render("~/Content/css")*@ @Scripts.Render("~/bundles/modernizr") + + <link rel="stylesheet" href="~/Styles/Layout.css"> + @RenderSection("styles", required: false) </head> <body> - <div class="navbar navbar-inverse navbar-fixed-top"> - <div class="container"> - <div class="navbar-header"> - <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" }) - </div> - <div class="navbar-collapse collapse"> - <ul class="nav navbar-nav"> - <li>@Html.ActionLink("Home", "Index", "Home", new { area = "" }, null)</li> - <li>@Html.ActionLink("API", "Index", "Help", new { area = "" }, null)</li> - </ul> - </div> - </div> - </div> + + <header class="header"> + <img id="imgLogo" src="~/Images/machine.png" /> + <span id="txtLogo">MACHINE SERVICE</span> + </header> + <div class="container body-content"> @RenderBody() - <hr /> - <footer> - <p>© @DateTime.Now.Year - My ASP.NET Application</p> - </footer> </div> - @Scripts.Render("~/bundles/jquery") - @Scripts.Render("~/bundles/bootstrap") + @*@Scripts.Render("~/bundles/bootstrap")*@ @RenderSection("scripts", required: false) </body> </html> |
