mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updated Cultures page UI.
--HG-- branch : dev
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
.site-cultures {
|
||||
font-size:1.2em;
|
||||
font-size:1.4em;
|
||||
line-height:1.8em;
|
||||
overflow:auto;
|
||||
}
|
||||
.site-cultures li {
|
||||
@@ -14,5 +15,5 @@
|
||||
}
|
||||
.site-cultures div {
|
||||
float:left;
|
||||
width:6em;
|
||||
width:8em;
|
||||
}
|
@@ -1,18 +1,19 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<SiteCulturesViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Core.Settings.ViewModels" %><%
|
||||
Html.RegisterStyle("admin.css"); %>
|
||||
<h1><%:Html.TitleForPage(T("Supported Cultures").ToString()) %></h1>
|
||||
<h1><%:Html.TitleForPage(T("Cultures").ToString()) %></h1>
|
||||
<p class="breadcrumb"><%:Html.ActionLink(T("Manage Settings").Text, "index") %><%:T(" > ") %><%:T("Supported Cultures")%></p>
|
||||
<h2><%:T("Cultures this site supports") %></h2>
|
||||
<h3><%:T("Available Cultures") %></h3>
|
||||
<% using (Html.BeginFormAntiForgeryPost("AddCulture")) { %>
|
||||
<%:Html.ValidationSummary() %>
|
||||
<fieldset class="addCulture">
|
||||
<label for="CultureName"><%:T("Add a culture...") %></label>
|
||||
<%:Html.DropDownList("CultureName", new SelectList(Model.AvailableSystemCultures.OrderBy(s => s), Model.CurrentCulture))%>
|
||||
<button class="primaryAction" type="submit"><%:T("Add") %></button>
|
||||
</fieldset>
|
||||
<% } %>
|
||||
<h3><%:T("Cultures this site supports") %></h3>
|
||||
<%: Html.UnorderedList(
|
||||
Model.SiteCultures.OrderBy(s => s),
|
||||
(s, i) => Html.DisplayFor(scvm => s, s == Model.CurrentCulture ? "CurrentCulture" : "RemovableCulture", ""),
|
||||
"site-cultures", "culture", "odd")%>
|
||||
<% using (Html.BeginFormAntiForgeryPost("AddCulture")) { %>
|
||||
<%:Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="CultureName"><%:T("Add a culture...") %></label>
|
||||
<%:Html.DropDownList("CultureName", new SelectList(Model.AvailableSystemCultures.OrderBy(s => s), Model.CurrentCulture)) %>
|
||||
<button class="primaryAction" type="submit"><%:T("Add") %></button>
|
||||
</fieldset>
|
||||
<% } %>
|
||||
"site-cultures", "culture", "odd")%>
|
@@ -397,8 +397,8 @@ label input {
|
||||
}
|
||||
/* todo: (heskew) try to get .text on stuff like .text-box */
|
||||
select, textarea, input.text, input.textMedium, input.text-box {
|
||||
padding:2px;
|
||||
border:1px solid #bdbcbc;
|
||||
padding:1px;
|
||||
border:1px solid #bdbcbc;
|
||||
}
|
||||
input.text, input.textMedium, input.text-box {
|
||||
line-height:1.2em;
|
||||
|
Reference in New Issue
Block a user