Files
Orchard/src/Orchard.Web/Packages/Orchard.Media/Views/Admin/Add.aspx
skewed 8863709314 Some initial work on admin view cleanup.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041367
2009-11-19 09:28:45 +00:00

33 lines
1.8 KiB
Plaintext

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MediaItemAddViewModel>" %>
<%@ Import Namespace="Orchard.Media.Helpers"%>
<%@ Import Namespace="Orchard.Media.Models"%>
<%@ Import Namespace="Orchard.Media.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Header"); %>
<div class="yui-g">
<h2 class="separator">Add Media </h2>
<p class="bottomSpacer">
<%=Html.ActionLink("Media Folders", "Index")%> &#62;
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
<%=Html.ActionLink(navigation.FolderName, "Edit",
new {name = navigation.FolderName, mediaPath = navigation.FolderPath})%> &#62;
<% } %>
Add Media</p>
<div id="dialog" title="Upload files">
<% using (Html.BeginForm("Add", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) {%>
<ol>
<li><label for="pageTitle">File Path - Multiple files must be in a zipped folder:</label>
<input id="FolderName" name="FolderName" type="hidden" value="<%= Model.FolderName %>" />
<input id="MediaPath" name="MediaPath" type="hidden" value="<%= Model.MediaPath %>" />
<input id="MediaItemPath" name="MediaItemPath" type="file" class="button" value="Browse" size="64"/>
<p class="helperText">After your files have been uploaded, you can edit the titles and descriptions.</p>
</li>
<li>
<input type="submit" class="button" value="Upload" />
</li>
</ol>
<% } %>
</div>
</div>
<% Html.Include("Footer"); %>