Charts, login, manage queue, styling
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
@{
|
||||
var link = Model.MacroParameters["Link"];
|
||||
var title = Model.MacroParameters["Title"];
|
||||
var description = Model.MacroParameters["Description"];
|
||||
var glyphicon = Model.MacroParameters["Glyphicon"];
|
||||
}
|
||||
<a class="banner-link" href="@link">
|
||||
<h2>@title <span class="glyphicon @glyphicon"></span></h2>
|
||||
<p>@description</p>
|
||||
</a>
|
||||
@@ -0,0 +1,28 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
@{
|
||||
var blogSelection = CurrentPage.Site().FirstChild("BlogPostRepository").Children("BlogPost").Where("Visible");
|
||||
}
|
||||
<div role="content">
|
||||
<section class="light blogarchive equalizer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
@if (!blogSelection.Any())
|
||||
{
|
||||
<div>No news items to display.</div>
|
||||
}
|
||||
@foreach (var post in blogSelection)
|
||||
{
|
||||
<div class="col-sm-6">
|
||||
<div class="content equal">
|
||||
<a href="@post.Url">
|
||||
<div class="date">@post.CreateDate.ToLongDateString()</div>
|
||||
<h2>@post.Name</h2>
|
||||
<p>@Umbraco.Truncate(post.Introduction, 240, true)</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
|
||||
@{
|
||||
Html.RenderAction("Index", "Chart");
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
@using System.Web.Mvc.Html
|
||||
@using ClientDependency.Core.Mvc
|
||||
@using Umbraco.Web
|
||||
@using Umbraco.Web.Models
|
||||
@using Umbraco.Web.Controllers
|
||||
@{
|
||||
var loginModel = new LoginModel { RedirectUrl = "/leaf-data/manage-queue/" };
|
||||
|
||||
Html.EnableClientValidation();
|
||||
Html.EnableUnobtrusiveJavaScript();
|
||||
Html.RequiresJs("/umbraco_client/ui/jquery.js");
|
||||
Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.min.js");
|
||||
Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.unobtrusive.min.js");
|
||||
}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-7 well">
|
||||
@using (Html.BeginUmbracoForm<UmbLoginController>("HandleLogin"))
|
||||
{
|
||||
<fieldset>
|
||||
@Html.ValidationSummary("loginModel", true)
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => loginModel.Username, new { @class = "control-label" })
|
||||
@Html.TextBoxFor(m => loginModel.Username)
|
||||
@Html.ValidationMessageFor(m => loginModel.Username)
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => loginModel.Password, new { @class = "control-label" })
|
||||
@Html.PasswordFor(m => loginModel.Password)
|
||||
@Html.ValidationMessageFor(m => loginModel.Password)
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary pull-right">Login</button>
|
||||
@Html.HiddenFor(m => loginModel.RedirectUrl)
|
||||
</fieldset>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
|
||||
@{
|
||||
Html.RenderAction("Index", "Queue");
|
||||
}
|
||||
Reference in New Issue
Block a user