mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
A little cleanup on the Navigation management UI
--HG-- branch : dev
This commit is contained in:
@@ -3,13 +3,19 @@
|
||||
var menu = Model.Menu.FirstOrDefault(); %>
|
||||
<h1><%=Html.TitleForPage(T("Edit Main Menu").ToString())%></h1><%
|
||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<table>
|
||||
<table class="items">
|
||||
<colgroup>
|
||||
<col id="Text" />
|
||||
<col id="Position" />
|
||||
<col id="Url" />
|
||||
<col id="Actions" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Text</td>
|
||||
<td>Position</td>
|
||||
<td>Url</td>
|
||||
<td></td>
|
||||
<td scope="col"><%=_Encoded("Text") %></td>
|
||||
<td scope="col"><%=_Encoded("Position") %></td>
|
||||
<td scope="col"><%=_Encoded("Url") %></td>
|
||||
<td scope="col"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><%
|
||||
@@ -18,27 +24,22 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<td><%=Html.TextBox("text", menuItem.Text) %></td>
|
||||
<td><%=Html.TextBox("position", menuItem.Position) %></td>
|
||||
<td><%=Html.TextBox("url", menuItem.Url) %></td>
|
||||
<td>Delete Button</td>
|
||||
<td><a href="#" class="remove button">delete</a></td>
|
||||
</tr><%
|
||||
} %>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Update All Button</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><%
|
||||
</table>
|
||||
<fieldset class="actions"><button type="submit"><%=_Encoded("Update All") %></button></fieldset><%
|
||||
}
|
||||
|
||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<table>
|
||||
<table class="items">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="text" name="addtext" /></td>
|
||||
<td><input type="text" name="addposition" /></td>
|
||||
<td><input type="text" name="addurl" /></td>
|
||||
<td>Add Button</td>
|
||||
<td><input type="text" name="addtext" id="addtext" /></td>
|
||||
<td><input type="text" name="addposition" id="addposition" /></td>
|
||||
<td><input type="text" name="addurl" id="addurl" /></td>
|
||||
<td><button class="add" type="submit"><%=_Encoded("Add") %></button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><%
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace Orchard.Setup.Controllers {
|
||||
|
||||
// add a menu item for the admin
|
||||
var adminMenuItem = contentManager.Create("menuitem");
|
||||
adminMenuItem.As<MenuPart>().MenuPosition = null; //"2";
|
||||
adminMenuItem.As<MenuPart>().MenuPosition = "2";
|
||||
adminMenuItem.As<MenuPart>().MenuText = T("Admin").ToString();
|
||||
adminMenuItem.As<MenuPart>().OnMainMenu = true;
|
||||
//adminMenuItem.As<MenuItem>().Permissions = new [] {StandardPermissions.AccessAdminPanel};
|
||||
|
||||
@@ -151,7 +151,8 @@ h5 { font-size:1.4em; } /* 14px */
|
||||
|
||||
h6, p, legend, label, input, select, .button,
|
||||
.message, .validation-summary-errors,
|
||||
table.items th, table.items td, table.items caption { font-size:1.4em; line-height:1.4em; } /* 15px */
|
||||
table.items th, table.items td, table.items caption { font-size:1.4em; line-height:1.4em; } /* 14px */
|
||||
table.items p, table.items label, table.items input, table.items .button { font-size:1em; line-height:1em; }
|
||||
p .button { font-size:inherit; }
|
||||
.meta, .hint { font-size:1.2em; } /* 12px */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user