From b46636c975ff4847970a6da5c87157e53364c82e Mon Sep 17 00:00:00 2001 From: jowall Date: Tue, 2 Mar 2010 11:48:47 -0800 Subject: [PATCH] Edit Role: Cleanup checkboxes to make the layout vertical. --HG-- branch : dev --- src/Orchard.Web/Core/Settings/Views/Admin/Index.ascx | 4 ++-- .../Views/EditorTemplates/Parts/Roles.UserRoles.ascx | 2 ++ .../Modules/Orchard.Users/Views/Admin/Create.aspx | 4 ++-- .../Views/Admin/EditorTemplates/inputPasswordLarge.ascx | 2 +- .../Views/Admin/EditorTemplates/inputTextLarge.ascx | 2 +- src/Orchard.Web/Orchard.Web.csproj | 6 ++---- src/Orchard.Web/Themes/TheAdmin/Styles/site.css | 8 ++++++-- 7 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/Orchard.Web/Core/Settings/Views/Admin/Index.ascx b/src/Orchard.Web/Core/Settings/Views/Admin/Index.ascx index 92deb3ffa..096432d18 100644 --- a/src/Orchard.Web/Core/Settings/Views/Admin/Index.ascx +++ b/src/Orchard.Web/Core/Settings/Views/Admin/Index.ascx @@ -7,7 +7,7 @@ <%=_Encoded("Global Settings")%>
- <%=Html.EditorFor(m => m.SiteName) %> + <%=Html.EditorFor(m => m.SiteName)%> <%=Html.ValidationMessage("SiteName", "*") %>
@@ -26,4 +26,4 @@ <%=Html.EditorFor(s => s.Id) %> " /> -<% } %> \ No newline at end of file +<% } %> diff --git a/src/Orchard.Web/Modules/Orchard.Roles/Views/EditorTemplates/Parts/Roles.UserRoles.ascx b/src/Orchard.Web/Modules/Orchard.Roles/Views/EditorTemplates/Parts/Roles.UserRoles.ascx index 0bc3fbd50..ce8827252 100644 --- a/src/Orchard.Web/Modules/Orchard.Roles/Views/EditorTemplates/Parts/Roles.UserRoles.ascx +++ b/src/Orchard.Web/Modules/Orchard.Roles/Views/EditorTemplates/Parts/Roles.UserRoles.ascx @@ -7,8 +7,10 @@ foreach (var entry in Model.Roles) {%> <%=Html.Hidden("Roles[" + index + "].RoleId", entry.RoleId)%> <%=Html.Hidden("Roles[" + index + "].Name", entry.Name)%> +
<%=Html.CheckBox("Roles[" + index + "].Granted", entry.Granted)%> +
<%++index; } } diff --git a/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/Create.aspx b/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/Create.aspx index 99d5bd35f..a8d80f094 100644 --- a/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/Create.aspx +++ b/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/Create.aspx @@ -3,12 +3,12 @@

<%=Html.TitleForPage(T("Add User").ToString()) %>

<%using (Html.BeginFormAntiForgeryPost()) { %> <%=Html.ValidationSummary() %> - <%=Html.EditorFor(m=>m.UserName, "inputTextLarge") %> + <%=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) %>
- " /> + " />
<% } %> diff --git a/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/EditorTemplates/inputPasswordLarge.ascx b/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/EditorTemplates/inputPasswordLarge.ascx index 2603310ae..3378bcb33 100644 --- a/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/EditorTemplates/inputPasswordLarge.ascx +++ b/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/EditorTemplates/inputPasswordLarge.ascx @@ -1,6 +1,6 @@ <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%=Html.LabelForModel() %> - <%=Html.Password("", Model, new { @class = "text" }) %> + <%=Html.Password("", Model, new { @class = "textMedium" })%> <%=Html.ValidationMessage("", "*") %>
\ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/EditorTemplates/inputTextLarge.ascx b/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/EditorTemplates/inputTextLarge.ascx index e55755fc7..68f26c8a2 100644 --- a/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/EditorTemplates/inputTextLarge.ascx +++ b/src/Orchard.Web/Modules/Orchard.Users/Views/Admin/EditorTemplates/inputTextLarge.ascx @@ -1,6 +1,6 @@ <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%=Html.LabelForModel() %> - <%=Html.TextBox("", Model, new { @class = "text" }) %> + <%=Html.TextBox("", Model, new { @class = "textMedium" })%> <%=Html.ValidationMessage("", "*") %>
\ No newline at end of file diff --git a/src/Orchard.Web/Orchard.Web.csproj b/src/Orchard.Web/Orchard.Web.csproj index 184187747..8efcadefa 100644 --- a/src/Orchard.Web/Orchard.Web.csproj +++ b/src/Orchard.Web/Orchard.Web.csproj @@ -2,7 +2,7 @@ Debug AnyCPU - 9.0.30729 + 9.0.21022 2.0 {50B779EA-EC00-4699-84C0-03B395C365D2} {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} @@ -174,6 +174,7 @@ + @@ -255,9 +256,6 @@ False - False - - False diff --git a/src/Orchard.Web/Themes/TheAdmin/Styles/site.css b/src/Orchard.Web/Themes/TheAdmin/Styles/site.css index df6e7f2c5..6a8658e0c 100644 --- a/src/Orchard.Web/Themes/TheAdmin/Styles/site.css +++ b/src/Orchard.Web/Themes/TheAdmin/Styles/site.css @@ -384,13 +384,16 @@ label input { text-indent:3ex; /* todo: (heskew) this might look out of place */ } /* todo: (heskew) try to get .text on stuff like .text-box */ -select, textarea, input.text, input.text-box { +select, textarea, input.text, input.textMedium, input.text-box { padding:2px; border:1px solid #bdbcbc; } -input.text, input.text-box { +input.text, input.textMedium, input.text-box { line-height:1.2em; } +input.textMedium { + width:26em; +} select:focus, textarea:focus, input.text:focus, input.text-box:focus { border-color:#666d51; } @@ -428,6 +431,7 @@ fieldset { .settings legend { margin:0 0 -.4em 0; } +/* todo: This style is the same as textMedium. Consolidate if possible */ .settings input.text, .settings input.text-box { width:26em; }