mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
- More blogs admin UI work (mostly on /admin/blogs/<blog name>)
- More admin UI cleanup (working on getting rid of the remaining yui markup) --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043118
This commit is contained in:
@@ -322,6 +322,9 @@ select, textarea, input.text, input.text-box, #PublishLaterDate {
|
||||
border:1px solid #d2d6c6;
|
||||
color:#5a5b32;
|
||||
}
|
||||
input.text {
|
||||
line-height:1.2em;
|
||||
}
|
||||
select:focus, textarea:focus, input.text:focus, input.text-box:focus, #PublishLaterDate:focus {
|
||||
border-color:#666d51;
|
||||
}
|
||||
|
@@ -1,8 +1,12 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Blog>" %>
|
||||
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||
<%@ Import Namespace="Orchard.Models"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h3><a href="<%=Url.BlogForAdmin(Model.Slug) %>"><%=Html.Encode(Model.Name) %></a></h3>
|
||||
<div class="meta"><a href="<%=Url.BlogForAdmin(Model.Slug) %>"><%=Model.PostCount %> posts</a> | <a href="#"><%=(new Random()).Next(0, 1000) %> comments</a></div>
|
||||
<div class="meta">
|
||||
<% var postCount = Model.PostCount; %><a href="<%=Url.BlogForAdmin(Model.Slug) %>"><%=string.Format("{0} post{1}", postCount, postCount == 1 ? "" : "s") %></a>
|
||||
| <%var commentCount = (new Random()).Next(0, 1000); // Model.As<HasComments>().Comments.Count(); %><a href="#"><%=string.Format("{0} comment{1}", commentCount, commentCount == 1 ? "" : "s") %></a></div>
|
||||
<%--<p>[list of authors] [modify blog access]</p>--%>
|
||||
<p><%=Model.Description %></p>
|
||||
<p class="actions">
|
||||
|
@@ -2,20 +2,12 @@
|
||||
<%@ Import Namespace="Orchard.Security" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("AdminHead"); %>
|
||||
<div class="yui-u">
|
||||
<h2 class="separator">
|
||||
Add a new User</h2>
|
||||
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<ol>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForModel() %>
|
||||
<li class="clearLayout">
|
||||
<input class="button" type="submit" value="Create" />
|
||||
<%=Html.ActionLink("Cancel", "Index", new{}, new{@class="button"}) %></li>
|
||||
</ol>
|
||||
<%}/*EndForm*/%>
|
||||
</div>
|
||||
<h2>Add a new User</h2>
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForModel() %>
|
||||
<fieldset>
|
||||
<input class="button" type="submit" value="Create" />
|
||||
</fieldset>
|
||||
<% } %>
|
||||
<% Html.Include("AdminFoot"); %>
|
@@ -1,13 +1,14 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Orchard.Users.ViewModels.UserCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Utility" %>
|
||||
|
||||
<ol>
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(m=>m.UserName, "inputTextLarge") %>
|
||||
<%=Html.EditorFor(m=>m.Email, "inputTextLarge") %>
|
||||
<%=Html.EditorFor(m=>m.Password, "inputPasswordLarge") %>
|
||||
<%=Html.EditorFor(m=>m.ConfirmPassword, "inputPasswordLarge") %>
|
||||
</ol>
|
||||
|
||||
<% foreach(var e in Model.ItemView.Editors) {%>
|
||||
<%=Html.EditorFor(m => e.Model, e.TemplateName, e.Prefix)%>
|
||||
<%} %>
|
||||
</fieldset><%
|
||||
foreach(var e in Model.ItemView.Editors) {
|
||||
var editor = e;%>
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(m => editor.Model, editor.TemplateName, editor.Prefix)%>
|
||||
</fieldset>
|
||||
<% } %>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
|
||||
<li>
|
||||
<fieldset>
|
||||
<%=Html.LabelForModel() %>
|
||||
<%=Html.Password("",Model,new{@class="inputText inputTextLarge"}) %>
|
||||
<%=Html.Password("",Model,new{@class="text"}) %>
|
||||
<%=Html.ValidationMessage("","*")%>
|
||||
</li>
|
||||
</fieldset>
|
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
|
||||
<li>
|
||||
<fieldset>
|
||||
<%=Html.LabelForModel() %>
|
||||
<%=Html.TextBox("",Model,new{@class="inputText inputTextLarge"}) %>
|
||||
<%=Html.TextBox("",Model,new{@class="text"}) %>
|
||||
<%=Html.ValidationMessage("","*")%>
|
||||
</li>
|
||||
</fieldset>
|
||||
|
Reference in New Issue
Block a user