mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Changed multiple usages of <%= to <%: where appropriate
--HG-- branch : dev
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BodyEditorViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Core.Common.ViewModels" %>
|
||||
<fieldset>
|
||||
<label><%=_Encoded("Body")%></label>
|
||||
<label><%: T("Body")%></label>
|
||||
<%=Html.Partial("EditorTemplates/" + Model.TextEditorTemplate, Model) %>
|
||||
<%=Html.ValidationMessageFor(m => m.Text) %>
|
||||
<%: Html.ValidationMessageFor(m => m.Text) %>
|
||||
</fieldset>
|
@@ -1,7 +1,7 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<OwnerEditorViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Core.Common.ViewModels"%>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(m=>m.Owner) %>
|
||||
<%=Html.EditorFor(m=>m.Owner) %>
|
||||
<%=Html.ValidationMessageFor(m=>m.Owner) %>
|
||||
<%: Html.LabelFor(m=>m.Owner) %>
|
||||
<%: Html.EditorFor(m=>m.Owner) %>
|
||||
<%: Html.ValidationMessageFor(m=>m.Owner) %>
|
||||
</fieldset>
|
@@ -6,12 +6,12 @@
|
||||
<%@ Import Namespace="Orchard.Core.Common.ViewModels"%>
|
||||
<% Html.RegisterFootScript("jquery.slugify.js"); %>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(m => m.Title) %>
|
||||
<%=Html.TextBoxFor(m => m.Title, new { @class = "large text" }) %>
|
||||
<%: Html.LabelFor(m => m.Title) %>
|
||||
<%: Html.TextBoxFor(m => m.Title, new { @class = "large text" }) %>
|
||||
</fieldset>
|
||||
<fieldset class="permalink">
|
||||
<label class="sub" for="Slug"><%=_Encoded("Permalink")%><br /><span><%: Request.ToRootUrlString() %>/<%: Model.RoutableAspect.ContentItemBasePath %></span></label>
|
||||
<span><%=Html.TextBoxFor(m => m.Slug, new { @class = "text" })%></span>
|
||||
<label class="sub" for="Slug"><%: T("Permalink")%><br /><span><%: Request.ToRootUrlString() %>/<%: Model.RoutableAspect.ContentItemBasePath %></span></label>
|
||||
<span><%: Html.TextBoxFor(m => m.Slug, new { @class = "text" })%></span>
|
||||
</fieldset>
|
||||
<% using (this.Capture("end-of-page-scripts")) { %>
|
||||
<script type="text/javascript">
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<AdminViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Welcome to Orchard").ToString())%></h1>
|
||||
<p><%=_Encoded("This is the place where you can manage your web site, its appearance and its contents. Please take a moment to explore the different menu items on the left of the screen to familiarize yourself with the features of the application. For example, try to change the theme through the “Manage Themes” menu entry. You can also create new pages and manage existing ones through the “Manage Pages” menu entry or create blogs through “Manage Blogs”.") %></p>
|
||||
<p><%=_Encoded("Have fun!") %><br /><%=_Encoded("The Orchard Team") %></p>
|
||||
<h1><%: Html.TitleForPage(T("Welcome to Orchard").ToString())%></h1>
|
||||
<p><%: T("This is the place where you can manage your web site, its appearance and its contents. Please take a moment to explore the different menu items on the left of the screen to familiarize yourself with the features of the application. For example, try to change the theme through the “Manage Themes” menu entry. You can also create new pages and manage existing ones through the “Manage Pages” menu entry or create blogs through “Manage Blogs”.") %></p>
|
||||
<p><%: T("Have fun!") %><br /><%: T("The Orchard Team") %></p>
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||
<%@ Import Namespace="Orchard.Core.Navigation.Models"%>
|
||||
<%@ Import Namespace="Orchard.Core.Navigation.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Main Menu").ToString())%></h1><%
|
||||
<h1><%: Html.TitleForPage(T("Manage Main Menu").ToString())%></h1><%
|
||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<table class="items">
|
||||
<colgroup>
|
||||
@@ -13,9 +13,9 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<td scope="col"><%=_Encoded("Text") %></td>
|
||||
<td scope="col"><%=_Encoded("Position") %></td>
|
||||
<td scope="col"><%=_Encoded("Url") %></td>
|
||||
<td scope="col"><%: T("Text") %></td>
|
||||
<td scope="col"><%: T("Position") %></td>
|
||||
<td scope="col"><%: T("Url") %></td>
|
||||
<td scope="col"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -27,17 +27,17 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<td><input type="text" class="text-box" name="<%=Html.NameOf(m => m.MenuItemEntries[i].MenuItem.Text) %>" value="<%=menuPartEntry.MenuItem.Text %>" /></td>
|
||||
<td><input type="text" class="text-box" name="<%=Html.NameOf(m => m.MenuItemEntries[i].MenuItem.Position) %>" value="<%=menuPartEntry.MenuItem.Position %>" /></td>
|
||||
<td><% if (!menuPartEntry.IsMenuItem) { %><input type="text" class="text-box disabled" disabled="disabled" value="<%=menuPartEntry.MenuItem.Url %>" /><% } else { %><input type="text" class="text-box" name="<%=Html.NameOf(m => m.MenuItemEntries[i].MenuItem.Url) %>" value="<%=menuPartEntry.MenuItem.Url %>" /><% } %></td>
|
||||
<td><input type="hidden" name="<%=Html.NameOf(m => m.MenuItemEntries[i].MenuItemId) %>" value="<%=menuPartEntry.MenuItemId %>" /><a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Delete", new {id = menuPartEntry.MenuItemId})) %>" class="remove"><%=_Encoded("Remove") %></a></td>
|
||||
<td><input type="hidden" name="<%=Html.NameOf(m => m.MenuItemEntries[i].MenuItemId) %>" value="<%=menuPartEntry.MenuItemId %>" /><a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Delete", new {id = menuPartEntry.MenuItemId})) %>" class="remove"><%: T("Remove") %></a></td>
|
||||
</tr><%
|
||||
++menuPartEntryIndex;
|
||||
} %>
|
||||
</tbody>
|
||||
</table>
|
||||
<fieldset class="actions"><button type="submit" class="button primaryAction"><%=_Encoded("Update All") %></button></fieldset><%
|
||||
<fieldset class="actions"><button type="submit" class="button primaryAction"><%: T("Update All") %></button></fieldset><%
|
||||
}
|
||||
%>
|
||||
|
||||
<h2><%=_Encoded("Add New Item") %></h2><%
|
||||
<h2><%: T("Add New Item") %></h2><%
|
||||
using (Html.BeginFormAntiForgeryPost("/admin/navigation/create", FormMethod.Post)) { %>
|
||||
<table class="menu items">
|
||||
<colgroup>
|
||||
@@ -49,18 +49,18 @@ using (Html.BeginFormAntiForgeryPost("/admin/navigation/create", FormMethod.Post
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="MenuText"><%=_Encoded("Text") %></label>
|
||||
<%=Html.EditorFor(nmvm => nmvm.NewMenuItem.MenuItem.Item.As<MenuPart>().MenuText) %>
|
||||
<label for="MenuText"><%: T("Text") %></label>
|
||||
<%: Html.EditorFor(nmvm => nmvm.NewMenuItem.MenuItem.Item.As<MenuPart>().MenuText) %>
|
||||
</td>
|
||||
<td>
|
||||
<label for="MenuPosition"><%=_Encoded("Position")%></label>
|
||||
<%=Html.EditorFor(nmvm => nmvm.NewMenuItem.MenuItem.Item.As<MenuPart>().MenuPosition) %>
|
||||
<label for="MenuPosition"><%: T("Position")%></label>
|
||||
<%: Html.EditorFor(nmvm => nmvm.NewMenuItem.MenuItem.Item.As<MenuPart>().MenuPosition) %>
|
||||
</td>
|
||||
<td>
|
||||
<label for="Url"><%=_Encoded("Url")%></label>
|
||||
<%=Html.EditorFor(nmvm => nmvm.NewMenuItem.MenuItem.Item.As<Orchard.Core.Navigation.Models.MenuItem>().Url)%>
|
||||
<label for="Url"><%: T("Url")%></label>
|
||||
<%: Html.EditorFor(nmvm => nmvm.NewMenuItem.MenuItem.Item.As<Orchard.Core.Navigation.Models.MenuItem>().Url)%>
|
||||
</td>
|
||||
<td><button class="add" type="submit"><%=_Encoded("Add") %></button></td>
|
||||
<td><button class="add" type="submit"><%: T("Add") %></button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><%
|
||||
|
@@ -2,10 +2,10 @@
|
||||
<%@ Import Namespace="Orchard.Core.Navigation.Models"%>
|
||||
<%@ Import Namespace="Orchard.Core.Navigation.ViewModels"%>
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(m => m.OnMainMenu) %>
|
||||
<label for="OnMainMenu" class="forcheckbox"><%=_Encoded("Show on main menu") %></label>
|
||||
<%: Html.EditorFor(m => m.OnMainMenu) %>
|
||||
<label for="OnMainMenu" class="forcheckbox"><%: T("Show on main menu") %></label>
|
||||
<div data-controllerid="OnMainMenu" class="">
|
||||
<label for="MenuText"><%=_Encoded("Menu text") %></label>
|
||||
<%=Html.TextBoxFor(m => m.MenuText, new { @class = "large text" })%>
|
||||
<label for="MenuText"><%: T("Menu text") %></label>
|
||||
<%: Html.TextBoxFor(m => m.MenuText, new { @class = "large text" })%>
|
||||
</div>
|
||||
</fieldset>
|
@@ -1,29 +1,29 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<SettingsIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Core.Settings.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Settings").ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Settings").ToString())%></h1>
|
||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Global Settings")%></legend>
|
||||
<legend><%: T("Global Settings")%></legend>
|
||||
<div>
|
||||
<label for="SiteName"><%=_Encoded("Site name") %></label>
|
||||
<%=Html.EditorFor(m => m.SiteName)%>
|
||||
<%=Html.ValidationMessage("SiteName", "*") %>
|
||||
<label for="SiteName"><%: T("Site name") %></label>
|
||||
<%: Html.EditorFor(m => m.SiteName)%>
|
||||
<%: Html.ValidationMessage("SiteName", "*") %>
|
||||
</div>
|
||||
<div>
|
||||
<label for="PageTitleSeparator"><%=_Encoded("Page title separator") %></label>
|
||||
<%=Html.EditorFor(x => x.PageTitleSeparator)%>
|
||||
<%=Html.ValidationMessage("PageTitleSeparator", "*")%>
|
||||
<label for="PageTitleSeparator"><%: T("Page title separator") %></label>
|
||||
<%: Html.EditorFor(x => x.PageTitleSeparator)%>
|
||||
<%: Html.ValidationMessage("PageTitleSeparator", "*")%>
|
||||
</div>
|
||||
<div>
|
||||
<label for="SuperUser"><%=_Encoded("Super user") %></label>
|
||||
<%=Html.EditorFor(x=>x.SuperUser) %>
|
||||
<%=Html.ValidationMessage("SuperUser", "*") %>
|
||||
<label for="SuperUser"><%: T("Super user") %></label>
|
||||
<%: Html.EditorFor(x=>x.SuperUser) %>
|
||||
<%: Html.ValidationMessage("SuperUser", "*") %>
|
||||
</div>
|
||||
</fieldset>
|
||||
<%= Html.EditorForItem(Model.ViewModel) %>
|
||||
<%: Html.EditorForItem(Model.ViewModel) %>
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(s => s.Id) %>
|
||||
<input class="button primaryAction" type="submit" value="<%=_Encoded("Save") %>" />
|
||||
<%: Html.EditorFor(s => s.Id) %>
|
||||
<input class="button primaryAction" type="submit" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
||||
|
@@ -1,12 +1,12 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<WidgetEditViewModel>" %>
|
||||
<%@ Import Namespace="Futures.Widgets.ViewModels" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<h1><%=Html.TitleForPage(T("Edit Widget").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Widget").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForItem(m => m.Widget) %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorForItem(m => m.Widget) %>
|
||||
<fieldset>
|
||||
<%= Html.HiddenFor(m => m.ReturnUrl) %>
|
||||
<%: Html.HiddenFor(m => m.ReturnUrl) %>
|
||||
<input class="button primaryAction" type="submit" name="submit.Save" value="Save"/>
|
||||
</fieldset>
|
||||
<%} %>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<% Html.RegisterStyle("archives.css"); %>
|
||||
<% Html.RegisterFootScript("archives.js"); %>
|
||||
<div class="archives">
|
||||
<h3><%=_Encoded("Archives") %></h3><%
|
||||
<h3><%: T("Archives") %></h3><%
|
||||
if (Model.Archives.Count() > 0) {
|
||||
if (Model.Archives.Count() > 20) { %>
|
||||
<ul class="years"><%
|
||||
@@ -33,6 +33,6 @@
|
||||
}
|
||||
}
|
||||
else { %>
|
||||
<div class="message info"><%=_Encoded("None found")%></div><%
|
||||
<div class="message info"><%: T("None found")%></div><%
|
||||
} %>
|
||||
</div>
|
@@ -4,5 +4,5 @@
|
||||
<%=Html.UnorderedList(Model.Blogs, (b, i) => Html.DisplayForItem(b).ToHtmlString(), "blogs contentItems") %><%
|
||||
}
|
||||
else { %>
|
||||
<p><%=_Encoded("No blogs found.") %></p><%
|
||||
<p><%: T("No blogs found.") %></p><%
|
||||
} %>
|
@@ -1,12 +1,12 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<CreateBlogViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add Blog").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add Blog").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(vm => vm.Blog) %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorForItem(vm => vm.Blog) %>
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(m => m.PromoteToHomePage) %>
|
||||
<label for="PromoteToHomePage" class="forcheckbox"><%=_Encoded("Set as home page") %></label>
|
||||
<%: Html.EditorFor(m => m.PromoteToHomePage) %>
|
||||
<label for="PromoteToHomePage" class="forcheckbox"><%: T("Set as home page") %></label>
|
||||
</fieldset>
|
||||
<fieldset><input class="button primaryAction" type="submit" value="<%=_Encoded("Add") %>" /></fieldset><%
|
||||
<fieldset><input class="button primaryAction" type="submit" value="<%: T("Add") %>" /></fieldset><%
|
||||
} %>
|
@@ -1,12 +1,12 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BlogEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit Blog").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Blog").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.Blog) %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorForItem(m => m.Blog) %>
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(m => m.PromoteToHomePage) %>
|
||||
<label for="PromoteToHomePage" class="forcheckbox"><%=_Encoded("Set as home page") %></label>
|
||||
<%: Html.EditorFor(m => m.PromoteToHomePage) %>
|
||||
<label for="PromoteToHomePage" class="forcheckbox"><%: T("Set as home page") %></label>
|
||||
</fieldset>
|
||||
<fieldset><input class="button primaryAction" type="submit" value="<%=_Encoded("Save") %>" /></fieldset><%
|
||||
<fieldset><input class="button primaryAction" type="submit" value="<%: T("Save") %>" /></fieldset><%
|
||||
} %>
|
@@ -1,10 +1,10 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<AdminBlogsViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Blogs").ToString()) %></h1>
|
||||
<%-- todo: Add helper text here when ready. <p><%=_Encoded("Possible text about setting up and managing a blog goes here.") %></p> --%><%
|
||||
<h1><%: Html.TitleForPage(T("Manage Blogs").ToString()) %></h1>
|
||||
<%-- todo: Add helper text here when ready. <p><%: T("Possible text about setting up and managing a blog goes here.") %></p> --%><%
|
||||
if (Model.Entries.Count() > 0) { %>
|
||||
<div class="actions"><a class="add button primaryAction" href="<%=Url.BlogCreate() %>"><%=_Encoded("New Blog") %></a></div>
|
||||
<div class="actions"><a class="add button primaryAction" href="<%=Url.BlogCreate() %>"><%: T("New Blog") %></a></div>
|
||||
<%=Html.UnorderedList(Model.Entries, (entry, i) => {
|
||||
// Add blog post count rendering into "meta" zone
|
||||
entry.ContentItemViewModel.Zones.AddAction("meta", html => {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BlogPostArchiveViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<h1 class="page-title"><%=Html.TitleForPage(T("Archives").ToString(), Model.ArchiveData.Year.ToString(), Model.ArchiveData.Month > 0 ? new DateTime(Model.ArchiveData.Year, Model.ArchiveData.Month, 1).ToString("MMMM") : null, Model.ArchiveData.Day > 0 ? Model.ArchiveData.Day.ToString() : null)%></h1>
|
||||
<h1 class="page-title"><%: Html.TitleForPage(T("Archives").ToString(), Model.ArchiveData.Year.ToString(), Model.ArchiveData.Month > 0 ? new DateTime(Model.ArchiveData.Year, Model.ArchiveData.Month, 1).ToString("MMMM") : null, Model.ArchiveData.Day > 0 ? Model.ArchiveData.Day.ToString() : null)%></h1>
|
||||
|
||||
<div class="archive-trail">
|
||||
<%=T("Archives").ToString()
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<CreateBlogPostViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add Post").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add Post").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.BlogPost) %><%
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorForItem(m => m.BlogPost) %><%
|
||||
} %>
|
@@ -1,7 +1,7 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BlogPostEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit Post").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Post").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.BlogPost) %><%
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorForItem(m => m.BlogPost) %><%
|
||||
} %>
|
@@ -3,21 +3,21 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h1 class="withActions">
|
||||
<a href="<%=Url.BlogForAdmin(Model.Item.Slug) %>"><%=Html.TitleForPage(Model.Item.Name) %></a>
|
||||
<a href="<%=Url.BlogForAdmin(Model.Item.Slug) %>"><%: Html.TitleForPage(Model.Item.Name) %></a>
|
||||
</h1>
|
||||
<% Html.Zone("manage"); %><%--
|
||||
<form>
|
||||
<div class="actions bulk">
|
||||
<fieldset>
|
||||
<label for="filterResults"><%=_Encoded("Filter:")%></label>
|
||||
<label for="filterResults"><%: T("Filter:")%></label>
|
||||
<select id="filterResults" name="">
|
||||
<option value="">All Posts</option>
|
||||
<option value="">Published Posts</option>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%=_Encoded("Apply") %>"/>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%: T("Apply") %>"/>
|
||||
</fieldset>
|
||||
</div>
|
||||
</form>--%>
|
||||
<div class="actions"><a href="<%=Url.BlogPostCreate(Model.Item) %>" class="add button primaryAction"><%=_Encoded("New Post")%></a></div>
|
||||
<div class="actions"><a href="<%=Url.BlogPostCreate(Model.Item) %>" class="add button primaryAction"><%: T("New Post")%></a></div>
|
||||
<% Html.Zone("primary");
|
||||
Html.ZonesAny(); %>
|
@@ -4,4 +4,4 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h2><%=Html.Link(Html.Encode(Model.Item.Name), Url.Blog(Model.Item.Slug)) %></h2>
|
||||
<% if (!string.IsNullOrEmpty(Model.Item.Description)) { %><p><%: Model.Item.Description %></p><% } %>
|
||||
<div class="blog metadata"><%=_Encoded("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%> | <%Html.Zone("meta");%></div>
|
||||
<div class="blog metadata"><%: T("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%> | <%Html.Zone("meta");%></div>
|
||||
|
@@ -4,13 +4,13 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<div class="summary">
|
||||
<div class="related">
|
||||
<a href="<%=Url.Blog(Model.Item.Slug) %>" title="<%=_Encoded("View") %>"><%=_Encoded("View") %></a><%=_Encoded(" | ")%>
|
||||
<a href="<%=Url.BlogForAdmin(Model.Item.Slug) %>" title="<%=_Encoded("Edit Posts") %>"><%=_Encoded("Edit Posts")%></a><%=_Encoded(" | ")%>
|
||||
<a href="<%=Url.BlogPostCreate(Model.Item) %>" title="<%=_Encoded("New Post") %>"><%=_Encoded("New Post") %></a><%=_Encoded(" | ")%>
|
||||
<a href="<%=Url.BlogEdit(Model.Item.Slug) %>" title="<%=_Encoded("Settings") %>"><%=_Encoded("Settings") %></a><%=_Encoded(" | ")%>
|
||||
<a href="<%=Url.Blog(Model.Item.Slug) %>" title="<%: T("View") %>"><%: T("View") %></a><%: T(" | ")%>
|
||||
<a href="<%=Url.BlogForAdmin(Model.Item.Slug) %>" title="<%: T("Edit Posts") %>"><%: T("Edit Posts")%></a><%: T(" | ")%>
|
||||
<a href="<%=Url.BlogPostCreate(Model.Item) %>" title="<%: T("New Post") %>"><%: T("New Post") %></a><%: T(" | ")%>
|
||||
<a href="<%=Url.BlogEdit(Model.Item.Slug) %>" title="<%: T("Settings") %>"><%: T("Settings") %></a><%: T(" | ")%>
|
||||
<%-- todo: (heskew) this is waaaaa too verbose. need template helpers for all ibuttons --%>
|
||||
<% using (Html.BeginFormAntiForgeryPost(Url.BlogDelete(Model.Item.Slug), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<button type="submit" class="linkButton" title="<%=_Encoded("Remove") %>"><%=_Encoded("Remove") %></button><%
|
||||
<button type="submit" class="linkButton" title="<%: T("Remove") %>"><%: T("Remove") %></button><%
|
||||
} %>
|
||||
</div>
|
||||
<div class="properties">
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h1><%=Html.TitleForPage(Model.Item.Name) %></h1>
|
||||
<h1><%: Html.TitleForPage(Model.Item.Name) %></h1>
|
||||
<% Html.RegisterLink(new LinkEntry { Rel = "wlwmanifest", Type = "application/wlwmanifest+xml", Href = Url.BlogLiveWriterManifest(Model.Item.Slug) });%>
|
||||
<% Html.RegisterLink(new LinkEntry { Rel = "EditURI", Type = "application/rsd+xml", Title = "RSD", Href = Url.BlogRsd(Model.Item.Slug) });%>
|
||||
<% Html.Zone("primary", ":manage :metadata");
|
||||
|
@@ -11,48 +11,48 @@
|
||||
<ul>
|
||||
<li><%
|
||||
if (Model.Item.HasPublished) { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Blogs/Content/Admin/images/online.gif") %>" alt="<%=_Encoded("Online") %>" title="<%=_Encoded("The page is currently online") %>" /><%=_Encoded(" Published")%><%
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Blogs/Content/Admin/images/online.gif") %>" alt="<%: T("Online") %>" title="<%: T("The page is currently online") %>" /><%: T(" Published")%><%
|
||||
}
|
||||
else { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Blogs/Content/Admin/images/offline.gif") %>" alt="<%=_Encoded("Offline") %>" title="<%=_Encoded("The page is currently offline") %>" /><%=_Encoded(" Not Published")%><%
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Blogs/Content/Admin/images/offline.gif") %>" alt="<%: T("Offline") %>" title="<%: T("The page is currently offline") %>" /><%: T(" Not Published")%><%
|
||||
} %> |
|
||||
</li>
|
||||
<li><%
|
||||
if (Model.Item.HasDraft) { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Blogs/Content/Admin/images/draft.gif") %>" alt="<%=_Encoded("Draft") %>" title="<%=_Encoded("The post has a draft") %>" /><%=Html.PublishedState(Model.Item)%><%
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Blogs/Content/Admin/images/draft.gif") %>" alt="<%: T("Draft") %>" title="<%: T("The post has a draft") %>" /><%=Html.PublishedState(Model.Item)%><%
|
||||
}
|
||||
else { %>
|
||||
<%=_Encoded("No draft")%><%
|
||||
<%: T("No draft")%><%
|
||||
} %> |
|
||||
</li>
|
||||
<li><%
|
||||
if (Model.Item.ScheduledPublishUtc.HasValue && Model.Item.ScheduledPublishUtc.Value > DateTime.UtcNow) { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Blogs/Content/Admin/images/scheduled.gif") %>" alt="<%=_Encoded("Scheduled") %>" title="<%=_Encoded("The post is scheduled for publishing") %>" /><%=_Encoded("Scheduled")%>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Blogs/Content/Admin/images/scheduled.gif") %>" alt="<%: T("Scheduled") %>" title="<%: T("The post is scheduled for publishing") %>" /><%: T("Scheduled")%>
|
||||
<%=Html.DateTime(Model.Item.ScheduledPublishUtc.Value, "M/d/yyyy h:mm tt")%><%
|
||||
}
|
||||
else if (Model.Item.IsPublished) { %>
|
||||
<%=_Encoded("Published: ") + Html.DateTimeRelative(Model.Item.As<ICommonAspect>().VersionPublishedUtc.Value)%><%
|
||||
<%: T("Published: ") + Html.DateTimeRelative(Model.Item.As<ICommonAspect>().VersionPublishedUtc.Value)%><%
|
||||
}
|
||||
else { %>
|
||||
<%=_Encoded("Last modified: ") + Html.DateTimeRelative(Model.Item.As<ICommonAspect>().ModifiedUtc.Value) %><%
|
||||
<%: T("Last modified: ") + Html.DateTimeRelative(Model.Item.As<ICommonAspect>().ModifiedUtc.Value) %><%
|
||||
} %> |
|
||||
</li>
|
||||
<li><%=_Encoded("By {0}", Model.Item.Creator.UserName)%></li>
|
||||
<li><%: T("By {0}", Model.Item.Creator.UserName)%></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="related"><%
|
||||
if (Model.Item.HasPublished){ %>
|
||||
<a href="<%=Url.BlogPost(Model.Item) %>" title="<%=_Encoded("View Post")%>"><%=_Encoded("View")%></a><%=_Encoded(" | ")%><%
|
||||
<a href="<%=Url.BlogPost(Model.Item) %>" title="<%: T("View Post")%>"><%: T("View")%></a><%: T(" | ")%><%
|
||||
if (Model.Item.HasDraft) { %>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.BlogPostPublish(Model.Item)) %>" title="<%=_Encoded("Publish Draft")%>"><%=_Encoded("Publish Draft")%></a><%=_Encoded(" | ")%><%
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.BlogPostPublish(Model.Item)) %>" title="<%: T("Publish Draft")%>"><%: T("Publish Draft")%></a><%: T(" | ")%><%
|
||||
} %>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.BlogPostUnpublish(Model.Item)) %>" title="<%=_Encoded("Unpublish Post")%>"><%=_Encoded("Unpublish")%></a><%=_Encoded(" | ")%><%
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.BlogPostUnpublish(Model.Item)) %>" title="<%: T("Unpublish Post")%>"><%: T("Unpublish")%></a><%: T(" | ")%><%
|
||||
}
|
||||
else { %>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.BlogPostPublish(Model.Item)) %>" title="<%=_Encoded("Publish Post")%>"><%=_Encoded("Publish")%></a><%=_Encoded(" | ")%><%
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.BlogPostPublish(Model.Item)) %>" title="<%: T("Publish Post")%>"><%: T("Publish")%></a><%: T(" | ")%><%
|
||||
} %>
|
||||
<a href="<%=Url.BlogPostEdit(Model.Item) %>" title="<%=_Encoded("Edit Post")%>"><%=_Encoded("Edit")%></a><%=_Encoded(" | ")%>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.BlogPostDelete(Model.Item)) %>" title="<%=_Encoded("Remove Post")%>"><%=_Encoded("Remove")%></a>
|
||||
<a href="<%=Url.BlogPostEdit(Model.Item) %>" title="<%: T("Edit Post")%>"><%: T("Edit")%></a><%: T(" | ")%>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.BlogPostDelete(Model.Item)) %>" title="<%: T("Remove Post")%>"><%: T("Remove")%></a>
|
||||
<br /><%Html.Zone("meta");%>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<BlogPost>>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h1><%=Html.TitleForPage(Model.Item.Title)%></h1>
|
||||
<h1><%: Html.TitleForPage(Model.Item.Title)%></h1>
|
||||
<% Html.Zone("primary", ":manage :metadata");
|
||||
Html.ZonesAny(); %>
|
@@ -4,6 +4,6 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%><%
|
||||
if (AuthorizedFor(Permissions.ManageBlogs)) { %>
|
||||
<div class="folderProperties">
|
||||
<p><a href="<%=Url.BlogEdit(Model.Slug) %>" class="edit"><%=_Encoded("Edit") %></a></p>
|
||||
<p><a href="<%=Url.BlogEdit(Model.Slug) %>" class="edit"><%: T("Edit") %></a></p>
|
||||
</div><%
|
||||
} %>
|
@@ -2,4 +2,4 @@
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<%=Html.UnorderedList(Model, (bp, i) => Html.DisplayForItem(bp).ToHtmlString(), "blogPosts contentItems") %>
|
||||
<% if (Model.Count() < 1) { %><div class="info message"><%=_Encoded("There are no posts for this blog.") %></div><% } %>
|
||||
<% if (Model.Count() < 1) { %><div class="info message"><%: T("There are no posts for this blog.") %></div><% } %>
|
||||
|
@@ -2,5 +2,5 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%><%
|
||||
if (Model.Creator != null) {
|
||||
%><span class="posted"><%=_Encoded("Posted by {0} {1}", Model.Creator.UserName, Html.PublishedWhen(Model)) %> | </span><%
|
||||
%><span class="posted"><%: T("Posted by {0} {1}", Model.Creator.UserName, Html.PublishedWhen(Model)) %> | </span><%
|
||||
} %>
|
@@ -3,6 +3,6 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<div class="metadata"><%
|
||||
if (Model.Creator != null) {
|
||||
%><div class="posted"><%=_Encoded("Posted by {0} {1}", Model.Creator.UserName, Html.PublishedWhen(Model)) %></div><%
|
||||
%><div class="posted"><%: T("Posted by {0} {1}", Model.Creator.UserName, Html.PublishedWhen(Model)) %></div><%
|
||||
} %>
|
||||
</div>
|
@@ -10,7 +10,7 @@
|
||||
<div class="secondary">
|
||||
<% Html.Zone("secondary");%>
|
||||
<fieldset>
|
||||
<input class="button primaryAction" type="submit" name="submit.Save" value="<%=_Encoded("Save") %>"/><%
|
||||
<input class="button primaryAction" type="submit" name="submit.Save" value="<%: T("Save") %>"/><%
|
||||
//TODO: (erikpo) In the future, remove the HasPublished check so the user can delete the content item from here if the choose to
|
||||
if (Model.Item.HasDraft && Model.Item.HasPublished) { %>
|
||||
<%=Html.AntiForgeryTokenValueOrchardLink(T("Discard Draft").ToString(), Url.Action("DiscardDraft", new {Area = "Orchard.Blogs", Controller = "BlogPostAdmin", id = Model.Item.Id}), new {@class = "button"})%><%
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Blog>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(m => m.Description) %>
|
||||
<%=Html.TextAreaFor(m => m.Description, 5, 60, null) %>
|
||||
<%: Html.LabelFor(m => m.Description) %>
|
||||
<%: Html.TextAreaFor(m => m.Description, 5, 60, null) %>
|
||||
</fieldset>
|
@@ -9,24 +9,24 @@
|
||||
<% Html.RegisterFootScript("jquery.utils.js"); %>
|
||||
<% Html.RegisterFootScript("ui.timepickr.js"); %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Publish Settings")%></legend>
|
||||
<legend><%: T("Publish Settings")%></legend>
|
||||
<div>
|
||||
<%=Html.RadioButton("Command", "SaveDraft", Model.ContentItem.VersionRecord == null || !Model.ContentItem.VersionRecord.Published, new { id = "Command_SaveDraft" }) %>
|
||||
<label class="forcheckbox" for="Command_SaveDraft"><%=_Encoded("Save Draft")%></label>
|
||||
<%: Html.RadioButton("Command", "SaveDraft", Model.ContentItem.VersionRecord == null || !Model.ContentItem.VersionRecord.Published, new { id = "Command_SaveDraft" }) %>
|
||||
<label class="forcheckbox" for="Command_SaveDraft"><%: T("Save Draft")%></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButton("Command", "PublishNow", Model.ContentItem.VersionRecord != null && Model.ContentItem.VersionRecord.Published, new { id = "Command_PublishNow" })%>
|
||||
<label class="forcheckbox" for="Command_PublishNow"><%=_Encoded("Publish Now")%></label>
|
||||
<%: Html.RadioButton("Command", "PublishNow", Model.ContentItem.VersionRecord != null && Model.ContentItem.VersionRecord.Published, new { id = "Command_PublishNow" })%>
|
||||
<label class="forcheckbox" for="Command_PublishNow"><%: T("Publish Now")%></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButton("Command", "PublishLater", Model.ScheduledPublishUtc != null, new { id = "Command_PublishLater" }) %>
|
||||
<label class="forcheckbox" for="Command_PublishLater"><%=_Encoded("Publish Later")%></label>
|
||||
<%: Html.RadioButton("Command", "PublishLater", Model.ScheduledPublishUtc != null, new { id = "Command_PublishLater" }) %>
|
||||
<label class="forcheckbox" for="Command_PublishLater"><%: T("Publish Later")%></label>
|
||||
</div>
|
||||
<div>
|
||||
<label class="forpicker" for="ScheduledPublishUtcDate"><%=_Encoded("Date")%></label>
|
||||
<%=Html.EditorFor(m => m.ScheduledPublishUtcDate)%>
|
||||
<label class="forpicker" for="ScheduledPublishUtcTime"><%=_Encoded("Time")%></label>
|
||||
<%=Html.EditorFor(m => m.ScheduledPublishUtcTime)%>
|
||||
<label class="forpicker" for="ScheduledPublishUtcDate"><%: T("Date")%></label>
|
||||
<%: Html.EditorFor(m => m.ScheduledPublishUtcDate)%>
|
||||
<label class="forpicker" for="ScheduledPublishUtcTime"><%: T("Time")%></label>
|
||||
<%: Html.EditorFor(m => m.ScheduledPublishUtcTime)%>
|
||||
</div>
|
||||
</fieldset>
|
||||
<script type="text/javascript">$(function() {
|
||||
|
@@ -1,47 +1,47 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<CommentsDetailsViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||
<%@ Import Namespace="Orchard.Comments.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Comments for {0}", Model.DisplayNameForCommentedItem).ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Comments for {0}", Model.DisplayNameForCommentedItem).ToString()) %></h1>
|
||||
<div class="manage"><%
|
||||
if (Model.CommentsClosedOnItem) {
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("Enable", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<fieldset>
|
||||
<button type="submit" title="<%=_Encoded("Enable Comments") %>"><%=_Encoded("Enable Comments")%></button>
|
||||
<button type="submit" title="<%: T("Enable Comments") %>"><%: T("Enable Comments")%></button>
|
||||
</fieldset><%
|
||||
}
|
||||
} else {
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("Close", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<fieldset>
|
||||
<button type="submit" class="remove" title="<%=_Encoded("Close Comments") %>"><%=_Encoded("Close Comments")%></button>
|
||||
<button type="submit" class="remove" title="<%: T("Close Comments") %>"><%: T("Close Comments")%></button>
|
||||
</fieldset><%
|
||||
}
|
||||
} %>
|
||||
</div>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="publishActions"><%=_Encoded("Actions:") %></label>
|
||||
<label for="publishActions"><%: T("Actions:") %></label>
|
||||
<select id="publishActions" name="<%=Html.NameOf(m => m.Options.BulkAction)%>">
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.None, _Encoded("Choose action...").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Approve, _Encoded("Approve").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Pend, _Encoded("Pend").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.MarkAsSpam, _Encoded("Mark as Spam").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Delete, _Encoded("Remove").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.None, _Encoded("Choose action...").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Approve, _Encoded("Approve").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Pend, _Encoded("Pend").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.MarkAsSpam, _Encoded("Mark as Spam").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Delete, _Encoded("Remove").ToString())%>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="<%=_Encoded("Apply") %>" />
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="<%: T("Apply") %>" />
|
||||
</fieldset>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="filterResults"><%=_Encoded("Filter:")%></label>
|
||||
<label for="filterResults"><%: T("Filter:")%></label>
|
||||
<select id="filterResults" name="<%=Html.NameOf(m => m.Options.Filter)%>">
|
||||
<%=Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.All, _Encoded("All Comments").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Approved, _Encoded("Approved Comments").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Pending, _Encoded("Pending Comments").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Spam, _Encoded("Spam").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.All, _Encoded("All Comments").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Approved, _Encoded("Approved Comments").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Pending, _Encoded("Pending Comments").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Spam, _Encoded("Spam").ToString())%>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%=_Encoded("Apply") %>"/>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%: T("Apply") %>"/>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<table class="items" summary="<%=_Encoded("This is a table of the comments for the content item") %>">
|
||||
<table class="items" summary="<%: T("This is a table of the comments for the content item") %>">
|
||||
<colgroup>
|
||||
<col id="Col1" />
|
||||
<col id="Col2" />
|
||||
@@ -53,10 +53,10 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
||||
<th scope="col"><%=_Encoded("Status") %></th>
|
||||
<th scope="col"><%=_Encoded("Author") %></th>
|
||||
<th scope="col"><%=_Encoded("Comment") %></th>
|
||||
<th scope="col"><%=_Encoded("Date") %></th>
|
||||
<th scope="col"><%: T("Status") %></th>
|
||||
<th scope="col"><%: T("Author") %></th>
|
||||
<th scope="col"><%: T("Comment") %></th>
|
||||
<th scope="col"><%: T("Date") %></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -73,26 +73,26 @@
|
||||
<input type="hidden" value="<%=Model.CommentedItemId %>" name="CommentedItemId" />
|
||||
</td>
|
||||
<td>
|
||||
<% if (commentEntry.Comment.Status == CommentStatus.Spam) { %><%=_Encoded("Spam") %><% }
|
||||
else if (commentEntry.Comment.Status == CommentStatus.Pending) { %><%=_Encoded("Pending") %><% }
|
||||
else { %><%=_Encoded("Approved") %><% } %>
|
||||
<% if (commentEntry.Comment.Status == CommentStatus.Spam) { %><%: T("Spam") %><% }
|
||||
else if (commentEntry.Comment.Status == CommentStatus.Pending) { %><%: T("Pending") %><% }
|
||||
else { %><%: T("Approved") %><% } %>
|
||||
</td>
|
||||
<td><%: commentEntry.Comment.UserName %></td>
|
||||
<td>
|
||||
<% if (commentEntry.Comment.CommentText != null) {%>
|
||||
<%: commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %><%=_Encoded(" ...") %>
|
||||
<%: commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %><%: T(" ...") %>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%=Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %></td>
|
||||
<td>
|
||||
<ul class="actions">
|
||||
<li class="construct">
|
||||
<a href="<%=Url.Action("Edit", new {commentEntry.Comment.Id}) %>" class="ibutton edit" title="<%=_Encoded("Edit Comment")%>"><%=_Encoded("Edit Comment")%></a>
|
||||
<a href="<%=Url.Action("Edit", new {commentEntry.Comment.Id}) %>" class="ibutton edit" title="<%: T("Edit Comment")%>"><%: T("Edit Comment")%></a>
|
||||
</li>
|
||||
<li class="destruct">
|
||||
<%-- a form in a form doesn't quite work <% using (Html.BeginFormAntiForgeryPost(Url.Action("Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Details"}), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<fieldset>
|
||||
<button type="submit" class="ibutton remove" title="<%=_Encoded("Remove Comment") %>"><%=_Encoded("Remove Comment") %></button>
|
||||
<button type="submit" class="ibutton remove" title="<%: T("Remove Comment") %>"><%: T("Remove Comment") %></button>
|
||||
</fieldset><%
|
||||
} %>
|
||||
--%> </li>
|
||||
@@ -109,13 +109,13 @@
|
||||
if (Model.CommentsClosedOnItem) {
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("Enable", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<fieldset>
|
||||
<button type="submit" title="<%=_Encoded("Enable Comments") %>"><%=_Encoded("Enable Comments")%></button>
|
||||
<button type="submit" title="<%: T("Enable Comments") %>"><%: T("Enable Comments")%></button>
|
||||
</fieldset><%
|
||||
}
|
||||
} else {
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("Close", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<fieldset>
|
||||
<button type="submit" class="remove" title="<%=_Encoded("Close Comments") %>"><%=_Encoded("Close Comments")%></button>
|
||||
<button type="submit" class="remove" title="<%: T("Close Comments") %>"><%: T("Close Comments")%></button>
|
||||
</fieldset><%
|
||||
}
|
||||
} %>
|
||||
|
@@ -1,45 +1,45 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<CommentsEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||
<%@ Import Namespace="Orchard.Comments.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit Comment").ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Comment").ToString())%></h1>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset class="who">
|
||||
<div>
|
||||
<label for="Name"><%=_Encoded("Name") %></label>
|
||||
<label for="Name"><%: T("Name") %></label>
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%: Model.Name %>" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="Email"><%=_Encoded("Email") %></label>
|
||||
<label for="Email"><%: T("Email") %></label>
|
||||
<input id="Email" class="text" name="Email" type="text" value="<%: Model.Email %>" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="SiteName"><%=_Encoded("Url") %></label>
|
||||
<label for="SiteName"><%: T("Url") %></label>
|
||||
<input id="SiteName" class="text" name="SiteName" type="text" value="<%: Model.SiteName %>" />
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="what">
|
||||
<div>
|
||||
<label for="CommentText"><%=_Encoded("Body") %></label>
|
||||
<label for="CommentText"><%: T("Body") %></label>
|
||||
<textarea id="CommentText" rows="10" cols="30" name="CommentText"><%: Model.CommentText %></textarea>
|
||||
<input id="CommentId" name="Id" type="hidden" value="<%=Model.Id %>" />
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<div>
|
||||
<%=Html.RadioButton("Status", "Pending", (Model.Status == CommentStatus.Pending), new { id = "Status_Pending" }) %>
|
||||
<label class="forcheckbox" for="Status_Pending"><%=_Encoded("Pending") %></label>
|
||||
<%: Html.RadioButton("Status", "Pending", (Model.Status == CommentStatus.Pending), new { id = "Status_Pending" }) %>
|
||||
<label class="forcheckbox" for="Status_Pending"><%: T("Pending") %></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButton("Status", "Approved", (Model.Status == CommentStatus.Approved), new { id = "Status_Approved" }) %>
|
||||
<label class="forcheckbox" for="Status_Approved"><%=_Encoded("Approved") %></label>
|
||||
<%: Html.RadioButton("Status", "Approved", (Model.Status == CommentStatus.Approved), new { id = "Status_Approved" }) %>
|
||||
<label class="forcheckbox" for="Status_Approved"><%: T("Approved") %></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButton("Status", "Spam", (Model.Status == CommentStatus.Spam), new { id = "Status_Spam" }) %>
|
||||
<label class="forcheckbox" for="Status_Spam"><%=_Encoded("Mark as spam") %></label>
|
||||
<%: Html.RadioButton("Status", "Spam", (Model.Status == CommentStatus.Spam), new { id = "Status_Spam" }) %>
|
||||
<label class="forcheckbox" for="Status_Spam"><%: T("Mark as spam") %></label>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" class="button" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -1,32 +1,32 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<CommentsIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||
<%@ Import Namespace="Orchard.Comments.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Comments").ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Comments").ToString())%></h1>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="publishActions"><%=_Encoded("Actions:") %></label>
|
||||
<label for="publishActions"><%: T("Actions:") %></label>
|
||||
<select id="publishActions" name="<%=Html.NameOf(m => m.Options.BulkAction)%>">
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.None, _Encoded("Choose action...").ToString()) %>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Approve, _Encoded("Approve").ToString()) %>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Pend, _Encoded("Pend").ToString()) %>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.MarkAsSpam, _Encoded("Mark as Spam").ToString()) %>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Delete, _Encoded("Remove").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.None, _Encoded("Choose action...").ToString()) %>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Approve, _Encoded("Approve").ToString()) %>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Pend, _Encoded("Pend").ToString()) %>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.MarkAsSpam, _Encoded("Mark as Spam").ToString()) %>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Delete, _Encoded("Remove").ToString())%>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="<%=_Encoded("Apply") %>" />
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="<%: T("Apply") %>" />
|
||||
</fieldset>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="filterResults"><%=_Encoded("Filter:")%></label>
|
||||
<label for="filterResults"><%: T("Filter:")%></label>
|
||||
<select id="filterResults" name="<%=Html.NameOf(m => m.Options.Filter)%>">
|
||||
<%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.All, _Encoded("All Comments").ToString()) %>
|
||||
<%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Approved, _Encoded("Approved Comments").ToString()) %>
|
||||
<%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Pending, _Encoded("Pending Comments").ToString()) %>
|
||||
<%=Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Spam, _Encoded("Spam").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.Filter, CommentIndexFilter.All, _Encoded("All Comments").ToString()) %>
|
||||
<%: Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Approved, _Encoded("Approved Comments").ToString()) %>
|
||||
<%: Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Pending, _Encoded("Pending Comments").ToString()) %>
|
||||
<%: Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Spam, _Encoded("Spam").ToString())%>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%=_Encoded("Apply") %>"/>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%: T("Apply") %>"/>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<table class="items" summary="<%=_Encoded("This is a table of the comments in your application") %>">
|
||||
<table class="items" summary="<%: T("This is a table of the comments in your application") %>">
|
||||
<colgroup>
|
||||
<col id="Col1" />
|
||||
<col id="Col2" />
|
||||
@@ -39,11 +39,11 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
||||
<th scope="col"><%=_Encoded("Status") %></th>
|
||||
<th scope="col"><%=_Encoded("Author") %></th>
|
||||
<th scope="col"><%=_Encoded("Comment") %></th>
|
||||
<th scope="col"><%=_Encoded("Date") %></th>
|
||||
<th scope="col"><%=_Encoded("Commented On") %></th>
|
||||
<th scope="col"><%: T("Status") %></th>
|
||||
<th scope="col"><%: T("Author") %></th>
|
||||
<th scope="col"><%: T("Comment") %></th>
|
||||
<th scope="col"><%: T("Date") %></th>
|
||||
<th scope="col"><%: T("Commented On") %></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -57,27 +57,27 @@
|
||||
<input type="hidden" value="<%=Model.Comments[commentIndex].Comment.Id %>" name="<%=Html.NameOf(m => m.Comments[ci].Comment.Id) %>"/>
|
||||
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Comments[ci].IsChecked) %>"/>
|
||||
</td>
|
||||
<td><% if (commentEntry.Comment.Status == CommentStatus.Spam) { %><%=_Encoded("Spam") %><% }
|
||||
else if (commentEntry.Comment.Status == CommentStatus.Pending) { %><%=_Encoded("Pending") %><% }
|
||||
else { %><%=_Encoded("Approved") %><% } %></td>
|
||||
<td><% if (commentEntry.Comment.Status == CommentStatus.Spam) { %><%: T("Spam") %><% }
|
||||
else if (commentEntry.Comment.Status == CommentStatus.Pending) { %><%: T("Pending") %><% }
|
||||
else { %><%: T("Approved") %><% } %></td>
|
||||
<td><%: commentEntry.Comment.UserName %></td>
|
||||
<td>
|
||||
<% if (commentEntry.Comment.CommentText != null) {%>
|
||||
<%-- todo: (heskew) same text processing comment as on the public display, also need to use the ellipsis character instead of ... --%>
|
||||
<%: commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %><%=_Encoded(" ...") %>
|
||||
<%: commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %><%: T(" ...") %>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%=Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %></td>
|
||||
<td><%=Html.ActionLink(commentEntry.CommentedOn, "Details", new { id = commentEntry.Comment.CommentedOn }) %></td>
|
||||
<td><%: Html.ActionLink(commentEntry.CommentedOn, "Details", new { id = commentEntry.Comment.CommentedOn }) %></td>
|
||||
<td>
|
||||
<ul class="actions">
|
||||
<li class="construct">
|
||||
<a href="<%=Url.Action("Edit", new {commentEntry.Comment.Id}) %>" title="<%=_Encoded("Edit")%>"><%=_Encoded("Edit")%></a>
|
||||
<a href="<%=Url.Action("Edit", new {commentEntry.Comment.Id}) %>" title="<%: T("Edit")%>"><%: T("Edit")%></a>
|
||||
</li>
|
||||
<li class="destruct">
|
||||
<%-- a form in a form doesn't quite work <% using (Html.BeginFormAntiForgeryPost(Url.Action("Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Details"}), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<fieldset>
|
||||
<button type="submit" class="ibutton remove" title="<%=_Encoded("Remove Comment") %>"><%=_Encoded("Remove Comment") %></button>
|
||||
<button type="submit" class="ibutton remove" title="<%: T("Remove Comment") %>"><%: T("Remove Comment") %></button>
|
||||
</fieldset><%
|
||||
} %>
|
||||
--%> </li>
|
||||
|
@@ -1,3 +1,3 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<CommentCountViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Comments.ViewModels"%>
|
||||
<span class="commentcount"><%=_Encoded("{0} Comment{1}", Model.CommentCount, Model.CommentCount == 1 ? "" : "s")%></span>
|
||||
<span class="commentcount"><%: T("{0} Comment{1}", Model.CommentCount, Model.CommentCount == 1 ? "" : "s")%></span>
|
||||
|
@@ -5,35 +5,35 @@
|
||||
<%@ Import Namespace="Orchard.Utility.Extensions" %>
|
||||
<%-- todo: clean up this template - waaay too much going on in here :/ --%><%
|
||||
if (Model.Comments.Count > 0) { %>
|
||||
<h2 id="comments"><%=_Encoded("{0} Comment{1}", Model.Comments.Count, Model.Comments.Count == 1 ? "" : "s")%></h2>
|
||||
<h2 id="comments"><%: T("{0} Comment{1}", Model.Comments.Count, Model.Comments.Count == 1 ? "" : "s")%></h2>
|
||||
<% Html.RenderPartial("ListOfComments", Model.Comments);
|
||||
}
|
||||
|
||||
if (Model.CommentsActive == false) {
|
||||
if (Model.Comments.Count > 0) { %>
|
||||
<p><%=_Encoded("Comments have been disabled for this content.") %></p><%
|
||||
<p><%: T("Comments have been disabled for this content.") %></p><%
|
||||
}
|
||||
}
|
||||
else if(!Request.IsAuthenticated && !AuthorizedFor(Permissions.AddComment)) { %>
|
||||
<h2 id="addacomment"><%=_Encoded("Add a Comment") %></h2>
|
||||
<h2 id="addacomment"><%: T("Add a Comment") %></h2>
|
||||
<p class="info message"><%=T("You must {0} to comment.", Html.ActionLink(T("log on").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = string.Format("{0}#addacomment", Context.Request.RawUrl) }))%></p><%
|
||||
}
|
||||
else { %>
|
||||
<% using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, FormMethod.Post, new { @class = "comment" })) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<h2 id="addacomment"><%=_Encoded("Add a Comment") %></h2><%
|
||||
<%: Html.ValidationSummary() %>
|
||||
<h2 id="addacomment"><%: T("Add a Comment") %></h2><%
|
||||
if (!Request.IsAuthenticated) { %>
|
||||
<fieldset class="who">
|
||||
<div>
|
||||
<label for="Name"><%=_Encoded("Name") %></label>
|
||||
<label for="Name"><%: T("Name") %></label>
|
||||
<input id="Name" class="text" name="Name" type="text" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="Email"><%=_Encoded("Email") %></label>
|
||||
<label for="Email"><%: T("Email") %></label>
|
||||
<input id="Email" class="text" name="Email" type="text" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="SiteName"><%=_Encoded("Url") %></label>
|
||||
<label for="SiteName"><%: T("Url") %></label>
|
||||
<input id="SiteName" class="text" name="SiteName" type="text" />
|
||||
</div>
|
||||
</fieldset><%
|
||||
@@ -41,19 +41,19 @@ else { %>
|
||||
else {
|
||||
var currentUser = Html.Resolve<IAuthenticationService>().GetAuthenticatedUser();
|
||||
%>
|
||||
<%=Html.Hidden("Name", currentUser.UserName ?? "")%>
|
||||
<%=Html.Hidden("Email", currentUser.Email ?? "")%><%
|
||||
<%: Html.Hidden("Name", currentUser.UserName ?? "")%>
|
||||
<%: Html.Hidden("Email", currentUser.Email ?? "")%><%
|
||||
}%>
|
||||
<fieldset class="what">
|
||||
<div>
|
||||
<label for="CommentText"><% if (Request.IsAuthenticated) { %><%=T("Hi, {0}!", Html.Encode(Page.User.Identity.Name)) %><br /><% } %><%=_Encoded("Comment") %></label>
|
||||
<label for="CommentText"><% if (Request.IsAuthenticated) { %><%=T("Hi, {0}!", Html.Encode(Page.User.Identity.Name)) %><br /><% } %><%: T("Comment") %></label>
|
||||
<textarea id="CommentText" rows="10" cols="30" name="CommentText"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<input type="submit" class="button" value="<%=_Encoded("Submit Comment") %>" />
|
||||
<%=Html.Hidden("CommentedOn", Model.ContentItem.Id) %>
|
||||
<%=Html.Hidden("ReturnUrl", Context.Request.ToUrlString()) %>
|
||||
<%=Html.AntiForgeryTokenOrchard() %>
|
||||
<input type="submit" class="button" value="<%: T("Submit Comment") %>" />
|
||||
<%: Html.Hidden("CommentedOn", Model.ContentItem.Id) %>
|
||||
<%: Html.Hidden("ReturnUrl", Context.Request.ToUrlString()) %>
|
||||
<%: Html.AntiForgeryTokenOrchard() %>
|
||||
</div>
|
||||
</fieldset><%
|
||||
}
|
||||
|
@@ -4,13 +4,13 @@
|
||||
<%@ Import Namespace="Orchard.Comments.Models" %>
|
||||
<fieldset>
|
||||
<%-- todo: (heskew) pull the legend and put the link to the comments elsewhere? --%>
|
||||
<legend><%=_Encoded("Comments")%><% if (Model.Comments.Count > 0) { %> <span>– <%=Html.CommentSummaryLinks(T, Model.ContentItem, Model.Comments.Count, Model.PendingComments.Count)%></span><% } %></legend>
|
||||
<legend><%: T("Comments")%><% if (Model.Comments.Count > 0) { %> <span>– <%=Html.CommentSummaryLinks(T, Model.ContentItem, Model.Comments.Count, Model.PendingComments.Count)%></span><% } %></legend>
|
||||
<%--
|
||||
todo: (heskew) can get into a weird state if this is disabled but comments are active so, yeah, comment settings on a content item need to be hashed out
|
||||
<%=Html.EditorFor(m => m.CommentsShown) %>
|
||||
<%: Html.EditorFor(m => m.CommentsShown) %>
|
||||
<label class="forcheckbox" for="CommentsShown"><%=T("Comments are shown. Existing comments are displayed.") %></label>
|
||||
--%>
|
||||
<%=Html.EditorFor(m => m.CommentsActive) %>
|
||||
<%: Html.EditorFor(m => m.CommentsActive) %>
|
||||
<label class="forcheckbox" for="CommentsActive">
|
||||
<%=T("Allow new comments") %></label> <span class="hint forcheckbox">
|
||||
<%=T("Enable to show the comment form. Disabling still allows the existing comments to be shown but does not allow the conversation to continue.")%></span>
|
||||
|
@@ -1,25 +1,25 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<CommentSettingsRecord>" %>
|
||||
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Comments")%></legend>
|
||||
<legend><%: T("Comments")%></legend>
|
||||
<div>
|
||||
<%=Html.EditorFor(m => m.ModerateComments) %>
|
||||
<label class="forcheckbox" for="CommentSettings_ModerateComments"><%=_Encoded("Comments must be approved before they appear")%></label>
|
||||
<%=Html.ValidationMessage("ModerateComments", "*")%>
|
||||
<%: Html.EditorFor(m => m.ModerateComments) %>
|
||||
<label class="forcheckbox" for="CommentSettings_ModerateComments"><%: T("Comments must be approved before they appear")%></label>
|
||||
<%: Html.ValidationMessage("ModerateComments", "*")%>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.EditorFor(m => m.EnableSpamProtection) %>
|
||||
<label class="forcheckbox" for="CommentSettings_EnableSpamProtection"><%=_Encoded("Enable spam protection") %></label>
|
||||
<%=Html.ValidationMessage("EnableSpamProtection", "*")%>
|
||||
<%: Html.EditorFor(m => m.EnableSpamProtection) %>
|
||||
<label class="forcheckbox" for="CommentSettings_EnableSpamProtection"><%: T("Enable spam protection") %></label>
|
||||
<%: Html.ValidationMessage("EnableSpamProtection", "*")%>
|
||||
</div>
|
||||
<div data-controllerid="CommentSettings_EnableSpamProtection">
|
||||
<label for="CommentSettings_AkismetKey"><%=_Encoded("Akismet key") %></label>
|
||||
<%=Html.EditorFor(m => m.AkismetKey) %>
|
||||
<%=Html.ValidationMessage("AkismetKey", "*")%>
|
||||
<label for="CommentSettings_AkismetKey"><%: T("Akismet key") %></label>
|
||||
<%: Html.EditorFor(m => m.AkismetKey) %>
|
||||
<%: Html.ValidationMessage("AkismetKey", "*")%>
|
||||
</div>
|
||||
<div data-controllerid="CommentSettings_EnableSpamProtection">
|
||||
<label for="CommentSettings_AkismetUrl"><%=_Encoded("Akismet endpoint URL") %></label>
|
||||
<%=Html.EditorFor(m => m.AkismetUrl) %>
|
||||
<%=Html.ValidationMessage("AkismetUrl", "*")%>
|
||||
<label for="CommentSettings_AkismetUrl"><%: T("Akismet endpoint URL") %></label>
|
||||
<%: Html.EditorFor(m => m.AkismetUrl) %>
|
||||
<%: Html.ValidationMessage("AkismetUrl", "*")%>
|
||||
</div>
|
||||
</fieldset>
|
@@ -2,21 +2,21 @@
|
||||
<%@ Import Namespace="Orchard.DevTools.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||
<%@ Import Namespace="System.Reflection" %>
|
||||
<h1><%=Html.TitleForPage(T("{0} Content Type", Model.Item.ContentItem.ContentType).ToString(), T("Content").ToString())%></h1>
|
||||
<h2><%=_Encoded("Content Item")%></h2>
|
||||
<h1><%: Html.TitleForPage(T("{0} Content Type", Model.Item.ContentItem.ContentType).ToString(), T("Content").ToString())%></h1>
|
||||
<h2><%: T("Content Item")%></h2>
|
||||
<p>
|
||||
<%=_Encoded("Id:")%>
|
||||
<%: T("Id:")%>
|
||||
<%=Model.Item.ContentItem.Id %><br />
|
||||
<%=_Encoded("Version:")%>
|
||||
<%: T("Version:")%>
|
||||
<%=Model.Item.ContentItem.Version %><br />
|
||||
<%=_Encoded("ContentType:")%>
|
||||
<%: T("ContentType:")%>
|
||||
<%=Model.Item.ContentItem.ContentType %><br />
|
||||
<%=_Encoded("DisplayText:")%>
|
||||
<%: T("DisplayText:")%>
|
||||
<%=Html.ItemDisplayText(Model.Item) %><br />
|
||||
<%=_Encoded("Links:")%>
|
||||
<%: T("Links:")%>
|
||||
<%=Html.ItemDisplayLink(T("view").ToString(), Model.Item) %> <%=Html.ItemEditLink(T("edit").ToString(), Model.Item) %>
|
||||
</p>
|
||||
<h2><%=_Encoded("Content Item Parts")%></h2>
|
||||
<h2><%: T("Content Item Parts")%></h2>
|
||||
<ul>
|
||||
<%foreach (var partType in Model.PartTypes.OrderBy(x => x.Name)) {%>
|
||||
<li><span style="font-weight: bold;">
|
||||
@@ -38,7 +38,7 @@
|
||||
valueItem = (value as IContent).ContentItem;
|
||||
}
|
||||
if (valueItem != null) {
|
||||
%><%=Html.ActionLink(T("{0} #{1} v{2}", valueItem.ContentType, valueItem.Id, valueItem.Version).ToString(), "details", new { valueItem.Id }, new { })%><%
|
||||
%><%: Html.ActionLink(T("{0} #{1} v{2}", valueItem.ContentType, valueItem.Id, valueItem.Version).ToString(), "details", new { valueItem.Id }, new { })%><%
|
||||
}
|
||||
%>
|
||||
<ul style="margin-left: 20px">
|
||||
@@ -99,7 +99,7 @@
|
||||
Zone:<%: editor.ZoneName ?? "(null)" %>
|
||||
Position:<%: editor.Position??"(null)" %>
|
||||
<div style="margin-left: 20px; border: solid 1px black;">
|
||||
<%=Html.EditorFor(x=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
||||
<%: Html.EditorFor(x=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
||||
</div>
|
||||
</li>
|
||||
<%
|
||||
|
@@ -1,17 +1,17 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<ContentIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.DevTools.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Content").ToString()) %></h1>
|
||||
<h2><%=_Encoded("Content Types")%></h2>
|
||||
<h1><%: Html.TitleForPage(T("Content").ToString()) %></h1>
|
||||
<h2><%: T("Content Types")%></h2>
|
||||
<ul>
|
||||
<%foreach(var item in Model.Types.OrderBy(x=>x.Name)){%>
|
||||
<li><%: item.Name %></li>
|
||||
<%}%>
|
||||
</ul>
|
||||
<h2><%=_Encoded("Content Items")%></h2>
|
||||
<h2><%: T("Content Items")%></h2>
|
||||
<ul>
|
||||
<%foreach(var item in Model.Items.OrderBy(x=>x.Id)){%>
|
||||
<li>
|
||||
<%=Html.ActionLink(T("{0}: {1}", item.Id, item.ContentType).ToString(), "details", "content", new{item.Id},new{}) %>
|
||||
<%: Html.ActionLink(T("{0}: {1}", item.Id, item.ContentType).ToString(), "details", "content", new{item.Id},new{}) %>
|
||||
<%=Html.ItemDisplayLink(T("view").ToString(), item) %>
|
||||
<%=Html.ItemEditLink(T("edit").ToString(), item) %>
|
||||
</li>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Dev Tools").ToString()) %></h1>
|
||||
<p><%=Html.ActionLink(T("Contents").ToString(), "Index", "Content") %></p>
|
||||
<p><%=Html.ActionLink(T("Test Unauthorized Request").ToString(), "NotAuthorized", "Home")%></p>
|
||||
<h1><%: Html.TitleForPage(T("Dev Tools").ToString()) %></h1>
|
||||
<p><%: Html.ActionLink(T("Contents").ToString(), "Index", "Content") %></p>
|
||||
<p><%: Html.ActionLink(T("Test Unauthorized Request").ToString(), "NotAuthorized", "Home")%></p>
|
||||
|
@@ -9,4 +9,4 @@
|
||||
<div style="border: solid 1px #ccc;">
|
||||
<% Html.RenderAction("_RenderableAction"); %></div>
|
||||
<p>
|
||||
<%=Html.ActionLink("Test Messages", "SimpleMessage")%></p>
|
||||
<%: Html.ActionLink("Test Messages", "SimpleMessage")%></p>
|
||||
|
@@ -2,28 +2,28 @@
|
||||
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||
<%@ Import Namespace="Orchard.Media.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add Media").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add Media").ToString()) %></h1>
|
||||
<div class="breadCrumbs">
|
||||
<p><%=Html.ActionLink(T("Media Folders").ToString(), "Index") %> >
|
||||
<p><%: Html.ActionLink(T("Media Folders").ToString(), "Index") %> >
|
||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) { %>
|
||||
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
||||
<%: Html.ActionLink(navigation.FolderName, "Edit",
|
||||
new {name = navigation.FolderName, mediaPath = navigation.FolderPath})%> >
|
||||
|
||||
<% } %>
|
||||
<%=_Encoded("Add Media") %></p>
|
||||
<%: T("Add Media") %></p>
|
||||
</div>
|
||||
|
||||
<% using (Html.BeginForm("Add", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="pageTitle"><%=T("File Path <span> - multiple files must be in a zipped folder</span>")%></label>
|
||||
<input id="MediaItemPath" name="MediaItemPath" type="file" class="text" value="<%=_Encoded("Browse") %>" size="64"/>
|
||||
<span class="hint"><%=_Encoded("After your files have been uploaded, you can edit the titles and descriptions.")%></span>
|
||||
<input id="MediaItemPath" name="MediaItemPath" type="file" class="text" value="<%: T("Browse") %>" size="64"/>
|
||||
<span class="hint"><%: T("After your files have been uploaded, you can edit the titles and descriptions.")%></span>
|
||||
<input type="hidden" id="FolderName" name="FolderName" value="<%: Model.FolderName %>" />
|
||||
<input type="hidden" id="MediaPath" name="MediaPath" value="<%: Model.MediaPath %>" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" value="<%=_Encoded("Upload") %>" />
|
||||
<%=Html.AntiForgeryTokenOrchard() %>
|
||||
<input type="submit" class="button primaryAction" value="<%: T("Upload") %>" />
|
||||
<%: Html.AntiForgeryTokenOrchard() %>
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -2,24 +2,24 @@
|
||||
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||
<%@ Import Namespace="Orchard.Media.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add a Folder").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add a Folder").ToString()) %></h1>
|
||||
<div class="breadCrumbs">
|
||||
<p><%=Html.ActionLink(T("Media Folders").ToString(), "Index") %> >
|
||||
<p><%: Html.ActionLink(T("Media Folders").ToString(), "Index") %> >
|
||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) { %>
|
||||
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
||||
<%: Html.ActionLink(navigation.FolderName, "Edit",
|
||||
new {name = navigation.FolderName, mediaPath = navigation.FolderPath}) %> >
|
||||
<% } %>
|
||||
<%=_Encoded("Add a Folder") %></p>
|
||||
<%: T("Add a Folder") %></p>
|
||||
</div>
|
||||
|
||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="Name"><%=_Encoded("Folder Name") %></label>
|
||||
<label for="Name"><%: T("Folder Name") %></label>
|
||||
<input id="Name" class="textMedium" name="Name" type="text" />
|
||||
<input type="hidden" id="MediaPath" name="MediaPath" value="<%: Model.MediaPath %>" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" class="button primaryAction" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -2,40 +2,40 @@
|
||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
||||
<%@ Import Namespace="Orchard.Media.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Folder").ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Folder").ToString())%></h1>
|
||||
|
||||
|
||||
<%--<div class="manage"><%=Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button"})%></div>--%>
|
||||
<%--<div class="manage"><%: Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button"})%></div>--%>
|
||||
|
||||
<div class="breadCrumbs">
|
||||
<p><%=Html.ActionLink(T("Media Folders").ToString(), "Index")%> >
|
||||
<p><%: Html.ActionLink(T("Media Folders").ToString(), "Index")%> >
|
||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
||||
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
||||
<%: Html.ActionLink(navigation.FolderName, "Edit",
|
||||
new {name = navigation.FolderName, mediaPath = navigation.FolderPath})%> >
|
||||
|
||||
<% } %>
|
||||
<%=_Encoded("Manage Folder")%></p>
|
||||
<%: T("Manage Folder")%></p>
|
||||
</div>
|
||||
<div class="folderProperties">
|
||||
<p><%=Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath })%></p>
|
||||
<p><%: Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath })%></p>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="publishActions"><%=_Encoded("Actions:")%></label>
|
||||
<label for="publishActions"><%: T("Actions:")%></label>
|
||||
<select id="Select1" name="publishActions">
|
||||
<option value="1"><%=_Encoded("Remove")%></option>
|
||||
<option value="1"><%: T("Remove")%></option>
|
||||
</select>
|
||||
<input class="button" type="submit" value="<%=_Encoded("Apply") %>" />
|
||||
<input class="button" type="submit" value="<%: T("Apply") %>" />
|
||||
</fieldset>
|
||||
<div class="manage">
|
||||
<%=Html.ActionLink(T("Add media").ToString(), "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button primaryAction" })%>
|
||||
<%=Html.ActionLink(T("Add a folder").ToString(), "Create", new { Model.MediaPath }, new { @class = "button" })%>
|
||||
<%: Html.ActionLink(T("Add media").ToString(), "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button primaryAction" })%>
|
||||
<%: Html.ActionLink(T("Add a folder").ToString(), "Create", new { Model.MediaPath }, new { @class = "button" })%>
|
||||
</div>
|
||||
<fieldset>
|
||||
<table class="items" summary="<%=_Encoded("This is a table of the pages currently available for use in your application.") %>">
|
||||
<table class="items" summary="<%: T("This is a table of the pages currently available for use in your application.") %>">
|
||||
<colgroup>
|
||||
<col id="Col1" />
|
||||
<col id="Col2" />
|
||||
@@ -47,28 +47,28 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
||||
<th scope="col"><%=_Encoded("Name") %></th>
|
||||
<th scope="col"><%=_Encoded("Author") %></th>
|
||||
<th scope="col"><%=_Encoded("Last Updated") %></th>
|
||||
<th scope="col"><%=_Encoded("Type") %></th>
|
||||
<th scope="col"><%=_Encoded("Size") %></th>
|
||||
<th scope="col"><%: T("Name") %></th>
|
||||
<th scope="col"><%: T("Author") %></th>
|
||||
<th scope="col"><%: T("Last Updated") %></th>
|
||||
<th scope="col"><%: T("Type") %></th>
|
||||
<th scope="col"><%: T("Size") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<%foreach (var mediaFile in Model.MediaFiles) {
|
||||
%>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" value="true" name="<%=_Encoded("Checkbox.File.{0}", mediaFile.Name) %>"/>
|
||||
<input type="hidden" value="<%=_Encoded(Model.MediaPath) %>" name="<%=_Encoded(mediaFile.Name) %>" />
|
||||
<input type="checkbox" value="true" name="<%: T("Checkbox.File.{0}", mediaFile.Name) %>"/>
|
||||
<input type="hidden" value="<%: T(Model.MediaPath) %>" name="<%: T(mediaFile.Name) %>" />
|
||||
</td>
|
||||
<td>
|
||||
<%=Html.ActionLink(mediaFile.Name, "EditMedia", new { name = mediaFile.Name,
|
||||
<%: Html.ActionLink(mediaFile.Name, "EditMedia", new { name = mediaFile.Name,
|
||||
lastUpdated = mediaFile.LastUpdated,
|
||||
size = mediaFile.Size,
|
||||
folderName = mediaFile.FolderName,
|
||||
mediaPath = Model.MediaPath })%>
|
||||
</td>
|
||||
<td><%=_Encoded("Orchard User")%></td>
|
||||
<td><%: T("Orchard User")%></td>
|
||||
<td><%=mediaFile.LastUpdated %></td>
|
||||
<td><%: mediaFile.Type %></td>
|
||||
<td><%=mediaFile.Size %></td>
|
||||
@@ -78,23 +78,23 @@
|
||||
%>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" value="true" name="<%=_Encoded("Checkbox.Folder.{0}", mediaFolder.Name) %>"/>
|
||||
<input type="checkbox" value="true" name="<%: T("Checkbox.Folder.{0}", mediaFolder.Name) %>"/>
|
||||
<input type="hidden" value="<%: mediaFolder.MediaPath %>" name="<%: mediaFolder.Name %>" />
|
||||
</td>
|
||||
<td>
|
||||
<img src="<%=ResolveUrl("~/Modules/Orchard.Media/Content/Admin/images/folder.gif")%>" height="16" width="16" class="mediaTypeIcon" alt="<%=_Encoded("Folder") %>" />
|
||||
<%=Html.ActionLink(mediaFolder.Name, "Edit", new { name = mediaFolder.Name, mediaPath = mediaFolder.MediaPath})%>
|
||||
<img src="<%=ResolveUrl("~/Modules/Orchard.Media/Content/Admin/images/folder.gif")%>" height="16" width="16" class="mediaTypeIcon" alt="<%: T("Folder") %>" />
|
||||
<%: Html.ActionLink(mediaFolder.Name, "Edit", new { name = mediaFolder.Name, mediaPath = mediaFolder.MediaPath})%>
|
||||
</td>
|
||||
<td><%=_Encoded("Orchard User")%></td>
|
||||
<td><%: T("Orchard User")%></td>
|
||||
<td><%=mediaFolder.LastUpdated %></td>
|
||||
<td><%=_Encoded("Folder")%></td>
|
||||
<td><%: T("Folder")%></td>
|
||||
<td><%=mediaFolder.Size %></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div class="manage">
|
||||
<%=Html.ActionLink(T("Add media").ToString(), "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button primaryAction" })%>
|
||||
<%=Html.ActionLink(T("Add a folder").ToString(), "Create", new { Model.MediaPath }, new { @class = "button" })%>
|
||||
<%: Html.ActionLink(T("Add media").ToString(), "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button primaryAction" })%>
|
||||
<%: Html.ActionLink(T("Add a folder").ToString(), "Create", new { Model.MediaPath }, new { @class = "button" })%>
|
||||
</div>
|
||||
<% } %>
|
@@ -2,20 +2,20 @@
|
||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
||||
<%@ Import Namespace="Orchard.Media.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit Media - {0}", Model.Name).ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Media - {0}", Model.Name).ToString())%></h1>
|
||||
|
||||
<div class="breadCrumbs">
|
||||
<p><%=Html.ActionLink(T("Media Folders").ToString(), "Index")%> >
|
||||
<p><%: Html.ActionLink(T("Media Folders").ToString(), "Index")%> >
|
||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
||||
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
||||
<%: Html.ActionLink(navigation.FolderName, "Edit",
|
||||
new {name = navigation.FolderName, mediaPath = navigation.FolderPath})%> >
|
||||
<% } %>
|
||||
<%=_Encoded("Edit Media")%></p>
|
||||
<%: T("Edit Media")%></p>
|
||||
</div>
|
||||
|
||||
<div class="sections clearBoth">
|
||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<div class="primary">
|
||||
<div>
|
||||
<img src="<%=Model.PublicUrl%>" class="previewImage" alt="<%: Model.Caption %>" />
|
||||
@@ -30,20 +30,20 @@
|
||||
<label><%=T("Added on: <span>{0} by Orchard User</span>", Model.LastUpdated)%></label>
|
||||
</div>
|
||||
<div>
|
||||
<label for="embedPath"><%=_Encoded("Embed:")%></label>
|
||||
<input id="embedPath" class="textMedium" name="embedPath" type="text" readonly="readonly" value="<%=_Encoded("<img src=\"{0}\" width=\"{1}\" height=\"{2}\" alt=\"{3}\" />", ResolveUrl("~/Media/" + Model.RelativePath + "/" + Model.Name), 500, 375, Model.Caption)%>" />
|
||||
<span class="hint"><%=_Encoded("Copy this html to add this image to your site.") %></span>
|
||||
<label for="embedPath"><%: T("Embed:")%></label>
|
||||
<input id="embedPath" class="textMedium" name="embedPath" type="text" readonly="readonly" value="<%: T("<img src=\"{0}\" width=\"{1}\" height=\"{2}\" alt=\"{3}\" />", ResolveUrl("~/Media/" + Model.RelativePath + "/" + Model.Name), 500, 375, Model.Caption)%>" />
|
||||
<span class="hint"><%: T("Copy this html to add this image to your site.") %></span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="Name"><%=_Encoded("Name")%></label>
|
||||
<label for="Name"><%: T("Name")%></label>
|
||||
<input id="Name" name="Name" type="hidden" value="<%: Model.Name %>"/>
|
||||
<input id="NewName" class="textMedium" name="NewName" type="text" value="<%: Model.Name %>"/>
|
||||
</div>
|
||||
<div>
|
||||
<label for="Caption"><%=_Encoded("Caption")%></label>
|
||||
<label for="Caption"><%: T("Caption")%></label>
|
||||
<input id="Caption" class="textMedium" name="Caption" type="text" value="<%= Model.Caption %>"/>
|
||||
<span class="hint"><%=_Encoded("This will be used for the image alt tag.")%></span>
|
||||
<span class="hint"><%: T("This will be used for the image alt tag.")%></span>
|
||||
<input type="hidden" id="LastUpdated" name="LastUpdated" value="<%= Model.LastUpdated %>"/>
|
||||
<input type="hidden" id="Size" name="Size" value="<%= Model.Size %>"/>
|
||||
<input type="hidden" id="FolderName" name="FolderName" value="<%= Model.FolderName %>"/>
|
||||
@@ -51,12 +51,12 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" name="submit.Save" value="<%=_Encoded("Save") %>" />
|
||||
<%--<input type="submit" class="button" name="submit.Delete" value="<%=_Encoded("Remove") %>" />--%>
|
||||
<input type="submit" class="button primaryAction" name="submit.Save" value="<%: T("Save") %>" />
|
||||
<%--<input type="submit" class="button" name="submit.Delete" value="<%: T("Remove") %>" />--%>
|
||||
</fieldset>
|
||||
</div>
|
||||
<%--<div class="secondary" style="border:1px solid #ff0000;">
|
||||
<h2><%=_Encoded("Preview")%></h2>
|
||||
<h2><%: T("Preview")%></h2>
|
||||
<div><img src="<%=ResolveUrl("~/Media/" + Html.Encode(Model.RelativePath + "/" + Model.Name))%>" class="previewImage" alt="<%: Model.Caption %>" /></div>
|
||||
<ul>
|
||||
<%-- todo: make these real (including markup)
|
||||
@@ -64,9 +64,9 @@
|
||||
<li><label><%=T("Size: <span>{0}</span>", Model.Size)%></label></li>
|
||||
<li><label><%=T("Added on: <span>{0} by Orchard User</span>", Model.LastUpdated)%></label></li>
|
||||
<li>
|
||||
<label for="embedPath"><%=_Encoded("Embed:")%></label>
|
||||
<input id="embedPath" class="text" name="embedPath" type="text" readonly="readonly" value="<%=_Encoded("<img src=\"{0}\" width=\"{1}\" height=\"{2}\" alt=\"{3}\" />", ResolveUrl("~/Media/" + Model.RelativePath + "/" + Model.Name), 500, 375, Model.Caption) %>" />
|
||||
<span class="hint"><%=_Encoded("Copy this html to add this image to your site.") %></p>
|
||||
<label for="embedPath"><%: T("Embed:")%></label>
|
||||
<input id="embedPath" class="text" name="embedPath" type="text" readonly="readonly" value="<%: T("<img src=\"{0}\" width=\"{1}\" height=\"{2}\" alt=\"{3}\" />", ResolveUrl("~/Media/" + Model.RelativePath + "/" + Model.Name), 500, 375, Model.Caption) %>" />
|
||||
<span class="hint"><%: T("Copy this html to add this image to your site.") %></p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>--%>
|
||||
|
@@ -2,26 +2,26 @@
|
||||
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||
<%@ Import Namespace="Orchard.Media.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Folder Properties").ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Folder Properties").ToString())%></h1>
|
||||
<div class="breadCrumbs">
|
||||
<p><%=Html.ActionLink(T("Media Folders").ToString(), "Index")%> >
|
||||
<p><%: Html.ActionLink(T("Media Folders").ToString(), "Index")%> >
|
||||
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
||||
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
||||
<%: Html.ActionLink(navigation.FolderName, "Edit",
|
||||
new {name = navigation.FolderName, mediaPath = navigation.FolderPath})%> >
|
||||
|
||||
<% } %>
|
||||
<%=_Encoded("Folder Properties")%></p>
|
||||
<%: T("Folder Properties")%></p>
|
||||
</div>
|
||||
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="Name"><%=_Encoded("Folder Name:") %></label>
|
||||
<label for="Name"><%: T("Folder Name:") %></label>
|
||||
<input id="MediaPath" name="MediaPath" type="hidden" value="<%: Model.MediaPath %>" />
|
||||
<input id="Name" class="textMedium" name="Name" type="text" value="<%: Model.Name %>" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" name="submit.Save" value="<%=_Encoded("Save") %>" />
|
||||
<%--<input type="submit" class="button buttonFocus roundCorners" name="submit.Delete" value="<%=_Encoded("Remove") %>" />--%>
|
||||
<input type="submit" class="button primaryAction" name="submit.Save" value="<%: T("Save") %>" />
|
||||
<%--<input type="submit" class="button buttonFocus roundCorners" name="submit.Delete" value="<%: T("Remove") %>" />--%>
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -1,18 +1,18 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<MediaFolderIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Media.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Media Folders").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Media Folders").ToString()) %></h1>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="publishActions"><%=_Encoded("Actions:") %></label>
|
||||
<label for="publishActions"><%: T("Actions:") %></label>
|
||||
<select id="Select1" name="publishActions">
|
||||
<option value="1"><%=_Encoded("Remove")%></option>
|
||||
<option value="1"><%: T("Remove")%></option>
|
||||
</select>
|
||||
<input class="button roundCorners" type="submit" value="<%=_Encoded("Apply") %>" />
|
||||
<input class="button roundCorners" type="submit" value="<%: T("Apply") %>" />
|
||||
</fieldset>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a folder").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a folder").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<fieldset>
|
||||
<table class="items" summary="<%=_Encoded("This is a table of the media folders currently available for use in your application.") %>">
|
||||
<table class="items" summary="<%: T("This is a table of the media folders currently available for use in your application.") %>">
|
||||
<colgroup>
|
||||
<col id="Col1" />
|
||||
<col id="Col2" />
|
||||
@@ -24,29 +24,29 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
||||
<th scope="col"><%=_Encoded("Name")%></th>
|
||||
<th scope="col"><%=_Encoded("Author") %></th>
|
||||
<th scope="col"><%=_Encoded("Last Updated") %></th>
|
||||
<th scope="col"><%=_Encoded("Type") %></th>
|
||||
<th scope="col"><%=_Encoded("Size") %></th>
|
||||
<th scope="col"><%: T("Name")%></th>
|
||||
<th scope="col"><%: T("Author") %></th>
|
||||
<th scope="col"><%: T("Last Updated") %></th>
|
||||
<th scope="col"><%: T("Type") %></th>
|
||||
<th scope="col"><%: T("Size") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<%foreach (var mediaFolder in Model.MediaFolders) {
|
||||
%>
|
||||
<tr>
|
||||
<td><input type="checkbox" value="true" name="<%=_Encoded("Checkbox.{0}", mediaFolder.Name) %>"/></td>
|
||||
<td><input type="checkbox" value="true" name="<%: T("Checkbox.{0}", mediaFolder.Name) %>"/></td>
|
||||
<%-- todo: (heskew) this URL needs to be determined from current module location --%>
|
||||
<td>
|
||||
<img src="<%=ResolveUrl("~/Modules/Orchard.Media/Content/Admin/images/folder.gif")%>" height="16" width="16" class="mediaTypeIcon" alt="<%=_Encoded("Folder") %>" />
|
||||
<%=Html.ActionLink(mediaFolder.Name, "Edit", new { name = mediaFolder.Name, mediaPath = mediaFolder.MediaPath })%>
|
||||
<img src="<%=ResolveUrl("~/Modules/Orchard.Media/Content/Admin/images/folder.gif")%>" height="16" width="16" class="mediaTypeIcon" alt="<%: T("Folder") %>" />
|
||||
<%: Html.ActionLink(mediaFolder.Name, "Edit", new { name = mediaFolder.Name, mediaPath = mediaFolder.MediaPath })%>
|
||||
</td>
|
||||
<td><%=_Encoded("Orchard User")%></td>
|
||||
<td><%: T("Orchard User")%></td>
|
||||
<td><%=mediaFolder.LastUpdated %></td>
|
||||
<td><%=_Encoded("Folder")%></td>
|
||||
<td><%: T("Folder")%></td>
|
||||
<td><%=mediaFolder.Size %></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a folder").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a folder").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<% } %>
|
@@ -1,10 +1,10 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<MediaSettingsRecord>" %>
|
||||
<%@ Import Namespace="Orchard.Media.Models"%>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Media")%></legend>
|
||||
<legend><%: T("Media")%></legend>
|
||||
<div>
|
||||
<label for="MediaSettings_RootMediaFolder">Media folder</label>
|
||||
<%=Html.EditorFor(x=>x.RootMediaFolder) %>
|
||||
<%=Html.ValidationMessage("RootMediaFolder", "*")%>
|
||||
<%: Html.EditorFor(x=>x.RootMediaFolder) %>
|
||||
<%: Html.ValidationMessage("RootMediaFolder", "*")%>
|
||||
</div>
|
||||
</fieldset>
|
@@ -25,7 +25,7 @@
|
||||
%>
|
||||
<tr class="<%=contentTypeClass %>">
|
||||
<td>
|
||||
<%= Html.ActionLink(item.Name, "ContentTypeList", new {id=item.Name})%>
|
||||
<%: Html.ActionLink(item.Name, "ContentTypeList", new {id=item.Name})%>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -68,7 +68,7 @@ using (Html.BeginFormAntiForgeryPost(Url.Action("Save",new {id=Model.SelectedCon
|
||||
|
||||
</table>
|
||||
<p>
|
||||
<input type="submit" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" value="<%: T("Save") %>" />
|
||||
</p>
|
||||
<% } %>
|
||||
</div>
|
||||
|
@@ -1,9 +1,9 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ModuleAddViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Modules.ViewModels" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<h1><%=Html.TitleForPage(T("Install a Module").ToString()) %></h1><%
|
||||
<h1><%: Html.TitleForPage(T("Install a Module").ToString()) %></h1><%
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("add", new { area = "Orchard.Modules" }), FormMethod.Post, new { enctype = "multipart/form-data" })) { %>
|
||||
<%=Html.ValidationSummary()
|
||||
<%: Html.ValidationSummary()
|
||||
%><fieldset>
|
||||
<label for="ModulePackage"><%:T("Module Package") %></label>
|
||||
<input type="file" id="ModulePackage" name="ModulePackage" />
|
||||
|
@@ -6,7 +6,7 @@
|
||||
Html.RegisterStyle("admin.css");
|
||||
Html.RegisterStyle("jquery.switchable.css");
|
||||
Html.RegisterFootScript("jquery.switchable.js"); %>
|
||||
<h1><%=Html.TitleForPage(T("Manage Features").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Features").ToString()) %></h1>
|
||||
<% if (Model.Features.Count() > 0) { %>
|
||||
<ul class="features summary-view switchable"><%
|
||||
var featureGroups = Model.Features.OrderBy(f => f.Descriptor.Category).GroupBy(f => f.Descriptor.Category);
|
||||
@@ -40,7 +40,7 @@
|
||||
<p class="description"><%:feature.Descriptor.Description %></p><%
|
||||
if (feature.Descriptor.Dependencies != null) { %>
|
||||
<div class="dependencies">
|
||||
<h4><%=_Encoded("Depends on:")%></h4>
|
||||
<h4><%: T("Depends on:")%></h4>
|
||||
<%=Html.UnorderedList(
|
||||
feature.Descriptor.Dependencies.OrderBy(s => s),
|
||||
(s, i) => Html.Link(s, string.Format("#{0}", s.AsFeatureId(n => T(n)))),
|
||||
@@ -54,15 +54,15 @@
|
||||
<div class="actions"><%
|
||||
if (feature.IsEnabled) {
|
||||
using (Html.BeginFormAntiForgeryPost(string.Format("{0}", Url.Action("Disable", new { area = "Orchard.Modules" })), FormMethod.Post, new {@class = "inline link"})) { %>
|
||||
<%=Html.Hidden("id", feature.Descriptor.Name, new { id = "" })%>
|
||||
<%=Html.Hidden("force", true)%>
|
||||
<button type="submit"><%=_Encoded("Disable") %></button><%
|
||||
<%: Html.Hidden("id", feature.Descriptor.Name, new { id = "" })%>
|
||||
<%: Html.Hidden("force", true)%>
|
||||
<button type="submit"><%: T("Disable") %></button><%
|
||||
}
|
||||
} else {
|
||||
using (Html.BeginFormAntiForgeryPost(string.Format("{0}", Url.Action("Enable", new { area = "Orchard.Modules" })), FormMethod.Post, new {@class = "inline link"})) { %>
|
||||
<%=Html.Hidden("id", feature.Descriptor.Name, new { id = "" })%>
|
||||
<%=Html.Hidden("force", true)%>
|
||||
<button type="submit"><%=_Encoded("Enable") %></button><%
|
||||
<%: Html.Hidden("id", feature.Descriptor.Name, new { id = "" })%>
|
||||
<%: Html.Hidden("force", true)%>
|
||||
<button type="submit"><%: T("Enable") %></button><%
|
||||
}
|
||||
} %>
|
||||
</div><%
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<%@ Import Namespace="Orchard.Modules.Extensions" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Modules.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Installed Modules").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Installed Modules").ToString()) %></h1>
|
||||
<div class="manage"><%: Html.ActionLink(T("Install a module"), "Add", null, new { @class = "button primaryAction" })%></div>
|
||||
<% if (Model.Modules.Count() > 0) { %>
|
||||
<ul class="contentItems"><%
|
||||
|
@@ -1,45 +1,45 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<TenantAddViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.MultiTenancy.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add New Tenant").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add New Tenant").ToString()) %></h1>
|
||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<div>
|
||||
<label for="Name"><%=_Encoded("Name") %></label>
|
||||
<label for="Name"><%: T("Name") %></label>
|
||||
<input id="Name" class="textMedium" name="Name" type="text" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="RequestUrlHost"><%=_Encoded("Host") %></label>
|
||||
<label for="RequestUrlHost"><%: T("Host") %></label>
|
||||
<input id="RequestUrlHost" class="textMedium" name="RequestUrlHost" type="text" />
|
||||
<span class="hint"><%=_Encoded("Example: If host is \"orchardproject.net\", the tenant site URL is \"http://orchardproject.net/\"") %></span>
|
||||
<span class="hint"><%: T("Example: If host is \"orchardproject.net\", the tenant site URL is \"http://orchardproject.net/\"") %></span>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Database Setup") %></legend>
|
||||
<legend><%: T("Database Setup") %></legend>
|
||||
<div>
|
||||
<%=Html.RadioButtonFor(svm => svm.DataProvider, "", new { id = "tenantDatabaseOption" })%>
|
||||
<label for="tenantDatabaseOption" class="forcheckbox"><%=_Encoded("Allow the tenant to set up the database") %></label>
|
||||
<%: Html.RadioButtonFor(svm => svm.DataProvider, "", new { id = "tenantDatabaseOption" })%>
|
||||
<label for="tenantDatabaseOption" class="forcheckbox"><%: T("Allow the tenant to set up the database") %></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButtonFor(svm => svm.DataProvider, "SQLite", new { id = "builtinDatabaseOption" })%>
|
||||
<label for="builtinDatabaseOption" class="forcheckbox"><%=_Encoded("Use built-in data storage (SQLite)") %></label>
|
||||
<%: Html.RadioButtonFor(svm => svm.DataProvider, "SQLite", new { id = "builtinDatabaseOption" })%>
|
||||
<label for="builtinDatabaseOption" class="forcheckbox"><%: T("Use built-in data storage (SQLite)") %></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButtonFor(svm => svm.DataProvider, "SqlServer", new { id = "sqlDatabaseOption" })%>
|
||||
<label for="sqlDatabaseOption" class="forcheckbox"><%=_Encoded("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<%: Html.RadioButtonFor(svm => svm.DataProvider, "SqlServer", new { id = "sqlDatabaseOption" })%>
|
||||
<label for="sqlDatabaseOption" class="forcheckbox"><%: T("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<span data-controllerid="sqlDatabaseOption">
|
||||
<label for="DatabaseConnectionString"><%=_Encoded("Connection string") %></label>
|
||||
<%=Html.EditorFor(svm => svm.DatabaseConnectionString)%>
|
||||
<span class="hint"><%=_Encoded("Example:") %><br /><%=_Encoded("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password") %></span>
|
||||
<label for="DatabaseConnectionString"><%: T("Connection string") %></label>
|
||||
<%: Html.EditorFor(svm => svm.DatabaseConnectionString)%>
|
||||
<span class="hint"><%: T("Example:") %><br /><%: T("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password") %></span>
|
||||
</span>
|
||||
<span data-controllerid="sqlDatabaseOption">
|
||||
<label for="DatabaseTablePrefix"><%=_Encoded("Database Table Prefix") %></label>
|
||||
<%=Html.EditorFor(svm => svm.DatabaseTablePrefix)%>
|
||||
<label for="DatabaseTablePrefix"><%: T("Database Table Prefix") %></label>
|
||||
<%: Html.EditorFor(svm => svm.DatabaseTablePrefix)%>
|
||||
</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" class="button primaryAction" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -2,6 +2,6 @@
|
||||
<%@ Import Namespace="Orchard.Environment.Configuration" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% using(Html.BeginFormAntiForgeryPost(Url.Action("enable", new {area = "Orchard.MultiTenancy"}), FormMethod.Post, new {@class = "inline link"})) { %>
|
||||
<%=Html.HiddenFor(ss => ss.Name) %>
|
||||
<button type="submit"><%=_Encoded("Resume")%></button><%
|
||||
<%: Html.HiddenFor(ss => ss.Name) %>
|
||||
<button type="submit"><%: T("Resume")%></button><%
|
||||
} %>
|
@@ -1,3 +1,3 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ShellSettings>" %>
|
||||
<%@ Import Namespace="Orchard.Environment.Configuration" %>
|
||||
<%=Html.ActionLink(T("Make Valid*").ToString(), "_setup", new {tenantName = Model.Name, area = "Orchard.MultiTenancy"}) %>
|
||||
<%: Html.ActionLink(T("Make Valid*").ToString(), "_setup", new {tenantName = Model.Name, area = "Orchard.MultiTenancy"}) %>
|
||||
|
@@ -2,6 +2,6 @@
|
||||
<%@ Import Namespace="Orchard.Environment.Configuration" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% using(Html.BeginFormAntiForgeryPost(Url.Action("disable", new {area = "Orchard.MultiTenancy"}), FormMethod.Post, new {@class = "inline link"})) { %>
|
||||
<%=Html.HiddenFor(ss => ss.Name) %>
|
||||
<button type="submit"><%=_Encoded("Suspend") %></button><%
|
||||
<%: Html.HiddenFor(ss => ss.Name) %>
|
||||
<button type="submit"><%: T("Suspend") %></button><%
|
||||
} %>
|
@@ -2,48 +2,48 @@
|
||||
<%@ Import Namespace="Orchard.Environment.Configuration" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.MultiTenancy.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit Tenant").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Tenant").ToString()) %></h1>
|
||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<div>
|
||||
<h2><%: Model.Name %></h2>
|
||||
</div>
|
||||
<div>
|
||||
<label for="RequestUrlHost"><%=_Encoded("Host") %></label>
|
||||
<%=Html.TextBoxFor(m => m.RequestUrlHost, new {@class = "textMedium"}) %>
|
||||
<span class="hint"><%=_Encoded("Example: If host is \"orchardproject.net\", the tenant site URL is \"http://orchardproject.net/\"") %></span>
|
||||
<label for="RequestUrlHost"><%: T("Host") %></label>
|
||||
<%: Html.TextBoxFor(m => m.RequestUrlHost, new {@class = "textMedium"}) %>
|
||||
<span class="hint"><%: T("Example: If host is \"orchardproject.net\", the tenant site URL is \"http://orchardproject.net/\"") %></span>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Database Setup") %></legend><%
|
||||
<legend><%: T("Database Setup") %></legend><%
|
||||
if (Model.State.CurrentState != TenantState.State.Uninitialized) { %>
|
||||
<div class="warning message"><%=_Encoded("Warning: If you don't know what you're doing you *will* (likely) send this tenant into a downward spiral of irrecoverable disrepair. Have a nice day.")%></div><%
|
||||
<div class="warning message"><%: T("Warning: If you don't know what you're doing you *will* (likely) send this tenant into a downward spiral of irrecoverable disrepair. Have a nice day.")%></div><%
|
||||
} else { %>
|
||||
<div>
|
||||
<%=Html.RadioButtonFor(svm => svm.DataProvider, "", new { id = "tenantDatabaseOption" })%>
|
||||
<label for="tenantDatabaseOption" class="forcheckbox"><%=_Encoded("Allow the tenant to set up the database") %></label>
|
||||
<%: Html.RadioButtonFor(svm => svm.DataProvider, "", new { id = "tenantDatabaseOption" })%>
|
||||
<label for="tenantDatabaseOption" class="forcheckbox"><%: T("Allow the tenant to set up the database") %></label>
|
||||
</div><%
|
||||
} %>
|
||||
<div>
|
||||
<%=Html.RadioButtonFor(svm => svm.DataProvider, "SQLite", new { id = "builtinDatabaseOption" })%>
|
||||
<label for="builtinDatabaseOption" class="forcheckbox"><%=_Encoded("Use built-in data storage (SQLite)") %></label>
|
||||
<%: Html.RadioButtonFor(svm => svm.DataProvider, "SQLite", new { id = "builtinDatabaseOption" })%>
|
||||
<label for="builtinDatabaseOption" class="forcheckbox"><%: T("Use built-in data storage (SQLite)") %></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButtonFor(svm => svm.DataProvider, "SqlServer", new { id = "sqlDatabaseOption" })%>
|
||||
<label for="sqlDatabaseOption" class="forcheckbox"><%=_Encoded("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<%: Html.RadioButtonFor(svm => svm.DataProvider, "SqlServer", new { id = "sqlDatabaseOption" })%>
|
||||
<label for="sqlDatabaseOption" class="forcheckbox"><%: T("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<span data-controllerid="sqlDatabaseOption">
|
||||
<label for="DatabaseConnectionString"><%=_Encoded("Connection string") %></label>
|
||||
<%=Html.TextBoxFor(svm => svm.DatabaseConnectionString, new {@class = "large text"})%>
|
||||
<span class="hint"><%=_Encoded("Example:") %><br /><%=_Encoded("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password") %></span>
|
||||
<label for="DatabaseConnectionString"><%: T("Connection string") %></label>
|
||||
<%: Html.TextBoxFor(svm => svm.DatabaseConnectionString, new {@class = "large text"})%>
|
||||
<span class="hint"><%: T("Example:") %><br /><%: T("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password") %></span>
|
||||
</span>
|
||||
<span data-controllerid="sqlDatabaseOption">
|
||||
<label for="DatabaseTablePrefix"><%=_Encoded("Database Table Prefix") %></label>
|
||||
<%=Html.EditorFor(svm => svm.DatabaseTablePrefix)%>
|
||||
<label for="DatabaseTablePrefix"><%: T("Database Table Prefix") %></label>
|
||||
<%: Html.EditorFor(svm => svm.DatabaseTablePrefix)%>
|
||||
</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" class="button primaryAction" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -2,8 +2,8 @@
|
||||
<%@ Import Namespace="Orchard.MultiTenancy.Extensions" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.MultiTenancy.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("List of Site's Tenants").ToString())%></h1>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a Tenant").ToString(), "Add", new {area = "Orchard.MultiTenancy"}, new { @class = "button primaryAction" })%></div>
|
||||
<h1><%: Html.TitleForPage(T("List of Site's Tenants").ToString())%></h1>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a Tenant").ToString(), "Add", new {area = "Orchard.MultiTenancy"}, new { @class = "button primaryAction" })%></div>
|
||||
<ul class="contentItems tenants"><%
|
||||
foreach (var tenant in Model.TenantSettings) { %>
|
||||
<li class="tenant <%=tenant.State.CurrentState %>">
|
||||
@@ -17,13 +17,13 @@
|
||||
<div class="related"><%
|
||||
if (!string.Equals(tenant.Name, "default", StringComparison.OrdinalIgnoreCase)) { //todo: (heskew) base this off the view model so logic on what can be removed and have its state changed stays in the controller
|
||||
var t = tenant; %>
|
||||
<%=Html.DisplayFor(m => t, string.Format("ActionsFor{0}", tenant.State.CurrentState), "") %><%=_Encoded(" | ")%><%
|
||||
<%=Html.DisplayFor(m => t, string.Format("ActionsFor{0}", tenant.State.CurrentState), "") %><%: T(" | ")%><%
|
||||
} %>
|
||||
<%=Html.ActionLink(T("Edit").ToString(), "Edit", new {name = tenant.Name, area = "Orchard.MultiTenancy"}) %><%
|
||||
<%: Html.ActionLink(T("Edit").ToString(), "Edit", new {name = tenant.Name, area = "Orchard.MultiTenancy"}) %><%
|
||||
if (!string.Equals(tenant.Name, "default", StringComparison.OrdinalIgnoreCase)) { //todo: (heskew) base this off the view model so logic on what can be removed and have its state changed stays in the controller
|
||||
%><%--
|
||||
delete not implemented! <%=_Encoded(" | ")%>
|
||||
<%=Html.ActionLink(T("Remove").ToString(), "delete", new {tenantName = tenant.Name, area = "Orchard.MultiTenancy"}) %>--%><%
|
||||
delete not implemented! <%: T(" | ")%>
|
||||
<%: Html.ActionLink(T("Remove").ToString(), "delete", new {tenantName = tenant.Name, area = "Orchard.MultiTenancy"}) %>--%><%
|
||||
} %>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,12 +1,12 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<PageCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Pages.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add Page").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add Page").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.Page) %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorForItem(m => m.Page) %>
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(m => m.PromoteToHomePage) %>
|
||||
<label for="PromoteToHomePage" class="forcheckbox"><%=_Encoded("Set as home page") %></label>
|
||||
<%: Html.EditorFor(m => m.PromoteToHomePage) %>
|
||||
<label for="PromoteToHomePage" class="forcheckbox"><%: T("Set as home page") %></label>
|
||||
</fieldset><%
|
||||
} %>
|
@@ -1,12 +1,12 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<PageEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Pages.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit Page").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Page").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.Page) %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorForItem(m => m.Page) %>
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(m => m.PromoteToHomePage) %>
|
||||
<label for="PromoteToHomePage" class="forcheckbox"><%=_Encoded("Set as home page") %></label>
|
||||
<%: Html.EditorFor(m => m.PromoteToHomePage) %>
|
||||
<label for="PromoteToHomePage" class="forcheckbox"><%: T("Set as home page") %></label>
|
||||
</fieldset><%
|
||||
} %>
|
@@ -4,29 +4,29 @@
|
||||
<%@ Import Namespace="Orchard.Core.Common.Models"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Pages.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Pages").ToString())%></h1>
|
||||
<%-- todo: Add helper text here when ready. <p><%=_Encoded("Possible text about setting up a page goes here.")%></p>--%>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a page").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div><%
|
||||
<h1><%: Html.TitleForPage(T("Manage Pages").ToString())%></h1>
|
||||
<%-- todo: Add helper text here when ready. <p><%: T("Possible text about setting up a page goes here.")%></p>--%>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a page").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div><%
|
||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary()%>
|
||||
<%: Html.ValidationSummary()%>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="publishActions"><%=_Encoded("Actions:")%></label>
|
||||
<label for="publishActions"><%: T("Actions:")%></label>
|
||||
<select id="publishActions" name="<%=Html.NameOf(m => m.Options.BulkAction) %>">
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.None, _Encoded("Choose action...").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.PublishNow, _Encoded("Publish Now").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.Unpublish, _Encoded("Unpublish").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.Delete, _Encoded("Remove").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.None, _Encoded("Choose action...").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.PublishNow, _Encoded("Publish Now").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.Unpublish, _Encoded("Unpublish").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.Delete, _Encoded("Remove").ToString())%>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="<%=_Encoded("Apply") %>" />
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="<%: T("Apply") %>" />
|
||||
</fieldset>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="filterResults"><%=_Encoded("Filter:")%></label>
|
||||
<label for="filterResults"><%: T("Filter:")%></label>
|
||||
<select id="filterResults" name="<%=Html.NameOf(m => m.Options.Filter) %>">
|
||||
<%=Html.SelectOption(Model.Options.Filter, PagesFilter.All, _Encoded("All Pages").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.Filter, PagesFilter.Published, _Encoded("Published Pages").ToString())%>
|
||||
<%=Html.SelectOption(Model.Options.Filter, PagesFilter.Offline, _Encoded("Offline Pages").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.Filter, PagesFilter.All, _Encoded("All Pages").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.Filter, PagesFilter.Published, _Encoded("Published Pages").ToString())%>
|
||||
<%: Html.SelectOption(Model.Options.Filter, PagesFilter.Offline, _Encoded("Offline Pages").ToString())%>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%=_Encoded("Apply") %>"/>
|
||||
<input class="button" type="submit" name="submit.Filter" value="<%: T("Apply") %>"/>
|
||||
</fieldset>
|
||||
<fieldset class="pageList">
|
||||
<ul class="contentItems"><%
|
||||
@@ -38,54 +38,54 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<div class="properties">
|
||||
<input type="hidden" value="<%=Model.PageEntries[pageIndex].PageId %>" name="<%=Html.NameOf(m => m.PageEntries[pi].PageId) %>"/>
|
||||
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.PageEntries[pi].IsChecked) %>"/>
|
||||
<h3><%=Html.ActionLink(pageEntry.Page.Title, "Edit", new { id = pageEntry.PageId })%></h3>
|
||||
<h3><%: Html.ActionLink(pageEntry.Page.Title, "Edit", new { id = pageEntry.PageId })%></h3>
|
||||
<ul class="pageStatus">
|
||||
<li><%
|
||||
// Published or not
|
||||
if (pageEntry.Page.HasPublished) { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Pages/Content/Admin/images/online.gif") %>" alt="<%=_Encoded("Online") %>" title="<%=_Encoded("The page is currently online") %>" /><%=_Encoded("Published") %> | <%
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Pages/Content/Admin/images/online.gif") %>" alt="<%: T("Online") %>" title="<%: T("The page is currently online") %>" /><%: T("Published") %> | <%
|
||||
}
|
||||
else { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Pages/Content/Admin/images/offline.gif") %>" alt="<%=_Encoded("Offline") %>" title="<%=_Encoded("The page is currently offline") %>" /><%=_Encoded("Not Published")%> | <%
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Pages/Content/Admin/images/offline.gif") %>" alt="<%: T("Offline") %>" title="<%: T("The page is currently offline") %>" /><%: T("Not Published")%> | <%
|
||||
} %>
|
||||
</li>
|
||||
<li><%
|
||||
// Does the page have a draft
|
||||
if (pageEntry.Page.HasDraft) { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Pages/Content/Admin/images/draft.gif") %>" alt="<%=_Encoded("Draft") %>" title="<%=_Encoded("The page has a draft") %>" /><%=_Encoded("Draft")%> | <%
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Pages/Content/Admin/images/draft.gif") %>" alt="<%: T("Draft") %>" title="<%: T("The page has a draft") %>" /><%: T("Draft")%> | <%
|
||||
}
|
||||
else { %>
|
||||
<%=_Encoded("No Draft")%> | <%
|
||||
<%: T("No Draft")%> | <%
|
||||
} %>
|
||||
</li>
|
||||
<li><%
|
||||
if (pageEntry.Page.ScheduledPublishUtc.HasValue && pageEntry.Page.ScheduledPublishUtc.Value > DateTime.UtcNow) { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Pages/Content/Admin/images/scheduled.gif") %>" alt="<%=_Encoded("Scheduled") %>" title="<%=_Encoded("The page is scheduled for publishing") %>" /><%=_Encoded("Scheduled")%>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Pages/Content/Admin/images/scheduled.gif") %>" alt="<%: T("Scheduled") %>" title="<%: T("The page is scheduled for publishing") %>" /><%: T("Scheduled")%>
|
||||
<%=Html.DateTime(pageEntry.Page.ScheduledPublishUtc.Value, "M/d/yyyy h:mm tt")%><%
|
||||
}
|
||||
else if (pageEntry.Page.IsPublished) { %>
|
||||
<%=_Encoded("Published: ") + Html.DateTimeRelative(pageEntry.Page.As<ICommonAspect>().VersionPublishedUtc.Value) %><%
|
||||
<%: T("Published: ") + Html.DateTimeRelative(pageEntry.Page.As<ICommonAspect>().VersionPublishedUtc.Value) %><%
|
||||
}
|
||||
else { %>
|
||||
<%=_Encoded("Last modified: ") + Html.DateTimeRelative(pageEntry.Page.As<ICommonAspect>().ModifiedUtc.Value) %><%
|
||||
<%: T("Last modified: ") + Html.DateTimeRelative(pageEntry.Page.As<ICommonAspect>().ModifiedUtc.Value) %><%
|
||||
} %> |
|
||||
</li>
|
||||
<li><%=_Encoded("By {0}", pageEntry.Page.Creator.UserName)%></li>
|
||||
<li><%: T("By {0}", pageEntry.Page.Creator.UserName)%></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="related"><%
|
||||
if (pageEntry.Page.HasPublished) { %>
|
||||
<%=Html.ActionLink("View", "Item", new { controller = "Page", slug = pageEntry.Page.PublishedSlug }, new {title = _Encoded("View Page")})%><%=_Encoded(" | ")%><%
|
||||
<%: Html.ActionLink("View", "Item", new { controller = "Page", slug = pageEntry.Page.PublishedSlug }, new {title = _Encoded("View Page")})%><%: T(" | ")%><%
|
||||
if (pageEntry.Page.HasDraft) { %>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Publish", new {id = pageEntry.Page.Id})) %>" title="<%=_Encoded("Publish Draft")%>"><%=_Encoded("Publish Draft")%></a><%=_Encoded(" | ")%><%
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Publish", new {id = pageEntry.Page.Id})) %>" title="<%: T("Publish Draft")%>"><%: T("Publish Draft")%></a><%: T(" | ")%><%
|
||||
} %>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Unpublish", new {id = pageEntry.Page.Id})) %>" title="<%=_Encoded("Unpublish Page")%>"><%=_Encoded("Unpublish")%></a><%=_Encoded(" | ")%><%
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Unpublish", new {id = pageEntry.Page.Id})) %>" title="<%: T("Unpublish Page")%>"><%: T("Unpublish")%></a><%: T(" | ")%><%
|
||||
}
|
||||
else { %>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Publish", new {id = pageEntry.Page.Id})) %>" title="<%=_Encoded("Publish Page")%>"><%=_Encoded("Publish")%></a><%=_Encoded(" | ")%><%
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Publish", new {id = pageEntry.Page.Id})) %>" title="<%: T("Publish Page")%>"><%: T("Publish")%></a><%: T(" | ")%><%
|
||||
} %>
|
||||
<%=Html.ActionLink(_Encoded("Edit").ToString(), "Edit", new {id = pageEntry.Page.Id}, new {title = _Encoded("Edit Page")})%><%=_Encoded(" | ")%>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Delete", new {id = pageEntry.Page.Id})) %>" title="<%=_Encoded("Remove Page")%>"><%=_Encoded("Remove")%></a>
|
||||
<%: Html.ActionLink(_Encoded("Edit").ToString(), "Edit", new {id = pageEntry.Page.Id}, new {title = _Encoded("Edit Page")})%><%: T(" | ")%>
|
||||
<a href="<%=Html.AntiForgeryTokenGetUrl(Url.Action("Delete", new {id = pageEntry.Page.Id})) %>" title="<%: T("Remove Page")%>"><%: T("Remove")%></a>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
@@ -95,4 +95,4 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
</ul>
|
||||
</fieldset><%
|
||||
} %>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a page").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a page").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<Orchard.Pages.Models.Page>>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(Model.Item.Title)%></h1>
|
||||
<h1><%: Html.TitleForPage(Model.Item.Title)%></h1>
|
||||
<% Html.Zone("primary", ":manage :metadata");
|
||||
Html.ZonesAny(); %>
|
@@ -10,7 +10,7 @@
|
||||
<div class="secondary">
|
||||
<% Html.Zone("secondary");%>
|
||||
<fieldset>
|
||||
<input class="button primaryAction" type="submit" name="submit.Save" value="<%=_Encoded("Save") %>"/><%
|
||||
<input class="button primaryAction" type="submit" name="submit.Save" value="<%: T("Save") %>"/><%
|
||||
//TODO: (erikpo) In the future, remove the HasPublished check so the user can delete the content item from here if the choose to
|
||||
if (Model.Item.HasDraft && Model.Item.HasPublished) { %>
|
||||
<%=Html.AntiForgeryTokenValueOrchardLink(T("Discard Draft").ToString(), Url.Action("DiscardDraft", new {Area = "Orchard.Pages", Controller = "Admin", id = Model.Item.Id}), new {@class = "button"})%><%
|
||||
|
@@ -10,24 +10,24 @@
|
||||
<% Html.RegisterFootScript("jquery.utils.js"); %>
|
||||
<% Html.RegisterFootScript("ui.timepickr.js"); %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Publish Settings")%></legend>
|
||||
<legend><%: T("Publish Settings")%></legend>
|
||||
<div>
|
||||
<%=Html.RadioButton("Command", "SaveDraft", Model.ContentItem.VersionRecord == null || !Model.ContentItem.VersionRecord.Published, new { id = "Command_SaveDraft" })%>
|
||||
<label class="forcheckbox" for="Command_SaveDraft"><%=_Encoded("Save Draft")%></label>
|
||||
<%: Html.RadioButton("Command", "SaveDraft", Model.ContentItem.VersionRecord == null || !Model.ContentItem.VersionRecord.Published, new { id = "Command_SaveDraft" })%>
|
||||
<label class="forcheckbox" for="Command_SaveDraft"><%: T("Save Draft")%></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButton("Command", "PublishNow", Model.ContentItem.VersionRecord != null && Model.ContentItem.VersionRecord.Published, new { id = "Command_PublishNow" })%>
|
||||
<label class="forcheckbox" for="Command_PublishNow"><%=_Encoded("Publish Now")%></label>
|
||||
<%: Html.RadioButton("Command", "PublishNow", Model.ContentItem.VersionRecord != null && Model.ContentItem.VersionRecord.Published, new { id = "Command_PublishNow" })%>
|
||||
<label class="forcheckbox" for="Command_PublishNow"><%: T("Publish Now")%></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButton("Command", "PublishLater", Model.ScheduledPublishUtc != null, new { id = "Command_PublishLater" }) %>
|
||||
<label class="forcheckbox" for="Command_PublishLater"><%=_Encoded("Publish Later")%></label>
|
||||
<%: Html.RadioButton("Command", "PublishLater", Model.ScheduledPublishUtc != null, new { id = "Command_PublishLater" }) %>
|
||||
<label class="forcheckbox" for="Command_PublishLater"><%: T("Publish Later")%></label>
|
||||
</div>
|
||||
<div>
|
||||
<label class="forpicker" for="ScheduledPublishUtcDate"><%=_Encoded("Date")%></label>
|
||||
<%=Html.EditorFor(m => m.ScheduledPublishUtcDate)%>
|
||||
<label class="forpicker" for="ScheduledPublishUtcTime"><%=_Encoded("Time")%></label>
|
||||
<%=Html.EditorFor(m => m.ScheduledPublishUtcTime)%>
|
||||
<label class="forpicker" for="ScheduledPublishUtcDate"><%: T("Date")%></label>
|
||||
<%: Html.EditorFor(m => m.ScheduledPublishUtcDate)%>
|
||||
<label class="forpicker" for="ScheduledPublishUtcTime"><%: T("Time")%></label>
|
||||
<%: Html.EditorFor(m => m.ScheduledPublishUtcTime)%>
|
||||
</div>
|
||||
</fieldset>
|
||||
<script type="text/javascript">$(function() {
|
||||
|
@@ -1,18 +1,18 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<RoleCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Roles.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add Role").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add Role").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary()%>
|
||||
<%: Html.ValidationSummary()%>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Information") %></legend>
|
||||
<label for="pageTitle"><%=_Encoded("Role Name:") %></label>
|
||||
<legend><%: T("Information") %></legend>
|
||||
<label for="pageTitle"><%: T("Role Name:") %></label>
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%: Model.Name %>" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Permissions") %></legend>
|
||||
<legend><%: T("Permissions") %></legend>
|
||||
<% foreach (var moduleName in Model.ModulePermissions.Keys) { %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("{0} Module", moduleName) %></legend>
|
||||
<legend><%: T("{0} Module", moduleName) %></legend>
|
||||
<table class="items">
|
||||
<colgroup>
|
||||
<col id="Permission" />
|
||||
@@ -20,14 +20,14 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><%=_Encoded("Permission") %></th>
|
||||
<th scope="col"><%=_Encoded("Allow") %></th>
|
||||
<th scope="col"><%: T("Permission") %></th>
|
||||
<th scope="col"><%: T("Allow") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<% foreach (var permission in Model.ModulePermissions[moduleName]) { %>
|
||||
<tr>
|
||||
<td><%: permission.Description %></td>
|
||||
<td style="width:60px;/* todo: (heskew) make not inline :( */"><input type="checkbox" value="true" name="<%=_Encoded("Checkbox.{0}", permission.Name) %>"/></td>
|
||||
<td style="width:60px;/* todo: (heskew) make not inline :( */"><input type="checkbox" value="true" name="<%: T("Checkbox.{0}", permission.Name) %>"/></td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</table>
|
||||
@@ -35,6 +35,6 @@
|
||||
<% } %>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" class="button primaryAction" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -1,19 +1,19 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<RoleEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Roles.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit Role").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Role").ToString()) %></h1>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Information") %></legend>
|
||||
<label for="pageTitle"><%=_Encoded("Role Name:") %></label>
|
||||
<legend><%: T("Information") %></legend>
|
||||
<label for="pageTitle"><%: T("Role Name:") %></label>
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%: Model.Name %>" />
|
||||
<input type="hidden" value="<%=Model.Id %>" name="Id" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Permissions") %></legend>
|
||||
<legend><%: T("Permissions") %></legend>
|
||||
<% foreach (var moduleName in Model.ModulePermissions.Keys) { %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("{0} Module", moduleName) %></legend>
|
||||
<legend><%: T("{0} Module", moduleName) %></legend>
|
||||
<table class="items">
|
||||
<colgroup>
|
||||
<col id="Col1" />
|
||||
@@ -21,9 +21,9 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><%=_Encoded("Permission") %></th>
|
||||
<th scope="col"><%=_Encoded("Allow") %></th>
|
||||
<th scope="col"><%=_Encoded("Effective") %></th>
|
||||
<th scope="col"><%: T("Permission") %></th>
|
||||
<th scope="col"><%: T("Allow") %></th>
|
||||
<th scope="col"><%: T("Effective") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<% foreach (var permission in Model.ModulePermissions[moduleName]) { %>
|
||||
@@ -31,16 +31,16 @@
|
||||
<td><%: permission.Description %></td>
|
||||
<td style="width:60px;/* todo: (heskew) make not inline :(">
|
||||
<% if (Model.CurrentPermissions.Contains(permission.Name)) { %>
|
||||
<input type="checkbox" value="true" name="<%=_Encoded("Checkbox.{0}", permission.Name) %>" checked="checked"/>
|
||||
<input type="checkbox" value="true" name="<%: T("Checkbox.{0}", permission.Name) %>" checked="checked"/>
|
||||
<% } else {%>
|
||||
<input type="checkbox" value="true" name="<%=_Encoded("Checkbox.{0}", permission.Name) %>"/>
|
||||
<input type="checkbox" value="true" name="<%: T("Checkbox.{0}", permission.Name) %>"/>
|
||||
<% }%>
|
||||
</td>
|
||||
<td style="width:60px;/* todo: (heskew) make not inline :(">
|
||||
<% if (Model.EffectivePermissions.Contains(permission.Name)) { %>
|
||||
<input type="checkbox" disabled="disabled" name="<%=_Encoded("Effective.{0}", permission.Name) %>" checked="checked"/>
|
||||
<input type="checkbox" disabled="disabled" name="<%: T("Effective.{0}", permission.Name) %>" checked="checked"/>
|
||||
<% } else {%>
|
||||
<input type="checkbox" disabled="disabled" name="<%=_Encoded("Effective.{0}", permission.Name) %>"/>
|
||||
<input type="checkbox" disabled="disabled" name="<%: T("Effective.{0}", permission.Name) %>"/>
|
||||
<% }%>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -50,7 +50,7 @@
|
||||
<% } %>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button" name="submit.Save" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" class="button remove" name="submit.Delete" value="<%=_Encoded("Remove") %>" />
|
||||
<input type="submit" class="button" name="submit.Save" value="<%: T("Save") %>" />
|
||||
<input type="submit" class="button remove" name="submit.Delete" value="<%: T("Remove") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -1,18 +1,18 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<RolesIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Roles.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Roles").ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Roles").ToString())%></h1>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="publishActions"><%=_Encoded("Actions:") %></label>
|
||||
<label for="publishActions"><%: T("Actions:") %></label>
|
||||
<select id="Select1" name="roleActions">
|
||||
<option value="1"><%=_Encoded("Remove") %></option>
|
||||
<option value="1"><%: T("Remove") %></option>
|
||||
</select>
|
||||
<input class="button" type="submit" value="<%=_Encoded("Apply") %>" />
|
||||
<input class="button" type="submit" value="<%: T("Apply") %>" />
|
||||
</fieldset>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a role").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a role").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<fieldset>
|
||||
<table class="items" summary="<%=_Encoded("This is a table of the roles currently available for use in your application.") %>">
|
||||
<table class="items" summary="<%: T("This is a table of the roles currently available for use in your application.") %>">
|
||||
<colgroup>
|
||||
<col id="Col1" />
|
||||
<col id="Col2" />
|
||||
@@ -21,7 +21,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
||||
<th scope="col"><%=_Encoded("Name")%></th>
|
||||
<th scope="col"><%: T("Name")%></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -29,7 +29,7 @@
|
||||
<tr>
|
||||
<td><input type="checkbox" value="true" name="<%="Checkbox." + row.Id %>"/></td>
|
||||
<td><%: row.Name %></td>
|
||||
<td><%=Html.ActionLink(T("Edit").ToString(), "Edit", new { row.Id })%></td>
|
||||
<td><%: Html.ActionLink(T("Edit").ToString(), "Edit", new { row.Id })%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
|
@@ -1,23 +1,23 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<UserRolesViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Roles.ViewModels"%>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Roles")%></legend>
|
||||
<legend><%: T("Roles")%></legend>
|
||||
<% if (Model.Roles.Count > 0) {
|
||||
var index = 0;
|
||||
foreach (var entry in Model.Roles) {
|
||||
if (string.Equals(entry.Name, "Authenticated", StringComparison.OrdinalIgnoreCase) || string.Equals(entry.Name, "Anonymous", StringComparison.OrdinalIgnoreCase)) {
|
||||
continue;
|
||||
}%>
|
||||
<%=Html.Hidden("Roles[" + index + "].RoleId", entry.RoleId)%>
|
||||
<%=Html.Hidden("Roles[" + index + "].Name", entry.Name)%>
|
||||
<%: Html.Hidden("Roles[" + index + "].RoleId", entry.RoleId)%>
|
||||
<%: Html.Hidden("Roles[" + index + "].Name", entry.Name)%>
|
||||
<div>
|
||||
<%=Html.CheckBox("Roles[" + index + "].Granted", entry.Granted)%>
|
||||
<%: Html.CheckBox("Roles[" + index + "].Granted", entry.Granted)%>
|
||||
<label class="forcheckbox" for="<%="Roles[" + index + "]_Granted"%>"><%: entry.Name %></label>
|
||||
</div>
|
||||
<%++index;
|
||||
}
|
||||
}
|
||||
else {
|
||||
%><p><%=_Encoded("There are no roles.")%></p><%
|
||||
%><p><%: T("There are no roles.")%></p><%
|
||||
} %>
|
||||
</fieldset>
|
||||
|
@@ -9,7 +9,7 @@
|
||||
<% Html.Zone("metatop"); %>
|
||||
<div class="actions">
|
||||
<%=Html.ItemEditLink(T("Edit this page").ToString(), Model.Item) %>
|
||||
<%=Html.ActionLink(T("Return to list").ToString(), "index") %>
|
||||
<%: Html.ActionLink(T("Return to list").ToString(), "index") %>
|
||||
<% Html.Zone("actions"); %>
|
||||
</div>
|
||||
<div class="body">
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Sandbox.Models"%>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(m => m.Item.Record.Name) %>
|
||||
<%=Html.EditorFor(m => m.Item.Record.Name) %>
|
||||
<%: Html.LabelFor(m => m.Item.Record.Name) %>
|
||||
<%: Html.EditorFor(m => m.Item.Record.Name) %>
|
||||
</fieldset>
|
||||
<% Html.ZonesAny(); %>
|
@@ -3,8 +3,8 @@
|
||||
<fieldset>
|
||||
<legend>Sandbox</legend>
|
||||
<div>
|
||||
<%=Html.EditorFor(m => m.AllowAnonymousEdits) %>
|
||||
<label class="forcheckbox" for="SandboxSettings_AllowAnonymousEdits"><%=_Encoded("Anyone can create and edit pages") %></label>
|
||||
<%=Html.ValidationMessage("AllowAnonymousEdits", "*") %>
|
||||
<%: Html.EditorFor(m => m.AllowAnonymousEdits) %>
|
||||
<label class="forcheckbox" for="SandboxSettings_AllowAnonymousEdits"><%: T("Anyone can create and edit pages") %></label>
|
||||
<%: Html.ValidationMessage("AllowAnonymousEdits", "*") %>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
@@ -1,10 +1,10 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<PageCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
||||
<h1><%=Html.TitleForPage(T("Create Page").ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Create Page").ToString())%></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(x => x.Name) %>
|
||||
<%=Html.EditorFor(x => x.Name) %>
|
||||
<input type="submit" name="submit" value="<%=_Encoded("Add") %>" />
|
||||
<%: Html.LabelFor(x => x.Name) %>
|
||||
<%: Html.EditorFor(x => x.Name) %>
|
||||
<input type="submit" name="submit" value="<%: T("Add") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
||||
|
@@ -1,9 +1,9 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<PageEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
||||
<h1><%=Html.TitleForPage(T("Edit Page").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit Page").ToString()) %></h1>
|
||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.EditorForItem(Model.Page) %>
|
||||
<%: Html.EditorForItem(Model.Page) %>
|
||||
<fieldset>
|
||||
<input type="submit" name="submit" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" name="submit" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<PageIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
||||
<h1><%=Html.TitleForPage(T("Sandbox Pages").ToString()) %></h1>
|
||||
<p><%=Html.ActionLink(T("Add new page").ToString(), "create") %></p>
|
||||
<h1><%: Html.TitleForPage(T("Sandbox Pages").ToString()) %></h1>
|
||||
<p><%: Html.ActionLink(T("Add new page").ToString(), "create") %></p>
|
||||
<%=Html.UnorderedList(Model.Pages, (sp, i) => Html.DisplayForItem(sp).ToHtmlString(), "pages contentItems") %>
|
@@ -1,48 +1,48 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<SetupViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Setup.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(_Encoded("Get Started").ToHtmlString())%></h1>
|
||||
<h1><%: Html.TitleForPage(_Encoded("Get Started").ToHtmlString())%></h1>
|
||||
<%
|
||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<h2><%=_Encoded("Please answer a few questions to configure your site.")%></h2>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<h2><%: T("Please answer a few questions to configure your site.")%></h2>
|
||||
<fieldset class="site">
|
||||
<div>
|
||||
<label for="SiteName"><%=_Encoded("What is the name of your site?") %></label>
|
||||
<%=Html.TextBoxFor(svm => svm.SiteName, new { autofocus = "autofocus" })%>
|
||||
<label for="SiteName"><%: T("What is the name of your site?") %></label>
|
||||
<%: Html.TextBoxFor(svm => svm.SiteName, new { autofocus = "autofocus" })%>
|
||||
</div>
|
||||
<div>
|
||||
<label for="AdminUsername"><%=_Encoded("Choose a user name:") %></label>
|
||||
<%=Html.EditorFor(svm => svm.AdminUsername)%>
|
||||
<label for="AdminUsername"><%: T("Choose a user name:") %></label>
|
||||
<%: Html.EditorFor(svm => svm.AdminUsername)%>
|
||||
</div>
|
||||
<div>
|
||||
<label for="AdminPassword"><%=_Encoded("Choose a password:") %></label>
|
||||
<%=Html.PasswordFor(svm => svm.AdminPassword) %>
|
||||
<label for="AdminPassword"><%: T("Choose a password:") %></label>
|
||||
<%: Html.PasswordFor(svm => svm.AdminPassword) %>
|
||||
</div>
|
||||
</fieldset><%
|
||||
if (!Model.DatabaseIsPreconfigured) { %>
|
||||
<fieldset class="data">
|
||||
<legend><%=_Encoded("How would you like to store your data?") %></legend>
|
||||
<%=Html.ValidationMessage("DatabaseOptions", "Unable to setup data storage") %>
|
||||
<legend><%: T("How would you like to store your data?") %></legend>
|
||||
<%: Html.ValidationMessage("DatabaseOptions", "Unable to setup data storage") %>
|
||||
<div>
|
||||
<%=Html.RadioButtonFor(svm => svm.DatabaseOptions, true, new { id = "builtin" })%>
|
||||
<label for="builtin" class="forcheckbox"><%=_Encoded("Use built-in data storage (SQLite)") %></label>
|
||||
<%: Html.RadioButtonFor(svm => svm.DatabaseOptions, true, new { id = "builtin" })%>
|
||||
<label for="builtin" class="forcheckbox"><%: T("Use built-in data storage (SQLite)") %></label>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.RadioButtonFor(svm => svm.DatabaseOptions, false, new { id = "sql" })%>
|
||||
<label for="sql" class="forcheckbox"><%=_Encoded("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<%: Html.RadioButtonFor(svm => svm.DatabaseOptions, false, new { id = "sql" })%>
|
||||
<label for="sql" class="forcheckbox"><%: T("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<div data-controllerid="sql">
|
||||
<label for="DatabaseConnectionString"><%=_Encoded("Connection string") %></label>
|
||||
<%=Html.EditorFor(svm => svm.DatabaseConnectionString)%>
|
||||
<span class="hint"><%=_Encoded("Example:") %><br /><%=_Encoded("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password") %></span>
|
||||
<label for="DatabaseConnectionString"><%: T("Connection string") %></label>
|
||||
<%: Html.EditorFor(svm => svm.DatabaseConnectionString)%>
|
||||
<span class="hint"><%: T("Example:") %><br /><%: T("Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password") %></span>
|
||||
</div>
|
||||
<div data-controllerid="sql">
|
||||
<label for="DatabaseTablePrefix"><%=_Encoded("Database Table Prefix") %></label>
|
||||
<%=Html.EditorFor(svm => svm.DatabaseTablePrefix)%>
|
||||
<label for="DatabaseTablePrefix"><%: T("Database Table Prefix") %></label>
|
||||
<%: Html.EditorFor(svm => svm.DatabaseTablePrefix)%>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset><%
|
||||
} %>
|
||||
<fieldset>
|
||||
<input class="button" type="submit" value="<%=_Encoded("Finish Setup") %>" />
|
||||
<input class="button" type="submit" value="<%: T("Finish Setup") %>" />
|
||||
</fieldset><%
|
||||
} %>
|
@@ -1,11 +1,11 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<TagsAdminCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add a Tag").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add a Tag").ToString()) %></h1>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="TagName"><%=_Encoded("Name:")%></label>
|
||||
<label for="TagName"><%: T("Name:")%></label>
|
||||
<input id="TagName" class="text" name="TagName" type="text" value="<%: Model.TagName %>" />
|
||||
<input type="submit" class="button" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" class="button" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -1,12 +1,12 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<TagsAdminEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit a Tag").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit a Tag").ToString()) %></h1>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="Name"><%=_Encoded("Name:") %></label>
|
||||
<label for="Name"><%: T("Name:") %></label>
|
||||
<input id="Id" name="Id" type="hidden" value="<%=Model.Id %>" />
|
||||
<input id="TagName" class="text" name="TagName" type="text" value="<%: Model.TagName %>" />
|
||||
<input type="submit" class="button" value="<%=_Encoded("Save") %>" />
|
||||
<input type="submit" class="button" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -1,19 +1,19 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<TagsAdminIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Tags").ToString())%></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Tags").ToString())%></h1>
|
||||
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset class="actions bulk">
|
||||
<label for="publishActions"><%=_Encoded("Actions:") %></label>
|
||||
<label for="publishActions"><%: T("Actions:") %></label>
|
||||
<select id="publishActions" name="<%=Html.NameOf(m => m.BulkAction)%>">
|
||||
<%=Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.None, _Encoded("Choose action...").ToString())%>
|
||||
<%=Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.Delete, _Encoded("Remove").ToString())%>
|
||||
<%: Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.None, _Encoded("Choose action...").ToString())%>
|
||||
<%: Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.Delete, _Encoded("Remove").ToString())%>
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="<%=_Encoded("Apply") %>" />
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="<%: T("Apply") %>" />
|
||||
</fieldset>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a tag").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a tag").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<fieldset>
|
||||
<table class="items" summary="<%=_Encoded("This is a table of the tags in your application") %>">
|
||||
<table class="items" summary="<%: T("This is a table of the tags in your application") %>">
|
||||
<colgroup>
|
||||
<col id="Col1" />
|
||||
<col id="Col2" />
|
||||
@@ -22,7 +22,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
||||
<th scope="col"><%=_Encoded("Name")%></th>
|
||||
<th scope="col"><%: T("Name")%></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -37,14 +37,14 @@
|
||||
<input type="checkbox" value="true" name="<%=Html.NameOf(m => m.Tags[ti].IsChecked)%>"/>
|
||||
</td>
|
||||
<td>
|
||||
<%=Html.ActionLink(Html.Encode(tagEntry.Tag.TagName), "Search", new {id = tagEntry.Tag.Id}) %>
|
||||
<%: Html.ActionLink(Html.Encode(tagEntry.Tag.TagName), "Search", new {id = tagEntry.Tag.Id}) %>
|
||||
</td>
|
||||
<td>
|
||||
<%=Html.ActionLink(T("Edit").ToString(), "Edit", new {id = tagEntry.Tag.Id}) %>
|
||||
<%: Html.ActionLink(T("Edit").ToString(), "Edit", new {id = tagEntry.Tag.Id}) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% tagIndex++; } %>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a tag").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a tag").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<% } %>
|
@@ -1,7 +1,7 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<TagsAdminSearchViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("List of contents tagged with {0}", Model.TagName).ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("List of contents tagged with {0}", Model.TagName).ToString()) %></h1>
|
||||
<table class="items">
|
||||
<colgroup>
|
||||
<col id="Col1" />
|
||||
@@ -9,8 +9,8 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><%=_Encoded("Name")%></th>
|
||||
<th scope="col"><%=_Encoded("Link to the content item")%></th>
|
||||
<th scope="col"><%: T("Name")%></th>
|
||||
<th scope="col"><%: T("Link to the content item")%></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<% foreach (var contentItem in Model.Contents) { %>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<%@ Import Namespace="Orchard.Tags.Models" %>
|
||||
<% if (Model.CurrentTags.Count > 0) { %>
|
||||
<p class="tags">
|
||||
<span><%=_Encoded("Tags:") %></span>
|
||||
<span><%: T("Tags:") %></span>
|
||||
<%=string.Join(", ", Model.CurrentTags.Select(t => Html.ActionLink(Html.Encode(t.TagName), "Search", "Home", new { area = "Orchard.Tags", tagName = t.TagName }, new { }).ToHtmlString()).ToArray())%>
|
||||
</p><%
|
||||
} %>
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EditTagsViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(m => m.Tags) %>
|
||||
<%=Html.TextBoxFor(m => m.Tags, new { @class = "large text" })%>
|
||||
<%: Html.LabelFor(m => m.Tags) %>
|
||||
<%: Html.TextBoxFor(m => m.Tags, new { @class = "large text" })%>
|
||||
</fieldset>
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<TagsIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Tags.ViewModels"%>
|
||||
<h1 class="page-title"><%=Html.TitleForPage(T("Tags").ToString())%></h1>
|
||||
<h1 class="page-title"><%: Html.TitleForPage(T("Tags").ToString())%></h1>
|
||||
<%=Html.UnorderedList(
|
||||
Model.Tags,
|
||||
(t, i) => Html.ActionLink(
|
||||
|
@@ -1,25 +1,25 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<ThemesIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Themes.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Themes").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Themes").ToString()) %></h1>
|
||||
<% if (Model.CurrentTheme == null) {
|
||||
%><p><%=_Encoded("There is no current theme in the application. The built-in theme will be used.")
|
||||
%><br /><%=Html.ActionLink(T("Install a new Theme").ToString(), "Install") %></p><%
|
||||
%><p><%: T("There is no current theme in the application. The built-in theme will be used.")
|
||||
%><br /><%: Html.ActionLink(T("Install a new Theme").ToString(), "Install") %></p><%
|
||||
} else {
|
||||
%><h3><%=_Encoded("Current Theme")%> - <%: Model.CurrentTheme.DisplayName %></h3>
|
||||
%><h3><%: T("Current Theme")%> - <%: Model.CurrentTheme.DisplayName %></h3>
|
||||
|
||||
<%=Html.Image(Html.ThemePath(Model.CurrentTheme, "/Theme.png"), Html.Encode(Model.CurrentTheme.DisplayName), new { @class = "themePreviewImage" })%>
|
||||
<h5><%=_Encoded("By") %> <%: Model.CurrentTheme.Author %></h5>
|
||||
<h5><%: T("By") %> <%: Model.CurrentTheme.Author %></h5>
|
||||
|
||||
<p>
|
||||
<%=_Encoded("Version:") %> <%: Model.CurrentTheme.Version %><br />
|
||||
<%: T("Version:") %> <%: Model.CurrentTheme.Version %><br />
|
||||
<%: Model.CurrentTheme.Description %><br />
|
||||
<%: Model.CurrentTheme.HomePage %>
|
||||
</p>
|
||||
<%=Html.ActionLink(T("Install a new Theme").ToString(), "Install", null, new { @class = "button primaryAction" })%>
|
||||
<%: Html.ActionLink(T("Install a new Theme").ToString(), "Install", null, new { @class = "button primaryAction" })%>
|
||||
|
||||
<% } %>
|
||||
<h2><%=_Encoded("Available Themes")%></h2>
|
||||
<h2><%: T("Available Themes")%></h2>
|
||||
<ul class="templates">
|
||||
<% foreach (var theme in Model.Themes) {
|
||||
if (Model.CurrentTheme == null || theme.ThemeName != Model.CurrentTheme.ThemeName) {
|
||||
@@ -28,22 +28,22 @@
|
||||
<h3><%: theme.DisplayName %></h3>
|
||||
<%=Html.Image(Html.ThemePath(theme, "/Theme.png"), Html.Encode(theme.DisplayName), null)%>
|
||||
<% using (Html.BeginFormAntiForgeryPost(Url.Action("Activate"), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<%=Html.Hidden("themeName", theme.ThemeName)%>
|
||||
<button type="submit" title="<%=_Encoded("Activate") %>"><%=_Encoded("Activate") %></button>
|
||||
<%: Html.Hidden("themeName", theme.ThemeName)%>
|
||||
<button type="submit" title="<%: T("Activate") %>"><%: T("Activate") %></button>
|
||||
<% } %>
|
||||
<% using (Html.BeginFormAntiForgeryPost(Url.Action("Preview"), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<%=Html.Hidden("themeName", theme.ThemeName)%>
|
||||
<button type="submit" title="<%=_Encoded("Preview") %>"><%=_Encoded("Preview") %></button>
|
||||
<%: Html.Hidden("themeName", theme.ThemeName)%>
|
||||
<button type="submit" title="<%: T("Preview") %>"><%: T("Preview") %></button>
|
||||
<% } %>
|
||||
<h5><%=_Encoded("By") %> <%: theme.Author %></h5>
|
||||
<h5><%: T("By") %> <%: theme.Author %></h5>
|
||||
<p>
|
||||
<%=_Encoded("Version:") %> <%: theme.Version %><br />
|
||||
<%: T("Version:") %> <%: theme.Version %><br />
|
||||
<%: theme.Description %><br />
|
||||
<%: theme.HomePage %>
|
||||
</p>
|
||||
<% using (Html.BeginFormAntiForgeryPost(Url.Action("Uninstall"), FormMethod.Post, new { @class = "inline link" })) { %>
|
||||
<%=Html.Hidden("themeName", theme.ThemeName)%>
|
||||
<button type="submit" class="uninstall" title="<%=_Encoded("Uninstall") %>"><%=_Encoded("Uninstall")%></button>
|
||||
<%: Html.Hidden("themeName", theme.ThemeName)%>
|
||||
<button type="submit" class="uninstall" title="<%: T("Uninstall") %>"><%: T("Uninstall")%></button>
|
||||
<% } %>
|
||||
</div>
|
||||
</li>
|
||||
|
@@ -1,12 +1,12 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<object>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<h1><%=Html.TitleForPage(T("Install Theme").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Install Theme").ToString()) %></h1>
|
||||
<% using (Html.BeginForm("Install", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) {%>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="ThemeZipPath"><%=_Encoded("File Path to the zip file:")%></label>
|
||||
<input id="ThemeZipPath" name="ThemeZipPath" type="file" class="text" value="<%=_Encoded("Browse") %>" size="64" /><br />
|
||||
<input type="submit" class="button" value="<%=_Encoded("Install") %>" />
|
||||
<%=Html.AntiForgeryTokenOrchard() %>
|
||||
<label for="ThemeZipPath"><%: T("File Path to the zip file:")%></label>
|
||||
<input id="ThemeZipPath" name="ThemeZipPath" type="file" class="text" value="<%: T("Browse") %>" size="64" /><br />
|
||||
<input type="submit" class="button" value="<%: T("Install") %>" />
|
||||
<%: Html.AntiForgeryTokenOrchard() %>
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -59,11 +59,11 @@ html.dyn #themepreview button.preview { display:none; }
|
||||
<% using(Html.BeginFormAntiForgeryPost(Url.Action("Preview", new{Controller="Admin", Area="Orchard.Themes"}), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<fieldset>
|
||||
<span><%=T("You are previewing: ")%></span>
|
||||
<%=Html.Hidden("ReturnUrl", Context.Request.RawUrl)%>
|
||||
<%: Html.Hidden("ReturnUrl", Context.Request.RawUrl)%>
|
||||
<%=Html.DropDownList("ThemeName", Model.Themes, new {onChange = "this.form.submit();"})%>
|
||||
<button type="submit" class="preview" title="<%=_Encoded("Preview")%>" name="submit.Preview" value="<%=_Encoded("Preview")%>"><%=_Encoded("Preview")%></button>
|
||||
<button type="submit" title="<%=_Encoded("Apply")%>" name="submit.Apply" value="<%=_Encoded("Apply")%>"><%=_Encoded("Apply this theme") %></button>
|
||||
<button type="submit" class="cancel" title="<%=_Encoded("Cancel")%>" name="submit.Cancel" value="<%=_Encoded("Cancel")%>"><%=_Encoded("Cancel")%></button>
|
||||
<button type="submit" class="preview" title="<%: T("Preview")%>" name="submit.Preview" value="<%: T("Preview")%>"><%: T("Preview")%></button>
|
||||
<button type="submit" title="<%: T("Apply")%>" name="submit.Apply" value="<%: T("Apply")%>"><%: T("Apply this theme") %></button>
|
||||
<button type="submit" class="cancel" title="<%: T("Cancel")%>" name="submit.Cancel" value="<%: T("Cancel")%>"><%: T("Cancel")%></button>
|
||||
</fieldset>
|
||||
<% } %>
|
||||
</div>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
%><!DOCTYPE html>
|
||||
<html lang="en" class="static">
|
||||
<head>
|
||||
<title><%=Html.Title(Html.SiteName()) %></title>
|
||||
<title><%: Html.Title(Html.SiteName()) %></title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="<%=ResolveUrl("../Content/orchard.ico") %>" /><%
|
||||
//todo: (heskew) have resource modules that can be leaned on (like a jQuery module that knows about various CDNs and jQuery's version and min naming schemes)
|
||||
//todo: (heskew) this is an interim solution to inlude jQuery in every page and still allow that to be overriden in some theme by it containing a headScripts partial
|
||||
@@ -12,7 +12,7 @@
|
||||
Html.Zone("head", ":metas :styles :scripts"); %>
|
||||
<script type="text/javascript">document.documentElement.className="dyn";</script>
|
||||
</head>
|
||||
<body class="<%=Html.ClassForPage() %>"><%
|
||||
<body class="<%: Html.ClassForPage() %>"><%
|
||||
Html.ZoneBody("body"); %>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<object>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Not found").ToString()) %></h1>
|
||||
<p><%=_Encoded("The page you are looking for does not exist.")%></p>
|
||||
<h1><%: Html.TitleForPage(T("Not found").ToString()) %></h1>
|
||||
<p><%: T("The page you are looking for does not exist.")%></p>
|
||||
|
@@ -2,10 +2,10 @@
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<div id="logindisplay">
|
||||
<% if (Request.IsAuthenticated) { %>
|
||||
<%=T("Welcome, <strong>{0}</strong>!", Html.Encode(Page.User.Identity.Name)) %>
|
||||
<%=Html.ActionLink(T("Log Off").ToString(), "LogOff", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })%>
|
||||
| <%= Html.ActionLink("Admin", "Index", new {Area = "Dashboard", Controller = "Admin"})%>
|
||||
<%: T("Welcome, <strong>{0}</strong>!", Page.User.Identity.Name) %>
|
||||
<%: Html.ActionLink(T("Log Off").ToString(), "LogOff", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })%>
|
||||
| <%: Html.ActionLink("Admin", "Index", new {Area = "Dashboard", Controller = "Admin"})%>
|
||||
<% } else { %>
|
||||
<%=Html.ActionLink(T("Log On").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl }) %>
|
||||
<%: Html.ActionLink(T("Log On").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl }) %>
|
||||
<% } %>
|
||||
</div>
|
@@ -1,4 +1,4 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Access Denied").ToString()) %></h1>
|
||||
<p><%=_Encoded("You do not have permission to complete your request.")%></p>
|
||||
<h1><%: Html.TitleForPage(T("Access Denied").ToString()) %></h1>
|
||||
<p><%: T("You do not have permission to complete your request.")%></p>
|
||||
|
@@ -1,28 +1,28 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<object>" %>
|
||||
<h1><%=Html.TitleForPage(T("Change Password").ToString()) %></h1>
|
||||
<p><%=_Encoded("Use the form below to change your password.")%></p>
|
||||
<p><%=_Encoded("New passwords are required to be a minimum of {0} characters in length.", ViewData["PasswordLength"] as string) %></p>
|
||||
<%=Html.ValidationSummary(T("Password change was unsuccessful. Please correct the errors and try again.").ToString())%>
|
||||
<h1><%: Html.TitleForPage(T("Change Password").ToString()) %></h1>
|
||||
<p><%: T("Use the form below to change your password.")%></p>
|
||||
<p><%: T("New passwords are required to be a minimum of {0} characters in length.", ViewData["PasswordLength"] as string) %></p>
|
||||
<%: Html.ValidationSummary(T("Password change was unsuccessful. Please correct the errors and try again.").ToString())%>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Account Information")%></legend>
|
||||
<legend><%: T("Account Information")%></legend>
|
||||
<div>
|
||||
<label for="currentPassword"><%=_Encoded("Current password:")%></label>
|
||||
<%=Html.Password("currentPassword") %>
|
||||
<%=Html.ValidationMessage("currentPassword") %>
|
||||
<label for="currentPassword"><%: T("Current password:")%></label>
|
||||
<%: Html.Password("currentPassword") %>
|
||||
<%: Html.ValidationMessage("currentPassword") %>
|
||||
</div>
|
||||
<div>
|
||||
<label for="newPassword"><%=_Encoded("New password:")%></label>
|
||||
<%= Html.Password("newPassword") %>
|
||||
<%= Html.ValidationMessage("newPassword") %>
|
||||
<label for="newPassword"><%: T("New password:")%></label>
|
||||
<%: Html.Password("newPassword") %>
|
||||
<%: Html.ValidationMessage("newPassword") %>
|
||||
</div>
|
||||
<div>
|
||||
<label for="confirmPassword"><%=_Encoded("Confirm new password:")%></label>
|
||||
<%= Html.Password("confirmPassword") %>
|
||||
<%= Html.ValidationMessage("confirmPassword") %>
|
||||
<label for="confirmPassword"><%: T("Confirm new password:")%></label>
|
||||
<%: Html.Password("confirmPassword") %>
|
||||
<%: Html.ValidationMessage("confirmPassword") %>
|
||||
</div>
|
||||
<div>
|
||||
<input type="submit" value="<%=_Encoded("Change Password") %>" />
|
||||
<input type="submit" value="<%: T("Change Password") %>" />
|
||||
</div>
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -1,3 +1,3 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<object>" %>
|
||||
<h1><%=Html.TitleForPage(T("Change Password").ToString()) %></h1>
|
||||
<p><%=_Encoded("Your password has been changed successfully.")%></p>
|
||||
<h1><%: Html.TitleForPage(T("Change Password").ToString()) %></h1>
|
||||
<p><%: T("Your password has been changed successfully.")%></p>
|
||||
|
@@ -1,25 +1,25 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<LogOnViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Users.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(Model.Title)%></h1>
|
||||
<p><%=_Encoded("Please enter your username and password.")%> <%= Html.ActionLink("Register", "Register")%><%=_Encoded(" if you don't have an account.")%></p>
|
||||
<%= Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())%>
|
||||
<h1><%: Html.TitleForPage(Model.Title)%></h1>
|
||||
<p><%: T("Please enter your username and password.")%> <%: Html.ActionLink("Register", "Register")%><%: T(" if you don't have an account.")%></p>
|
||||
<%: Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())%>
|
||||
<%
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new {ReturnUrl = Request.QueryString["ReturnUrl"]}))) { %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Account Information")%></legend>
|
||||
<legend><%: T("Account Information")%></legend>
|
||||
<div>
|
||||
<label for="userNameOrEmail"><%=_Encoded("Username or Email:")%></label>
|
||||
<%= Html.TextBox("userNameOrEmail", "", new { autofocus = "autofocus" })%>
|
||||
<%= Html.ValidationMessage("userNameOrEmail")%>
|
||||
<label for="userNameOrEmail"><%: T("Username or Email:")%></label>
|
||||
<%: Html.TextBox("userNameOrEmail", "", new { autofocus = "autofocus" })%>
|
||||
<%: Html.ValidationMessage("userNameOrEmail")%>
|
||||
</div>
|
||||
<div>
|
||||
<label for="password"><%=_Encoded("Password:")%></label>
|
||||
<%= Html.Password("password")%>
|
||||
<%= Html.ValidationMessage("password")%>
|
||||
<label for="password"><%: T("Password:")%></label>
|
||||
<%: Html.Password("password")%>
|
||||
<%: Html.ValidationMessage("password")%>
|
||||
</div>
|
||||
<div>
|
||||
<%= Html.CheckBox("rememberMe")%><label class="forcheckbox" for="rememberMe"><%=_Encoded("Remember me?")%></label>
|
||||
<%: Html.CheckBox("rememberMe")%><label class="forcheckbox" for="rememberMe"><%: T("Remember me?")%></label>
|
||||
</div>
|
||||
<input type="submit" value="<%=_Encoded("Log On") %>" />
|
||||
<input type="submit" value="<%: T("Log On") %>" />
|
||||
</fieldset><%
|
||||
} %>
|
@@ -1,33 +1,33 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<object>" %>
|
||||
<h1><%=Html.TitleForPage(T("Create a New Account").ToString()) %></h1>
|
||||
<p><%=_Encoded("Use the form below to create a new account.")%></p>
|
||||
<p><%=_Encoded("Passwords are required to be a minimum of {0} characters in length.", ViewData["PasswordLength"] as string)%></p>
|
||||
<%=Html.ValidationSummary(T("Account creation was unsuccessful. Please correct the errors and try again.").ToString()) %>
|
||||
<h1><%: Html.TitleForPage(T("Create a New Account").ToString()) %></h1>
|
||||
<p><%: T("Use the form below to create a new account.")%></p>
|
||||
<p><%: T("Passwords are required to be a minimum of {0} characters in length.", ViewData["PasswordLength"] as string)%></p>
|
||||
<%: Html.ValidationSummary(T("Account creation was unsuccessful. Please correct the errors and try again.").ToString()) %>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Account Information")%></legend>
|
||||
<legend><%: T("Account Information")%></legend>
|
||||
<div>
|
||||
<label for="username"><%=_Encoded("Username:")%></label>
|
||||
<%= Html.TextBox("username") %>
|
||||
<%= Html.ValidationMessage("username") %>
|
||||
<label for="username"><%: T("Username:")%></label>
|
||||
<%: Html.TextBox("username") %>
|
||||
<%: Html.ValidationMessage("username") %>
|
||||
</div>
|
||||
<div>
|
||||
<label for="email"><%=_Encoded("Email:")%></label>
|
||||
<%= Html.TextBox("email") %>
|
||||
<%= Html.ValidationMessage("email") %>
|
||||
<label for="email"><%: T("Email:")%></label>
|
||||
<%: Html.TextBox("email") %>
|
||||
<%: Html.ValidationMessage("email") %>
|
||||
</div>
|
||||
<div>
|
||||
<label for="password"><%=_Encoded("Password:")%></label>
|
||||
<%= Html.Password("password") %>
|
||||
<%= Html.ValidationMessage("password") %>
|
||||
<label for="password"><%: T("Password:")%></label>
|
||||
<%: Html.Password("password") %>
|
||||
<%: Html.ValidationMessage("password") %>
|
||||
</div>
|
||||
<div>
|
||||
<label for="confirmPassword"><%=_Encoded("Confirm password:")%></label>
|
||||
<%= Html.Password("confirmPassword") %>
|
||||
<%= Html.ValidationMessage("confirmPassword") %>
|
||||
<label for="confirmPassword"><%: T("Confirm password:")%></label>
|
||||
<%: Html.Password("confirmPassword") %>
|
||||
<%: Html.ValidationMessage("confirmPassword") %>
|
||||
</div>
|
||||
<div>
|
||||
<input type="submit" value="<%=_Encoded("Register") %>" />
|
||||
<input type="submit" value="<%: T("Register") %>" />
|
||||
</div>
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -1,14 +1,14 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<UserCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Users.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Add User").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Add User").ToString()) %></h1>
|
||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorFor(m=>m.UserName, "inputTextLarge")%>
|
||||
<%=Html.EditorFor(m=>m.Email, "inputTextLarge") %>
|
||||
<%=Html.EditorFor(m=>m.Password, "inputPasswordLarge") %>
|
||||
<%=Html.EditorFor(m=>m.ConfirmPassword, "inputPasswordLarge") %>
|
||||
<%=Html.EditorForItem(Model.User) %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorFor(m=>m.UserName, "inputTextLarge")%>
|
||||
<%: Html.EditorFor(m=>m.Email, "inputTextLarge") %>
|
||||
<%: Html.EditorFor(m=>m.Password, "inputPasswordLarge") %>
|
||||
<%: Html.EditorFor(m=>m.ConfirmPassword, "inputPasswordLarge") %>
|
||||
<%: Html.EditorForItem(Model.User) %>
|
||||
<fieldset>
|
||||
<input class="button primaryAction" type="submit" value="<%=_Encoded("Add") %>" />
|
||||
<input class="button primaryAction" type="submit" value="<%: T("Add") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<UserEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Users.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Edit User").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Edit User").ToString()) %></h1>
|
||||
<%using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorFor(m=>m.Id) %>
|
||||
<%=Html.EditorFor(m=>m.UserName, "inputTextLarge") %>
|
||||
<%=Html.EditorFor(m=>m.Email, "inputTextLarge") %>
|
||||
<%=Html.EditorForItem(Model.User) %>
|
||||
<%: Html.ValidationSummary() %>
|
||||
<%: Html.EditorFor(m=>m.Id) %>
|
||||
<%: Html.EditorFor(m=>m.UserName, "inputTextLarge") %>
|
||||
<%: Html.EditorFor(m=>m.Email, "inputTextLarge") %>
|
||||
<%: Html.EditorForItem(Model.User) %>
|
||||
<fieldset>
|
||||
<input class="button primaryAction" type="submit" value="<%=_Encoded("Save") %>" />
|
||||
<input class="button primaryAction" type="submit" value="<%: T("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
|
||||
<fieldset>
|
||||
<%=Html.LabelForModel() %>
|
||||
<%=Html.Password("", Model, new { @class = "textMedium" })%>
|
||||
<%=Html.ValidationMessage("", "*") %>
|
||||
<%: Html.LabelForModel() %>
|
||||
<%: Html.Password("", Model, new { @class = "textMedium" })%>
|
||||
<%: Html.ValidationMessage("", "*") %>
|
||||
</fieldset>
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
|
||||
<fieldset>
|
||||
<%=Html.LabelForModel() %>
|
||||
<%=Html.TextBox("", Model, new { @class = "textMedium" })%>
|
||||
<%=Html.ValidationMessage("", "*") %>
|
||||
<%: Html.LabelForModel() %>
|
||||
<%: Html.TextBox("", Model, new { @class = "textMedium" })%>
|
||||
<%: Html.ValidationMessage("", "*") %>
|
||||
</fieldset>
|
@@ -1,9 +1,9 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<UsersIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Users.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Manage Users").ToString()) %></h1>
|
||||
<h1><%: Html.TitleForPage(T("Manage Users").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary()%>
|
||||
<div class="manage"><%=Html.ActionLink(T("Add a new user").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<%: Html.ValidationSummary()%>
|
||||
<div class="manage"><%: Html.ActionLink(T("Add a new user").ToString(), "Create", new { }, new { @class = "button primaryAction" })%></div>
|
||||
<fieldset>
|
||||
<table class="items">
|
||||
<colgroup>
|
||||
@@ -13,9 +13,9 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><%=_Encoded("Name")%></th>
|
||||
<th scope="col"><%=_Encoded("Email")%></th>
|
||||
<th scope="col"><%=_Encoded("") %></th>
|
||||
<th scope="col"><%: T("Name")%></th>
|
||||
<th scope="col"><%: T("Email")%></th>
|
||||
<th scope="col"><%: T("") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<% foreach (var row in Model.Rows)
|
||||
@@ -28,8 +28,8 @@
|
||||
<%: row.User.Email %>
|
||||
</td>
|
||||
<td>
|
||||
<%=Html.ActionLink(T("Edit").ToString(), "Edit", new { row.User.Id })%> |
|
||||
<%=Html.ActionLink(T("Remove").ToString(), "Delete", new { row.User.Id })%>
|
||||
<%: Html.ActionLink(T("Edit").ToString(), "Edit", new { row.User.Id })%> |
|
||||
<%: Html.ActionLink(T("Remove").ToString(), "Delete", new { row.User.Id })%>
|
||||
</td>
|
||||
</tr>
|
||||
<%}%>
|
||||
|
@@ -4,5 +4,5 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
|
||||
<h3><%=Html.Link(Html.Encode(Model.Item.Name), Url.Blog(Model.Item.Slug)) %></h3>
|
||||
<div class="blog meta"><a href="<%=Url.Blog(Model.Item.Slug) %>"><%=_Encoded("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%></a></div>
|
||||
<div class="blog meta"><a href="<%=Url.Blog(Model.Item.Slug) %>"><%: T("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%></a></div>
|
||||
<div class="blogdescription"><p><%: Model.Item.Description %></p></div>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h1><%=Html.TitleForPage(Model.Item.Name) %></h1>
|
||||
<h1><%: Html.TitleForPage(Model.Item.Name) %></h1>
|
||||
<% Html.RegisterLink(new LinkEntry { Rel = "wlwmanifest", Type = "application/wlwmanifest+xml", Href = Url.BlogLiveWriterManifest(Model.Item.Slug) });%>
|
||||
<% Html.RegisterLink(new LinkEntry { Rel = "EditURI", Type = "application/rsd+xml", Title = "RSD", Href = Url.BlogRsd(Model.Item.Slug) });%>
|
||||
<% Html.Zone("primary", ":manage");%>
|
@@ -1,13 +1,13 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<BlogPost>>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h1><%=Html.TitleForPage(Model.Item.Title)%></h1>
|
||||
<h1><%: Html.TitleForPage(Model.Item.Title)%></h1>
|
||||
<%-- Sorry, Jon. I need to figure out how we can make this markup possible with the recent metadata/manage split.
|
||||
We can still do it this way but there's isn't yet a story for UI conditional on permissions.
|
||||
What I have in this template is as close as I can get at the moment. --%>
|
||||
<%--<div class="metadata">
|
||||
<% if (Model.Item.Creator != null) {
|
||||
%><div class="posted"><%=_Encoded("Posted by {0} {1}", Model.Item.Creator.UserName, Html.PublishedWhen(Model.Item)) %><% -- | <a href="<%=Url.BlogPostEdit(Model.Item.Blog.Slug, Model.Item.Id) %>" class="ibutton edit"><%=_Encoded("Edit") %></a>-- %></div><%
|
||||
%><div class="posted"><%: T("Posted by {0} {1}", Model.Item.Creator.UserName, Html.PublishedWhen(Model.Item)) %><% -- | <a href="<%=Url.BlogPostEdit(Model.Item.Blog.Slug, Model.Item.Id) %>" class="ibutton edit"><%: T("Edit") %></a>-- %></div><%
|
||||
} %>
|
||||
</div>
|
||||
--%>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user