Skip to content

Commit

Permalink
Add columns to env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 29, 2021
1 parent 0d128dc commit 952a3ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,15 @@ THE SOFTWARE.
xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:entry title="${%List of variables}" help="${descriptor.getHelpPage()}">
<f:repeatable var="env" items="${instance.env}">
<table width="100%">
<f:entry title="${%Name}">
<div class="jenkins-two-columns">
<f:entry title="${%Name}" class="jenkins-!-margin-bottom-0">
<f:textbox name="env.key" value="${env.key}" />
</f:entry>
<f:entry title="${%Value}">
<f:entry title="${%Value}" class="jenkins-!-margin-bottom-0">
<f:textbox name="env.value" value="${env.value}" />
</f:entry>
<f:entry title="">
<div align="right">
<f:repeatableDeleteButton />
</div>
</f:entry>
</table>
</div>
<f:repeatableDeleteButton />
</f:repeatable>
</f:entry>
</j:jelly>
6 changes: 6 additions & 0 deletions war/src/main/less/form/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,9 @@
}
}
}

.jenkins-two-columns {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: var(--section-padding);
}

0 comments on commit 952a3ac

Please sign in to comment.