Skip to content

Commit 90e24a5

Browse files
Update select input style (#151)
1 parent ef09b57 commit 90e24a5

File tree

1 file changed

+44
-42
lines changed
  • src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition

1 file changed

+44
-42
lines changed

src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition/config.jelly

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,50 @@
88
<f:textarea name="description" value="${description}" codemirror-mode="${app.markupFormatter.codeMirrorMode}" codemirror-config="${app.markupFormatter.codeMirrorConfig}" previewEndpoint="/markupFormatter/previewDescription" />
99
</f:entry>
1010
<f:entry title="${%parameter.type}" field="type">
11-
<select name="type">
12-
<j:choose>
13-
<j:when test="${instance.parameterType eq 'PT_TAG'}">
14-
<option value="PT_TAG" selected="selected">${%parameter.tag}</option>
15-
</j:when>
16-
<j:otherwise>
17-
<option value="PT_TAG">${%parameter.tag}</option>
18-
</j:otherwise>
19-
</j:choose>
20-
<j:choose>
21-
<j:when test="${instance.parameterType eq 'PT_BRANCH'}">
22-
<option value="PT_BRANCH" selected="selected">${%parameter.branch}</option>
23-
</j:when>
24-
<j:otherwise>
25-
<option value="PT_BRANCH">${%parameter.branch}</option>
26-
</j:otherwise>
27-
</j:choose>
28-
<j:choose>
29-
<j:when test="${instance.parameterType eq 'PT_BRANCH_TAG'}">
30-
<option value="PT_BRANCH_TAG" selected="selected">${%parameter.branch.or.tag}</option>
31-
</j:when>
32-
<j:otherwise>
33-
<option value="PT_BRANCH_TAG">${%parameter.branch.or.tag}</option>
34-
</j:otherwise>
35-
</j:choose>
36-
<j:choose>
37-
<j:when test="${instance.parameterType eq 'PT_REVISION'}">
38-
<option value="PT_REVISION" selected="selected">${%parameter.revision}</option>
39-
</j:when>
40-
<j:otherwise>
41-
<option value="PT_REVISION">${%parameter.revision}</option>
42-
</j:otherwise>
43-
</j:choose>
44-
<j:choose>
45-
<j:when test="${instance.parameterType eq 'PT_PULL_REQUEST'}">
46-
<option value="PT_PULL_REQUEST" selected="selected">${%parameter.pull.request}</option>
47-
</j:when>
48-
<j:otherwise>
49-
<option value="PT_PULL_REQUEST">${%parameter.pull.request}</option>
50-
</j:otherwise>
51-
</j:choose>
52-
</select>
11+
<div class="jenkins-select">
12+
<select class="jenkins-select__input" name="type">
13+
<j:choose>
14+
<j:when test="${instance.parameterType eq 'PT_TAG'}">
15+
<option value="PT_TAG" selected="selected">${%parameter.tag}</option>
16+
</j:when>
17+
<j:otherwise>
18+
<option value="PT_TAG">${%parameter.tag}</option>
19+
</j:otherwise>
20+
</j:choose>
21+
<j:choose>
22+
<j:when test="${instance.parameterType eq 'PT_BRANCH'}">
23+
<option value="PT_BRANCH" selected="selected">${%parameter.branch}</option>
24+
</j:when>
25+
<j:otherwise>
26+
<option value="PT_BRANCH">${%parameter.branch}</option>
27+
</j:otherwise>
28+
</j:choose>
29+
<j:choose>
30+
<j:when test="${instance.parameterType eq 'PT_BRANCH_TAG'}">
31+
<option value="PT_BRANCH_TAG" selected="selected">${%parameter.branch.or.tag}</option>
32+
</j:when>
33+
<j:otherwise>
34+
<option value="PT_BRANCH_TAG">${%parameter.branch.or.tag}</option>
35+
</j:otherwise>
36+
</j:choose>
37+
<j:choose>
38+
<j:when test="${instance.parameterType eq 'PT_REVISION'}">
39+
<option value="PT_REVISION" selected="selected">${%parameter.revision}</option>
40+
</j:when>
41+
<j:otherwise>
42+
<option value="PT_REVISION">${%parameter.revision}</option>
43+
</j:otherwise>
44+
</j:choose>
45+
<j:choose>
46+
<j:when test="${instance.parameterType eq 'PT_PULL_REQUEST'}">
47+
<option value="PT_PULL_REQUEST" selected="selected">${%parameter.pull.request}</option>
48+
</j:when>
49+
<j:otherwise>
50+
<option value="PT_PULL_REQUEST">${%parameter.pull.request}</option>
51+
</j:otherwise>
52+
</j:choose>
53+
</select>
54+
</div>
5355
</f:entry>
5456
<f:entry title="${%parameter.default.value}" field="defaultValue">
5557
<f:textbox/>

0 commit comments

Comments
 (0)