Skip to content
Permalink
Browse files
[JENKINS-44997] - Do not use table in BeriodicBackupLink submission form
  • Loading branch information
oleg-nenashev committed Jun 20, 2017
1 parent 7752b85 commit 1c2fe6b501b7f311a2a442500ca87f1c9e3c8f41
Showing with 23 additions and 22 deletions.
  1. +23 −22 src/main/resources/org/jenkinsci/plugins/periodicbackup/PeriodicBackupLink/index.jelly
@@ -38,28 +38,29 @@
</j:when>
<j:otherwise>
<h3>Locations:</h3>
<f:form method="post" action="restore">
<j:set var="noBackups" value="true"/>
<j:forEach var="location" items="${it.locations}">
<div>
<h4>${location.displayName}</h4>
<table>
<j:forEach var="backup" items="${location.availableBackups}">
<tr>
<td><f:radio name="backupHash" value="${backup.hashCode()}"/></td>
<td>${backup.displayName}</td>
<j:set var="noBackups" value="false"/>
</tr>
</j:forEach>
</table>
</div>
</j:forEach>
<div style="padding:4px">
<j:if test="${noBackups == 'false'}">
<f:submit value="${%restore.launch}"/>
</j:if>
</div>
</f:form>
<f:form method="post" action="restore">
<j:set var="noBackups" value="true"/>
<j:forEach var="location" items="${it.locations}">
<div>
<h4>${location.displayName}</h4>

<j:forEach var="backup" items="${location.availableBackups}">
<f:radio name="backupHash" value="${backup.hashCode()}"/>
${backup.displayName}
<br/>

<j:set var="noBackups" value="false"/>
</j:forEach>
</div>
</j:forEach>

<div>
<j:if test="${noBackups == 'false'}">
<f:submit value="${%restore.launch}"/>
</j:if>
</div>

</f:form>
</j:otherwise>
</j:choose>
</l:main-panel>

0 comments on commit 1c2fe6b

Please sign in to comment.