mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044218
21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MediaFolderCreateViewModel>" %>
|
|
<%@ Import Namespace="Orchard.Media.Models"%>
|
|
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
|
<%@ Import Namespace="Orchard.Media.ViewModels"%>
|
|
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
|
<h2>Add a Folder</h2>
|
|
<p><%=Html.ActionLink("Media Folders", "Index")%> >
|
|
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
|
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
|
new {name = navigation.FolderName, mediaPath = navigation.FolderPath})%> >
|
|
<% } %>
|
|
Add a Folder</p>
|
|
<%using (Html.BeginForm()) { %>
|
|
<%= Html.ValidationSummary() %>
|
|
<fieldset>
|
|
<label for="Name">Folder Name:</label>
|
|
<input id="Name" class="text" name="Name" type="text" />
|
|
<input id="MediaPath" name="MediaPath" type="hidden" value="<%= Model.MediaPath %>" />
|
|
<input type="submit" class="button" value="Save" />
|
|
</fieldset>
|
|
<% } %> |