When a Core feature (e.g. Routable) had a new data migration upgrade, there was no way to run the upgrade

--HG--
branch : dev
This commit is contained in:
Sebastien Ros 2010-07-21 11:11:17 -07:00
parent 8ae413f8e6
commit cae7f5852e

View File

@ -47,33 +47,34 @@
"")%>
</div><%
}%>
</div><%
if (showActions) { %>
<div class="actions"><%
</div>
<div class="actions">
<%
if (showActions) {
if (feature.IsEnabled) {
using (Html.BeginFormAntiForgeryPost(string.Format("{0}", Url.Action("Disable", new { area = "Orchard.Modules" })), FormMethod.Post, new {@class = "inline link"})) { %>
<%:Html.Hidden("id", feature.Descriptor.Name, new {id = ""})%>
<%:Html.Hidden("force", true)%>
<button type="submit"><%:T("Disable")%></button><%
}
} else {
}
else {
using (Html.BeginFormAntiForgeryPost(string.Format("{0}", Url.Action("Enable", new { area = "Orchard.Modules" })), FormMethod.Post, new {@class = "inline link"})) { %>
<%: Html.Hidden("id", feature.Descriptor.Name, new { id = "" })%>
<%: Html.Hidden("force", true)%>
<button type="submit"><%: T("Enable") %></button><%
}
}
}
if(Model.FeaturesThatNeedUpdate.Contains(feature.Descriptor.Name)){
using (Html.BeginFormAntiForgeryPost(string.Format("{0}", Url.Action("Update", new { area = "Orchard.Modules" })), FormMethod.Post, new {@class = "inline link"})) { %>
<%: Html.Hidden("id", feature.Descriptor.Name, new { id = "" })%>
<%: Html.Hidden("force", true)%>
<button type="submit" class="update"><%: T("Update") %></button><%
}
}
%>
</div><%
}%>
</div>
</div>
</li><%
} %>
</ul>