提交 6e770008 编写于 作者: K kohsuke

needs to be surrounded with a form.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9917 71c3de6d-444a-0410-be80-ed276b4c234a
上级 fc1436d0
......@@ -9,44 +9,46 @@
<l:layout title="Update Center" permission="${app.ADMINISTER}" norefresh="true">
<st:include page="sidepanel.jelly"/>
<l:main-panel>
<local:tabBar page="${attrs.page}" xmlns:local="/hudson/PluginManager">
<table id="plugins" class="sortable pane bigtable" style="margin-top:0px; border-top: none;">
<tr style="border-top: 0px;">
<th width="32" tooltip="Check to install the plugin">Install</th>
<th initialSortDir="down">Name</th>
<th>Version</th>
</tr>
<j:choose>
<j:when test="${!empty(list)}">
<j:forEach var="p" items="${list}">
<form method="post" action="install">
<local:tabBar page="${attrs.page}" xmlns:local="/hudson/PluginManager">
<table id="plugins" class="sortable pane bigtable" style="margin-top:0px; border-top: none;">
<tr style="border-top: 0px;">
<th width="32" tooltip="Check to install the plugin">Install</th>
<th initialSortDir="down">Name</th>
<th>Version</th>
</tr>
<j:choose>
<j:when test="${!empty(list)}">
<j:forEach var="p" items="${list}">
<tr>
<td class="pane" align="center"><input type="checkbox" name="plugin.${p.name}"/></td>
<td class="pane">
<a href="${p.wiki}"><st:out value="${p.displayName}"/></a>
</td>
<td class="pane"><st:out value="${p.version}" /></td>
</tr>
</j:forEach>
</j:when>
<j:otherwise>
<tr>
<td class="pane" align="center"><input type="checkbox" name="plugin.${p.name}"/></td>
<td class="pane">
<a href="${p.wiki}"><st:out value="${p.displayName}"/></a>
<td colspan="3" align="center">
<div style="padding:1em">
No updates
</div>
</td>
<td class="pane"><st:out value="${p.version}" /></td>
</tr>
</j:forEach>
</j:when>
<j:otherwise>
<tr>
<td colspan="3" align="center">
<div style="padding:1em">
No updates
</div>
</td>
</tr>
</j:otherwise>
</j:choose>
</table>
<j:if test="${!empty(list)}">
<div style="float:right; margin-top:1em">
<f:submit value="Install" />
</div>
</j:if>
<d:invokeBody />
</local:tabBar>
</j:otherwise>
</j:choose>
</table>
<j:if test="${!empty(list)}">
<div style="float:right; margin-top:1em">
<f:submit value="Install" />
</div>
</j:if>
<d:invokeBody />
</local:tabBar>
</form>
</l:main-panel>
</l:layout>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册