2010-01-08 08:38:07 +00:00
|
|
|
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<MediaFolderEditViewModel>" %>
|
2009-11-07 22:49:58 +00:00
|
|
|
<%@ Import Namespace="Orchard.Media.Models"%>
|
|
|
|
<%@ Import Namespace="Orchard.Media.Helpers"%>
|
|
|
|
<%@ Import Namespace="Orchard.Media.ViewModels"%>
|
2010-01-08 08:38:07 +00:00
|
|
|
<h1><%=Html.TitleForPage(T("Manage Folder").ToString())%></h1>
|
2010-03-02 16:59:03 -08:00
|
|
|
|
|
|
|
|
|
|
|
<%--<div class="manage"><%=Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button"})%></div>--%>
|
|
|
|
|
|
|
|
<div class="breadCrumbs">
|
2010-01-08 08:38:07 +00:00
|
|
|
<p><%=Html.ActionLink(T("Media Folders").ToString(), "Index")%> >
|
2009-12-17 10:29:33 +00:00
|
|
|
<%foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {%>
|
|
|
|
<%=Html.ActionLink(navigation.FolderName, "Edit",
|
|
|
|
new {name = navigation.FolderName, mediaPath = navigation.FolderPath})%> >
|
|
|
|
|
|
|
|
<% } %>
|
2010-01-08 08:38:07 +00:00
|
|
|
<%=_Encoded("Manage Folder")%></p>
|
2010-03-02 16:59:03 -08:00
|
|
|
</div>
|
|
|
|
<div class="folderProperties">
|
|
|
|
<p><%=Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath })%></p>
|
|
|
|
</div>
|
|
|
|
<div class="clearBoth"></div>
|
|
|
|
|
|
|
|
|
2009-12-23 16:30:15 +00:00
|
|
|
<% using(Html.BeginFormAntiForgeryPost()) { %>
|
2009-12-17 10:29:33 +00:00
|
|
|
<fieldset class="actions bulk">
|
2010-01-08 08:38:07 +00:00
|
|
|
<label for="publishActions"><%=_Encoded("Actions:")%></label>
|
2009-12-17 10:29:33 +00:00
|
|
|
<select id="Select1" name="publishActions">
|
2010-01-08 08:38:07 +00:00
|
|
|
<option value="1"><%=_Encoded("Delete")%></option>
|
2009-12-17 10:29:33 +00:00
|
|
|
</select>
|
2010-03-02 16:59:03 -08:00
|
|
|
<input class="button" type="submit" value="<%=_Encoded("Apply") %>" />
|
2009-12-17 10:29:33 +00:00
|
|
|
</fieldset>
|
|
|
|
<div class="manage">
|
2010-03-02 16:59:03 -08:00
|
|
|
<%=Html.ActionLink(T("Add media").ToString(), "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button primaryAction" })%>
|
2010-01-08 08:38:07 +00:00
|
|
|
<%=Html.ActionLink(T("Add a folder").ToString(), "Create", new { Model.MediaPath }, new { @class = "button" })%>
|
2009-12-17 10:29:33 +00:00
|
|
|
</div>
|
|
|
|
<fieldset>
|
2010-01-08 08:38:07 +00:00
|
|
|
<table class="items" summary="<%=_Encoded("This is a table of the pages currently available for use in your application.") %>">
|
2009-12-17 10:29:33 +00:00
|
|
|
<colgroup>
|
|
|
|
<col id="Col1" />
|
|
|
|
<col id="Col2" />
|
|
|
|
<col id="Col3" />
|
|
|
|
<col id="Col4" />
|
|
|
|
<col id="Col5" />
|
|
|
|
<col id="Col6" />
|
|
|
|
</colgroup>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
2010-01-08 08:38:07 +00:00
|
|
|
<th scope="col"><%=_Encoded("Name") %></th>
|
|
|
|
<th scope="col"><%=_Encoded("Author") %></th>
|
|
|
|
<th scope="col"><%=_Encoded("Last Updated") %></th>
|
|
|
|
<th scope="col"><%=_Encoded("Type") %></th>
|
|
|
|
<th scope="col"><%=_Encoded("Size") %></th>
|
2009-12-17 10:29:33 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<%foreach (var mediaFile in Model.MediaFiles) {
|
|
|
|
%>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2010-01-08 08:38:07 +00:00
|
|
|
<input type="checkbox" value="true" name="<%=_Encoded("Checkbox.File.{0}", mediaFile.Name) %>"/>
|
2010-03-01 14:59:34 -08:00
|
|
|
<input type="hidden" value="<%=_Encoded(Model.MediaPath) %>" name="<%=_Encoded(mediaFile.Name) %>" />
|
2009-12-17 10:29:33 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%=Html.ActionLink(mediaFile.Name, "EditMedia", new { name = mediaFile.Name,
|
|
|
|
lastUpdated = mediaFile.LastUpdated,
|
|
|
|
size = mediaFile.Size,
|
|
|
|
folderName = mediaFile.FolderName,
|
|
|
|
mediaPath = Model.MediaPath })%>
|
|
|
|
</td>
|
2010-01-08 08:38:07 +00:00
|
|
|
<td><%=_Encoded("Orchard User")%></td>
|
|
|
|
<td><%=mediaFile.LastUpdated %></td>
|
|
|
|
<td><%=Html.Encode(mediaFile.Type) %></td>
|
|
|
|
<td><%=mediaFile.Size %></td>
|
2009-12-17 10:29:33 +00:00
|
|
|
</tr>
|
|
|
|
<%}%>
|
|
|
|
<%foreach (var mediaFolder in Model.MediaFolders) {
|
|
|
|
%>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2010-01-08 08:38:07 +00:00
|
|
|
<input type="checkbox" value="true" name="<%=_Encoded("Checkbox.Folder.{0}", mediaFolder.Name) %>"/>
|
|
|
|
<input type="hidden" value="<%=Html.Encode(mediaFolder.MediaPath) %>" name="<%=Html.Encode(mediaFolder.Name) %>" />
|
2009-12-17 10:29:33 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-02-06 01:10:22 -08:00
|
|
|
<img src="<%=ResolveUrl("~/Modules/Orchard.Media/Content/Admin/images/folder.gif")%>" height="16" width="16" class="mediaTypeIcon" alt="<%=_Encoded("Folder") %>" />
|
2010-01-08 08:38:07 +00:00
|
|
|
<%=Html.ActionLink(mediaFolder.Name, "Edit", new { name = mediaFolder.Name, mediaPath = mediaFolder.MediaPath})%>
|
2009-12-17 10:29:33 +00:00
|
|
|
</td>
|
2010-01-08 08:38:07 +00:00
|
|
|
<td><%=_Encoded("Orchard User")%></td>
|
|
|
|
<td><%=mediaFolder.LastUpdated %></td>
|
|
|
|
<td><%=_Encoded("Folder")%></td>
|
|
|
|
<td><%=mediaFolder.Size %></td>
|
2009-12-17 10:29:33 +00:00
|
|
|
</tr>
|
|
|
|
<%}%>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
<div class="manage">
|
2010-03-02 16:59:03 -08:00
|
|
|
<%=Html.ActionLink(T("Add media").ToString(), "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button primaryAction" })%>
|
2010-01-08 08:38:07 +00:00
|
|
|
<%=Html.ActionLink(T("Add a folder").ToString(), "Create", new { Model.MediaPath }, new { @class = "button" })%>
|
2009-12-17 10:29:33 +00:00
|
|
|
</div>
|
2009-12-23 16:30:15 +00:00
|
|
|
<% } %>
|