mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 21:13:35 +08:00
Removing the "caption" input from the media edit template
--HG-- branch : dev
This commit is contained in:
@@ -195,10 +195,11 @@ namespace Orchard.Media.Controllers {
|
||||
}
|
||||
}
|
||||
|
||||
public ActionResult EditMedia(string name, string caption, DateTime lastUpdated, long size, string folderName, string mediaPath) {
|
||||
public ActionResult EditMedia(string name, DateTime lastUpdated, long size, string folderName, string mediaPath) {
|
||||
var model = new MediaItemEditViewModel();
|
||||
model.Name = name;
|
||||
model.Caption = caption ?? String.Empty;
|
||||
// todo: reimplement
|
||||
//model.Caption = caption ?? String.Empty;
|
||||
model.LastUpdated = lastUpdated;
|
||||
model.Size = size;
|
||||
model.FolderName = folderName;
|
||||
|
@@ -19,7 +19,7 @@
|
||||
@Html.ValidationSummary()
|
||||
<div class="primary">
|
||||
<div>
|
||||
<img src="@Model.PublicUrl" class="previewImage" alt="@Model.Caption" />
|
||||
<img src="@Model.PublicUrl" class="previewImage"/>
|
||||
</div>
|
||||
<fieldset>
|
||||
@* todo: make these real (including markup) *@
|
||||
@@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for="embedPath">@T("Embed:")</label>
|
||||
<input id="embedPath" class="textMedium" name="embedPath" type="text" readonly="readonly" value="<img src="@Href("~/Media/" + Model.RelativePath + "/" + Model.Name)" @* width="500" height="375" *@ alt="@Model.Caption" />" />
|
||||
<input id="embedPath" class="textMedium" name="embedPath" type="text" readonly="readonly" value="<img src="@Href("~/Media/" + Model.RelativePath + "/" + Model.Name)" @* width="500" height="375" *@ />" />
|
||||
<span class="hint">@T("Copy this html to add this image to your site.")</span>
|
||||
</div>
|
||||
|
||||
@@ -42,9 +42,6 @@
|
||||
<input id="NewName" class="textMedium" name="NewName" type="text" value="@Model.Name"/>
|
||||
</div>
|
||||
<div>
|
||||
<label for="Caption">@T("Caption")</label>
|
||||
<input id="Caption" class="textMedium" name="Caption" type="text" value="@Model.Caption"/>
|
||||
<span class="hint">@T("This will be used for the image alt tag.")</span>
|
||||
<input type="hidden" id="LastUpdated" name="LastUpdated" value="@Model.LastUpdated"/>
|
||||
<input type="hidden" id="Size" name="Size" value="@Model.Size"/>
|
||||
<input type="hidden" id="FolderName" name="FolderName" value="@Model.FolderName"/>
|
||||
@@ -58,7 +55,7 @@
|
||||
@*
|
||||
<div class="secondary" style="border:1px solid #ff0000;">
|
||||
<h2>@T("Preview")</h2>
|
||||
<div><img src="@Href("~/Media/" + Html.Encode(Model.RelativePath + "/" + Model.Name))" class="previewImage" alt="@Model.Caption" /></div>
|
||||
<div><img src="@Href("~/Media/" + Html.Encode(Model.RelativePath + "/" + Model.Name))" class="previewImage" /></div>
|
||||
<ul>
|
||||
@// todo: make these real (including markup)
|
||||
<li><label>@T("Dimensions: <span>500 x 375 pixels</span>")</label></li>
|
||||
@@ -66,7 +63,7 @@
|
||||
<li><label>@T("Added on: <span>{0} by Orchard User</span>", Model.LastUpdated)</label></li>
|
||||
<li>
|
||||
<label for="embedPath">@T("Embed:")</label>
|
||||
<input id="embedPath" class="text" name="embedPath" type="text" readonly="readonly" value="@T("<img src=\"{0}\" width=\"{1}\" height=\"{2}\" alt=\"{3}\" />", ResolveUrl("~/Media/" + Model.RelativePath + "/" + Model.Name), 500, 375, Model.Caption)" />
|
||||
<input id="embedPath" class="text" name="embedPath" type="text" readonly="readonly" value="@T("<img src=\"{0}\" width=\"{1}\" height=\"{2}\" />", ResolveUrl("~/Media/" + Model.RelativePath + "/" + Model.Name), 500, 375)" />
|
||||
<span class="hint">@T("Copy this html to add this image to your site.")</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user