Edit Role: Cleanup checkboxes to make the layout vertical.

--HG--
branch : dev
This commit is contained in:
jowall
2010-03-02 11:48:47 -08:00
parent bcce1c3a6c
commit b46636c975
7 changed files with 16 additions and 12 deletions

View File

@@ -7,7 +7,7 @@
<legend><%=_Encoded("Global Settings")%></legend> <legend><%=_Encoded("Global Settings")%></legend>
<div> <div>
<label for="SiteName"><%=_Encoded("Site name") %></label> <label for="SiteName"><%=_Encoded("Site name") %></label>
<%=Html.EditorFor(m => m.SiteName) %> <%=Html.EditorFor(m => m.SiteName)%>
<%=Html.ValidationMessage("SiteName", "*") %> <%=Html.ValidationMessage("SiteName", "*") %>
</div> </div>
<div> <div>

View File

@@ -7,8 +7,10 @@
foreach (var entry in Model.Roles) {%> foreach (var entry in Model.Roles) {%>
<%=Html.Hidden("Roles[" + index + "].RoleId", entry.RoleId)%> <%=Html.Hidden("Roles[" + index + "].RoleId", entry.RoleId)%>
<%=Html.Hidden("Roles[" + index + "].Name", entry.Name)%> <%=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"%>"><%=Html.Encode(entry.Name) %></label> <label class="forcheckbox" for="<%="Roles[" + index + "]_Granted"%>"><%=Html.Encode(entry.Name) %></label>
</div>
<%++index; <%++index;
} }
} }

View File

@@ -3,12 +3,12 @@
<h1><%=Html.TitleForPage(T("Add User").ToString()) %></h1> <h1><%=Html.TitleForPage(T("Add User").ToString()) %></h1>
<%using (Html.BeginFormAntiForgeryPost()) { %> <%using (Html.BeginFormAntiForgeryPost()) { %>
<%=Html.ValidationSummary() %> <%=Html.ValidationSummary() %>
<%=Html.EditorFor(m=>m.UserName, "inputTextLarge") %> <%=Html.EditorFor(m=>m.UserName, "inputTextLarge")%>
<%=Html.EditorFor(m=>m.Email, "inputTextLarge") %> <%=Html.EditorFor(m=>m.Email, "inputTextLarge") %>
<%=Html.EditorFor(m=>m.Password, "inputPasswordLarge") %> <%=Html.EditorFor(m=>m.Password, "inputPasswordLarge") %>
<%=Html.EditorFor(m=>m.ConfirmPassword, "inputPasswordLarge") %> <%=Html.EditorFor(m=>m.ConfirmPassword, "inputPasswordLarge") %>
<%=Html.EditorForItem(Model.User) %> <%=Html.EditorForItem(Model.User) %>
<fieldset> <fieldset>
<input class="button" type="submit" value="<%=_Encoded("Create") %>" /> <input class="button primaryAction" type="submit" value="<%=_Encoded("Create") %>" />
</fieldset> </fieldset>
<% } %> <% } %>

View File

@@ -1,6 +1,6 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
<fieldset> <fieldset>
<%=Html.LabelForModel() %> <%=Html.LabelForModel() %>
<%=Html.Password("", Model, new { @class = "text" }) %> <%=Html.Password("", Model, new { @class = "textMedium" })%>
<%=Html.ValidationMessage("", "*") %> <%=Html.ValidationMessage("", "*") %>
</fieldset> </fieldset>

View File

@@ -1,6 +1,6 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
<fieldset> <fieldset>
<%=Html.LabelForModel() %> <%=Html.LabelForModel() %>
<%=Html.TextBox("", Model, new { @class = "text" }) %> <%=Html.TextBox("", Model, new { @class = "textMedium" })%>
<%=Html.ValidationMessage("", "*") %> <%=Html.ValidationMessage("", "*") %>
</fieldset> </fieldset>

View File

@@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion> <ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{50B779EA-EC00-4699-84C0-03B395C365D2}</ProjectGuid> <ProjectGuid>{50B779EA-EC00-4699-84C0-03B395C365D2}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
@@ -174,6 +174,7 @@
<Content Include="Themes\Classic\Views\DisplayTemplates\Items\Blogs.Blog.Summary.ascx" /> <Content Include="Themes\Classic\Views\DisplayTemplates\Items\Blogs.Blog.Summary.ascx" />
<Content Include="Themes\Classic\Views\DisplayTemplates\Items\Blogs.BlogPost.ascx" /> <Content Include="Themes\Classic\Views\DisplayTemplates\Items\Blogs.BlogPost.ascx" />
<Content Include="Themes\Classic\Views\DisplayTemplates\Items\Blogs.BlogPost.Summary.ascx" /> <Content Include="Themes\Classic\Views\DisplayTemplates\Items\Blogs.BlogPost.Summary.ascx" />
<Content Include="Themes\Classic\Views\DisplayTemplates\Items\Pages.Page.ascx" />
<Content Include="Themes\Classic\Views\DisplayTemplates\Parts\Blogs.BlogPost.List.ascx" /> <Content Include="Themes\Classic\Views\DisplayTemplates\Parts\Blogs.BlogPost.List.ascx" />
<Content Include="Themes\Classic\Views\Footer.ascx" /> <Content Include="Themes\Classic\Views\Footer.ascx" />
<Content Include="Themes\Classic\Views\Layout.ascx" /> <Content Include="Themes\Classic\Views\Layout.ascx" />
@@ -255,9 +256,6 @@
<IISUrl> <IISUrl>
</IISUrl> </IISUrl>
<NTLMAuthentication>False</NTLMAuthentication> <NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties> </WebProjectProperties>
</FlavorProperties> </FlavorProperties>

View File

@@ -384,13 +384,16 @@ label input {
text-indent:3ex; /* todo: (heskew) this might look out of place */ text-indent:3ex; /* todo: (heskew) this might look out of place */
} }
/* todo: (heskew) try to get .text on stuff like .text-box */ /* 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; padding:2px;
border:1px solid #bdbcbc; border:1px solid #bdbcbc;
} }
input.text, input.text-box { input.text, input.textMedium, input.text-box {
line-height:1.2em; line-height:1.2em;
} }
input.textMedium {
width:26em;
}
select:focus, textarea:focus, input.text:focus, input.text-box:focus { select:focus, textarea:focus, input.text:focus, input.text-box:focus {
border-color:#666d51; border-color:#666d51;
} }
@@ -428,6 +431,7 @@ fieldset {
.settings legend { .settings legend {
margin:0 0 -.4em 0; margin:0 0 -.4em 0;
} }
/* todo: This style is the same as textMedium. Consolidate if possible */
.settings input.text, .settings input.text-box { .settings input.text, .settings input.text-box {
width:26em; width:26em;
} }