Bringing back Orchard.Packaging

--HG--
branch : dev
This commit is contained in:
BertrandLeRoy
2010-09-16 13:56:25 -07:00
parent 3077bc63a2
commit d862b12000

View File

@@ -5,7 +5,7 @@
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary(T("Package creation was unsuccessful. Please correct the errors and try again.").ToString())
@foreach (var group in Model.Extensions.Where(x => !x.Location.StartsWith("~/Core")).GroupBy(x => x.ExtensionType)) {
foreach (var group in Model.Extensions.Where(x => !x.Location.StartsWith("~/Core")).GroupBy(x => x.ExtensionType)) {
<fieldset>
<legend>@T("Harvest") @group.Key</legend>
<ul>
@@ -18,9 +18,9 @@
</li>
}
</ul>
}
@Html.ValidationMessageFor(m => m.ExtensionName)
</fieldset>
}
<fieldset>
@Html.LabelFor(m=>m.FeedUrl)
@Html.DropDownListFor(m => m.FeedUrl, new[]{new SelectListItem{Text=T("Download").ToString(),Value="Download"}}.Concat( Model.Sources.Select(x => new SelectListItem { Text = T("Push to {0}", x.FeedUrl).ToString(), Value = x.FeedUrl })))