Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernise form components #5923

Merged
merged 204 commits into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
6b51ea5
Initial
janfaracik Aug 16, 2021
88f4c62
input
janfaracik Aug 16, 2021
956ff65
Getting there...
janfaracik Aug 16, 2021
ba98591
Remove unused assets
janfaracik Oct 3, 2021
ae30f32
Removed mask-icon, removed Jenkins svg
janfaracik Oct 3, 2021
1ef07d9
Update style.less
janfaracik Oct 3, 2021
8799f5f
Remove unused menu arrows/breadcrumb gif
janfaracik Oct 6, 2021
10702e3
Merge remote-tracking branch 'origin/page-titles' into new-new-view-page
janfaracik Oct 7, 2021
0d38bb0
Update newJob.jelly
janfaracik Oct 7, 2021
170f87e
Reset
janfaracik Oct 7, 2021
f2149db
Redo form
janfaracik Oct 7, 2021
d471735
Update colours to have blue hue, correct radio focus
janfaracik Oct 7, 2021
2bd13ec
Add properties
janfaracik Oct 7, 2021
ddd81ee
Initial
janfaracik Oct 7, 2021
00eac4f
Add checkbox styling
janfaracik Oct 7, 2021
5baf1be
Add toggle switch, add title
janfaracik Oct 7, 2021
16cf101
Initial
janfaracik Oct 7, 2021
458b29c
Merge branch 'remove-unused-assets' into update-forms
janfaracik Oct 7, 2021
2cd5ffe
Replace setting-input with jenkins-input
janfaracik Oct 7, 2021
dbc1b2f
Update form.less
janfaracik Oct 7, 2021
e434ecb
Improve search in header
janfaracik Oct 7, 2021
1d3a03d
More
janfaracik Oct 8, 2021
367a2e1
Update field, add back inline error
janfaracik Oct 8, 2021
5835e66
Update style.less
janfaracik Oct 8, 2021
b40ccad
Update hudson-behavior.js
janfaracik Oct 8, 2021
b5bfaa3
Add locale
janfaracik Oct 8, 2021
60e0040
Update entry.jelly
janfaracik Oct 8, 2021
1e2b8c0
Update form.jelly
janfaracik Oct 10, 2021
dff84c5
Update new node page
janfaracik Oct 10, 2021
304ba88
Merge branch 'new-new-view-page' into update-forms
janfaracik Oct 10, 2021
b2ef80e
Use search bar instead of input
janfaracik Oct 10, 2021
138fe14
Update form.less
janfaracik Oct 10, 2021
281b2bd
Animate in/out radio children
janfaracik Oct 10, 2021
275c7da
Merge branch 'new-new-view-page' into update-forms
janfaracik Oct 10, 2021
7cddfd3
Merge branch 'master' into new-new-view-page
janfaracik Oct 21, 2021
417177d
Apply suggestions from code review
janfaracik Oct 21, 2021
3eb5b63
Add page title for New Node page
janfaracik Oct 21, 2021
6dbda76
Merge branch 'new-new-view-page' of https://github.com/janfaracik/jen…
janfaracik Oct 21, 2021
33dc004
Style number inputs too
janfaracik Oct 21, 2021
5032586
Update form.less
janfaracik Oct 21, 2021
ce43a00
Merge branch 'new-new-view-page' into update-forms
janfaracik Oct 21, 2021
dc4a6ed
Move help link to left, restyle it, decrease spacing between componen…
janfaracik Oct 22, 2021
fadba5a
Move help-button to form.less, restyle help box
janfaracik Oct 22, 2021
db504c7
Merge branch 'master' into new-new-view-page
janfaracik Oct 22, 2021
ab8517a
Add tooltip to help button
janfaracik Oct 22, 2021
0a4ecee
Fix help button not working on pipeline page, improves background of …
janfaracik Oct 22, 2021
acd5c19
Fix Azure inputs
janfaracik Oct 22, 2021
e77882d
Fix failing unit tests
janfaracik Oct 22, 2021
b8d574e
Add max-width none to fix pipeline editor
janfaracik Oct 22, 2021
32fddac
Add form item width variable
janfaracik Oct 22, 2021
3a1980e
Add focus state to (?) button
janfaracik Oct 22, 2021
3aa9787
Merge branch 'new-new-view-page' into update-forms
janfaracik Oct 22, 2021
4d8174a
Update form.less
janfaracik Oct 22, 2021
26423de
Move some props to CSS variables
janfaracik Oct 22, 2021
1a6662c
Move radius to CSS variables, rename help button to be consistent
janfaracik Oct 22, 2021
bbf2cc1
Extract more props into variables, fin?
janfaracik Oct 22, 2021
1587663
Move JS out of html
janfaracik Oct 22, 2021
7a302b4
Merge branch 'new-new-view-page' into update-forms
janfaracik Oct 23, 2021
1a55c92
Big config page cleanup
janfaracik Oct 23, 2021
b8b894c
Getting there...
janfaracik Oct 23, 2021
c3208af
Getting there...
janfaracik Oct 24, 2021
a1cc003
Fix error/warning icon
janfaracik Oct 24, 2021
e894c56
Draggable cards now have a max width
janfaracik Oct 24, 2021
6ed44c6
Merge branch 'new-new-view-page' into update-forms
janfaracik Oct 24, 2021
9dba043
Rename handle
janfaracik Oct 25, 2021
8810c27
Delete button style - it'll be updated in future buttons MR
janfaracik Oct 25, 2021
74d6632
Update description of ID attribute for form - thanks @timja
janfaracik Oct 26, 2021
70782b1
Fix Global Credentials' Verify Configuration button being hidden by t…
janfaracik Oct 26, 2021
5d6476c
Fix checkbox label not appearing next to checkbox
janfaracik Oct 26, 2021
9ab33f2
Merge branch 'new-new-view-page' into update-forms
janfaracik Oct 26, 2021
122065f
Update hudson-behavior.js
janfaracik Oct 26, 2021
7eba6bc
Restore section functionality
janfaracik Oct 26, 2021
c1dc212
Add min width/height to help button to ensure it doesnt get squished
janfaracik Oct 26, 2021
79742de
Fix missing help buttons and help buttons that only show as ?
janfaracik Oct 26, 2021
177c259
Merge branch 'new-new-view-page' into update-forms
janfaracik Oct 26, 2021
5537928
Init
janfaracik Nov 5, 2021
9973c71
Merge branch 'fix-project-config-page-tabs' into update-forms
janfaracik Nov 5, 2021
5876c38
Radio content now animates too!
janfaracik Nov 5, 2021
ae7b918
New job input is now styled
janfaracik Nov 5, 2021
93ffeaf
Update form.less
janfaracik Nov 5, 2021
1c09b8d
Update radioBlock.jelly
janfaracik Nov 5, 2021
cea8325
Radio optional blocks now animate in/out
janfaracik Nov 6, 2021
7fb61fb
Fix
janfaracik Nov 6, 2021
ac1b096
Cleanup
janfaracik Nov 6, 2021
b051f4f
cleanup TCP ip
janfaracik Nov 6, 2021
1298ce9
Merge branch 'master' into update-forms
janfaracik Nov 10, 2021
c282ba2
Merge branch 'master' into update-forms
janfaracik Nov 14, 2021
a724bf2
Update entry.jelly
janfaracik Nov 14, 2021
875b781
Little cleanup
janfaracik Nov 14, 2021
d63997a
Fix broken submission
janfaracik Nov 14, 2021
9bfb49f
Update configure.jelly
janfaracik Nov 14, 2021
d5ce1cf
Attempt at styling Global Tool Configuration
janfaracik Nov 14, 2021
cce4f8a
Update section.less
janfaracik Nov 14, 2021
8c00e89
Update index.groovy
janfaracik Nov 14, 2021
f07f81c
Fix
janfaracik Nov 14, 2021
e72b5fd
Fix
janfaracik Nov 15, 2021
2e5c9c9
Update hudson-behavior.js
janfaracik Nov 15, 2021
3dd0e91
Fix checkbox text misalignment
janfaracik Nov 15, 2021
b809cc1
Fix ? button
janfaracik Nov 15, 2021
8f8c39b
Update configure.jelly
janfaracik Nov 15, 2021
97278e3
Reset
janfaracik Nov 15, 2021
422242e
28,276.56
janfaracik Nov 15, 2021
46c2a78
Update hudson-behavior.js
janfaracik Nov 15, 2021
20ed27c
Update hudson-behavior.js
janfaracik Nov 15, 2021
aa2cb1b
Update hudson-behavior.js
janfaracik Nov 15, 2021
74274f4
Update base-styles-v2.less
janfaracik Nov 15, 2021
7892e6c
Fix misaligned badges
janfaracik Nov 15, 2021
3e5bb7a
Fix copyright, remove theme change
janfaracik Nov 15, 2021
e9d50f9
Fix one test
janfaracik Nov 16, 2021
5228845
Fix being able to POST configure node page (should fix some unit test…
janfaracik Nov 16, 2021
0023d7e
Fix spacing of some elements
janfaracik Nov 18, 2021
03cac28
Still has debug code
janfaracik Nov 18, 2021
49a71d3
Reduce checkbox padding significantly (this was v painful)
janfaracik Nov 18, 2021
9980716
Fix checkboxes not having focus states
janfaracik Nov 20, 2021
bb32000
Fix missing tabs (I want to replace all of this functionality before …
janfaracik Nov 20, 2021
73f38f0
Fix selects widths being overridden by plugins :anger:
janfaracik Nov 20, 2021
22900ac
Update theme.less
janfaracik Nov 22, 2021
ae97a26
Fix post build action radio not working
janfaracik Nov 22, 2021
4a8e448
Adjust description margin/line height, make help button slightly larg…
janfaracik Nov 22, 2021
40191ec
Merge branch 'master' into update-forms
janfaracik Nov 22, 2021
78735a6
Restore missing description for administrative monitors
janfaracik Nov 22, 2021
1f509d6
Update global.properties
janfaracik Nov 23, 2021
f7b8e98
Merge branch 'master' into update-forms
timja Nov 25, 2021
9281ae8
Use form element path to make test less fragile
timja Nov 26, 2021
0b1d8ed
Merge branch 'master' into update-forms
janfaracik Nov 28, 2021
5566a69
WB: Restyle draggable cards
janfaracik Nov 29, 2021
4a44304
Fix checkbox help alignment, add theme support for YUI modals
janfaracik Nov 29, 2021
be68cd1
Style combobox, fix spacing issues for Maven Config
janfaracik Nov 29, 2021
dd53979
More comprehensive solution for checkbox spacing
janfaracik Nov 29, 2021
3145f9f
Update `select` component to use ionicon chevron instead
janfaracik Nov 30, 2021
f120f18
Use ionicon checkmark instead of default font - :100: consistency
janfaracik Nov 30, 2021
88e1017
Fix additional paddings at bottom of forms/optional blocks
janfaracik Nov 30, 2021
7234009
Fix help showing in the wrong spot
janfaracik Nov 30, 2021
19a04e8
Even out spacing, rough fix for dropdowns
janfaracik Nov 30, 2021
62a8614
Adjust padding, adjust sizes
janfaracik Dec 1, 2021
7e5f10c
Merge branch 'master' into update-forms
timja Dec 1, 2021
ebd5bc4
Fix some tests
timja Dec 2, 2021
5f6fccf
Fix repeatable buttons test
timja Dec 2, 2021
22422b9
Update repeatable.js
janfaracik Dec 2, 2021
85e97a4
Merge branch 'update-forms' of https://github.com/janfaracik/jenkins …
janfaracik Dec 2, 2021
0d470d8
Minor tweaks doesn't work though
timja Dec 3, 2021
df78495
Merge branch 'update-forms' of github.com:janfaracik/jenkins into upd…
timja Dec 3, 2021
51e1a0a
Revert setting-main removal
timja Dec 5, 2021
6bff25b
Merge branch 'master' into update-forms
timja Dec 5, 2021
db144e7
Don't use form-element-path
timja Dec 5, 2021
6d0452f
Fix tabbar test
timja Dec 5, 2021
13c9698
Fix typo
timja Dec 12, 2021
53ac7f0
Update ATH
timja Dec 12, 2021
59a680b
Fix xss in repeatableDeleteButton
timja Dec 12, 2021
adc5587
Add TODO for important when we can remove it
timja Dec 13, 2021
96ba6a7
Merge branch 'master' into update-forms
janfaracik Dec 14, 2021
7eb8a45
Update tabbar.js
janfaracik Dec 14, 2021
ccf1168
Fix YUI menu not showing
janfaracik Dec 14, 2021
f27e7ea
Add resize ability to CodeMirror textboxes
janfaracik Dec 18, 2021
3277671
Increase max width of components
janfaracik Dec 18, 2021
7c6c568
Merge branch 'master' into update-forms
timja Dec 21, 2021
f91066f
Bump ATH
timja Dec 23, 2021
0298e43
Merge branch 'update-forms' of github.com:janfaracik/jenkins into upd…
timja Dec 23, 2021
959979d
Merge branch 'master' into update-forms
timja Dec 23, 2021
efdec08
Update form-element-path.js
janfaracik Dec 23, 2021
54287e5
Fix legacy attach previous labels
janfaracik Dec 23, 2021
e27a8c1
Fix attach-previous for radios without IDs, add styling for multi-sel…
janfaracik Dec 23, 2021
d3914e6
Fix sticky bottom not aligning to left correctly
janfaracik Dec 23, 2021
49d0f0c
Merge branch 'master' into update-forms
timja Dec 24, 2021
a2615d8
Revert titleless entry change, fix gap between draggable items, fix n…
janfaracik Dec 24, 2021
41a8e28
Adjust config job page to look better
janfaracik Dec 24, 2021
cc50203
Potential fix?
janfaracik Dec 24, 2021
2c0eacc
Set z-index on bottom sticker
timja Dec 26, 2021
96c95de
Reduce token list padding/margin
janfaracik Dec 26, 2021
47d6611
Merge branch 'master' into update-forms
timja Dec 27, 2021
c296313
Merge branch 'update-forms' of github.com:janfaracik/jenkins into upd…
timja Dec 27, 2021
4dba9df
Merge branch 'master' into update-forms
timja Dec 28, 2021
ecd17cd
Add disabled states for checkboxes, reduce margin if no label
janfaracik Dec 28, 2021
3f8ac70
Rewrite checkbox for better performance + improve disabled state
janfaracik Dec 28, 2021
f9acb8d
Remove unneeded check to improve performance
janfaracik Dec 28, 2021
e28f8a6
Update autocomplete dropdown style
janfaracik Dec 28, 2021
ec71af6
Merge branch 'master' into update-forms
timja Dec 29, 2021
8b35b58
Merge branch 'master' into update-forms
janfaracik Dec 29, 2021
8982741
Merge branch 'master' into update-forms
janfaracik Jan 2, 2022
b7120c4
Merge branch 'master' into update-forms
janfaracik Jan 5, 2022
cd3b140
Fix YUI menus being hidden by bottom bars
janfaracik Jan 5, 2022
45333a0
Undo accidental bracket change
janfaracik Jan 5, 2022
89f1aba
Correct overriding title for breadcrumb-config-outline
timja Jan 9, 2022
4b8e0ff
Convert html markup for plugins not using jelly tag
timja Jan 9, 2022
2915caa
Merge branch 'master' into update-forms
janfaracik Jan 9, 2022
4f00ce4
Use app bar tag for configure system page
janfaracik Jan 9, 2022
9d8cb3b
Restore trailing newl ine
janfaracik Jan 9, 2022
9ed4aff
Remove title from remove icon
janfaracik Jan 9, 2022
fa9d13e
Update theme.less
janfaracik Jan 9, 2022
07eb2c3
Increase form width
janfaracik Jan 9, 2022
fd5a5a7
Update settings pages to use app bar component over hardcoded HTML
janfaracik Jan 9, 2022
f47d5e2
Update job config page width to match inner form components
janfaracik Jan 9, 2022
3d25000
Fixup repeatableDeleteButton compat
timja Jan 9, 2022
59e0fb6
Increase widths of form elements (roughly 100 pixels wider)
janfaracik Jan 9, 2022
7f63f70
Merge branch 'increase-form-width' into update-forms
janfaracik Jan 9, 2022
3480a67
Increase size of section headings, decrease weight of radios/checkbox…
janfaracik Jan 9, 2022
22bc424
Use form font weight variable
janfaracik Jan 9, 2022
a97db3c
Merge branch 'master' into update-forms
timja Jan 13, 2022
e7881da
Merge branch 'master' into update-forms
janfaracik Jan 24, 2022
7540afd
Fix tooltip being under bottom bar
janfaracik Jan 24, 2022
dc2e683
Merge branch 'master' into update-forms
janfaracik Jan 27, 2022
fa263e7
Fix port control
janfaracik Jan 27, 2022
d56150d
Add random IDs for radio
janfaracik Jan 27, 2022
f25a406
Use ID if provided otherwise generate one
janfaracik Jan 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/src/main/java/hudson/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -2289,4 +2289,10 @@ public static boolean isContextMenuVisible(Action a) {
return true;
}
}

@SuppressFBWarnings(value = "PREDICTABLE_RANDOM", justification = "True randomness isn't necessary for form item IDs")
@Restricted(NoExternalUse.class)
public static String generateItemId() {
return String.valueOf(Math.floor(Math.random() * 3000));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ THE SOFTWARE.
<l:main-panel>
<f:form method="post" action="newLogRecorder">
<f:entry title="${%Name}">
<input type="text" name="name" class="setting-input" id="box" autofocus="autofocus" />
<input type="text" name="name" class="jenkins-input" id="box" autofocus="autofocus" />
</f:entry>

<f:block>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ THE SOFTWARE.
<!-- if there's only one JDK configured, always use that. -->
<f:entry title="JDK"
description="${%JDK to be used for this project}">
<select class="setting-input validated" name="jdk" checkUrl="'${rootURL}/defaultJDKCheck?value='+this.value">
<select class="jenkins-input validated" name="jdk" checkUrl="'${rootURL}/defaultJDKCheck?value='+this.value">
<j:getStatic var="DEFAULT_NAME" className="hudson.model.JDK" field="DEFAULT_NAME"/>
<option>${DEFAULT_NAME}</option>
<j:forEach var="inst" items="${jdks}">
Expand All @@ -55,7 +55,7 @@ THE SOFTWARE.
<p:config-blockWhenDownstreamBuilding />
<st:include page="configure-advanced.jelly" optional="true" />
<f:entry title="${%Display Name}" field="displayNameOrNull">
<f:textbox checkUrl="'${rootURL}/checkDisplayName?displayName='+encodeURIComponent(this.value)+'&amp;jobName='+encodeURIComponent('${h.jsStringEscape(it.name)}')"/>
<f:textbox checkUrl="'${rootURL}/checkDisplayName?displayName='+encodeURIComponent(this.value)+'&amp;jobName='+encodeURIComponent('${h.jsStringEscape(it.name)}')"/>
</f:entry>
<f:optionalBlock name="keepDependencies" checked="${it.keepDependencies}" title="${%Keep the build logs of dependencies}" help="/help/tasks/fingerprint/keepDependencies.html"/>
</f:advanced>
Expand Down
8 changes: 5 additions & 3 deletions core/src/main/resources/hudson/model/Computer/configure.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ THE SOFTWARE.
<j:set var="instance" value="${it.node}" />
<j:set var="descriptor" value="${instance.descriptor}" />

<f:entry title="${%Name}" field="name">
<f:textbox value="${it.name}" /><!-- anomaly. instance[field] isn't what we want. -->
</f:entry>
<div class="jenkins-section">
<f:entry title="${%Name}" field="name">
<f:textbox value="${it.name}" /><!-- anomaly. instance[field] isn't what we want. -->
</f:entry>
</div>

<!-- main body of the configuration -->
<st:include it="${instance}" page="configure-entries.jelly" />
Expand Down
8 changes: 5 additions & 3 deletions core/src/main/resources/hudson/model/Job/configure.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ THE SOFTWARE.
<j:set var="descriptor" value="${it.descriptor}" />
<j:set var="instance" value="${it}" />

<f:entry title="${%Description}" help="${app.markupFormatter.helpUrl}">
<f:textarea name="description" value="${it.description}" codemirror-mode="${app.markupFormatter.codeMirrorMode}" codemirror-config="${app.markupFormatter.codeMirrorConfig}" previewEndpoint="/markupFormatter/previewDescription"/>
</f:entry>
<div class="jenkins-section">
<f:entry title="${%Description}" help="${app.markupFormatter.helpUrl}">
<f:textarea name="description" value="${it.description}" codemirror-mode="${app.markupFormatter.codeMirrorMode}" codemirror-config="${app.markupFormatter.codeMirrorConfig}" previewEndpoint="/markupFormatter/previewDescription"/>
</f:entry>
</div>

<f:descriptorList field="properties" descriptors="${h.getJobPropertyDescriptors(it)}" forceRowSet="true"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:entry title="${%View name}"
description="${%The name of a global view that will be shown.}">
<select class="setting-input" name="proxiedViewName">
<select class="jenkins-input" name="proxiedViewName">
<j:forEach var="inst" items="${app.views}">
<f:option selected="${inst.viewName==it.proxiedViewName}" value="${inst.viewName}">${inst.viewName}</f:option>
</j:forEach>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
# THE SOFTWARE.

statsBlurb=\
Help make Jenkins better by sending anonymous usage statistics and crash reports to the Jenkins project.
Help make Jenkins better by sending anonymous usage statistics and crash reports to the Jenkins project

2 changes: 1 addition & 1 deletion core/src/main/resources/hudson/model/View/newJob.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ THE SOFTWARE.
<div class="header">
<div class="add-item-name">
<label for="name" class="h3">${%ItemName.label}</label>
<input name="name" id="name" data-valid="false" type="text" tabindex="0" />
<input name="name" class="jenkins-input" id="name" data-valid="false" type="text" tabindex="0" />
<div class="input-help">&#187; ${%ItemName.help}</div>
<div id="itemname-required" class="input-validation-message input-message-disabled">&#187; ${%ItemName.validation.required}</div>
<div id="itemname-invalid" class="input-validation-message input-message-disabled"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ def l=namespace(lib.LayoutTagLib)
def st=namespace("jelly:stapler")

l.layout(permission:app.SYSTEM_READ, title:my.displayName, cssclass:request.getParameter('decorate')) {
l.app_bar(title: my.displayName)

l.main_panel {
h1 {
l.icon(class: 'icon-secure icon-xlg')
text(my.displayName)
}
set("readOnlyMode", !app.hasPermission(app.ADMINISTER))

p()
Expand All @@ -32,12 +30,8 @@ l.layout(permission:app.SYSTEM_READ, title:my.displayName, cssclass:request.getP
f.checkbox(title:_("Disable remember me"), field: "disableRememberMe")
}

div(style:"width:100%") {
f.descriptorRadioList(title:_("Security Realm"), varName:"realm", instance:app.securityRealm, descriptors: h.filterDescriptors(app, SecurityRealm.all()))
}
}
f.descriptorRadioList(title:_("Security Realm"), varName:"realm", instance:app.securityRealm, descriptors: h.filterDescriptors(app, SecurityRealm.all()))

div(style:"width:100%") {
f.descriptorRadioList(title:_("Authorization"), varName:"authorization", instance:app.authorizationStrategy, descriptors:h.filterDescriptors(app, AuthorizationStrategy.all()))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import jenkins.model.Jenkins
def f = namespace(lib.FormTagLib)

f.entry(title: _('Unprotected URLs')) {
p(_('blurb'))
p(class: "jenkins-form-description") {
_('blurb')
}
ul {
for (def action : Jenkins.get().getActions().sort { x, y -> x.getUrlName() <=> y.getUrlName() }) {
if (action instanceof UnprotectedRootAction) {
Expand Down
12 changes: 3 additions & 9 deletions core/src/main/resources/hudson/tasks/BuildTrigger/config.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,11 @@ THE SOFTWARE.
field="childProjects"/>
</f:entry>
<j:if test="${descriptor.showEvenIfUnstableOption(targetType)}"> <!-- TODO JENKINS-16444 this will always be true when first adding step -->
<f:entry title="">
<f:radio name="BuildTrigger.threshold" checked="${instance.threshold==null || instance.threshold.toString()=='SUCCESS'}"
title="${%Trigger only if build is stable}" value="SUCCESS"/>
</f:entry>
<f:entry title="">
title="${%Trigger only if build is stable}" id="threshold-SUCCESS" value="SUCCESS"/>
<f:radio name="BuildTrigger.threshold" checked="${instance.threshold.toString()=='UNSTABLE'}"
title="${%Trigger even if the build is unstable}" value="UNSTABLE"/>
</f:entry>
<f:entry title="">
title="${%Trigger even if the build is unstable}" id="threshold-UNSTABLE" value="UNSTABLE"/>
<f:radio name="BuildTrigger.threshold" checked="${instance.threshold.toString()=='FAILURE'}"
title="${%Trigger even if the build fails}" value="FAILURE"/>
</f:entry>
title="${%Trigger even if the build fails}" id="threshold-FAILURE" value="FAILURE"/>
</j:if>
</j:jelly>
2 changes: 1 addition & 1 deletion core/src/main/resources/hudson/tasks/Maven/config.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<j:if test="${!empty(descriptor.installations)}">
<f:entry title="${%Maven Version}">
<select class="setting-input" name="maven.name">
<select class="jenkins-input" name="maven.name">
<option value="(Default)">(${%Default})</option>
<j:forEach var="inst" items="${descriptor.installations}">
<f:option selected="${inst.name==instance.maven.name}" value="${inst.name}">${inst.name}</f:option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<f:repeatable var="location" name="locations" items="${instance.locations}">
<table width="100%">
<f:entry title="${%Name}">
<select class="setting-input" name="locations.key">
<select class="jenkins-input" name="locations.key">
<j:forEach var="toolDescriptor" items="${descriptor.toolDescriptors}">
<j:forEach var="toolInstallation" items="${toolDescriptor.installations}">
<f:option selected="${descriptor.getKey(toolInstallation)==location.key}" value="${descriptor.getKey(toolInstallation)}">(${toolDescriptor.displayName}) ${toolInstallation.name}</f:option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ def f=namespace(lib.FormTagLib)

if (app.views.size()>1) {
f.entry(title:_("Default view"), field:"defaultView") {
select("class":"setting-input", name:"primaryView") {
app.views.each { v ->
f.option(value:v.viewName, selected:app.primaryView==v) {
text(v.viewName)
div(class:"jenkins-select") {
select(name:"primaryView", class:"jenkins-select__input") {
app.views.each { v ->
f.option(value:v.viewName, selected:app.primaryView==v) {
text(v.viewName)
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"
xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:entry title="${%Status Filter}" help="/help/view-config/statusFilter.html">
<select name="statusFilter" class="setting-input">
<select name="statusFilter" class="jenkins-input">
<f:option value="1" selected="${it.statusFilter==true}">${%Enabled jobs only}</f:option>
<f:option value="2" selected="${it.statusFilter==false}">${%Disabled jobs only}</f:option>
</select>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ THE SOFTWARE.
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form">
<f:section title="${%Fingerprints}">
<f:entry title="Disable Fingerprint Cleanup">
<f:checkbox field="fingerprintCleanupDisabled" default="${it.fingerprintCleanupDisabled}" />
<f:entry>
<f:checkbox title="Disable Fingerprint Cleanup" field="fingerprintCleanupDisabled" default="${it.fingerprintCleanupDisabled}" />
</f:entry>
<j:if test="${descriptor.fingerprintStorageDescriptors.size() gt 1}">
<f:entry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ document.addEventListener("DOMContentLoaded", function(){
case "button":
var element
// modern buttons aren't wrapped in spans
if (e.classList.contains('jenkins-button')) {
if (e.classList.contains('jenkins-button') || e.classList.contains('repeatable-delete')) {
p = findParent(e);
element = e
} else {
p = findParent(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,21 @@ st = namespace("jelly:stapler")
f.section(title: _("Administrative monitors configuration")) {
f.advanced(title: _("Administrative monitors")) {
f.entry(title: _("Enabled administrative monitors")) {
p(_("blurb"))
div(width: "100%") {
for (AdministrativeMonitor am : new ArrayList<>(AdministrativeMonitor.all())
.sort({ o1, o2 -> o1.getDisplayName() <=> o2.getDisplayName() })) {
f.block() {
f.checkbox(name: "administrativeMonitor",
title: am.displayName,
checked: am.enabled,
json: am.id)
if (am.isSecurity()) {
span(style: 'margin-left: 0.5rem', class: 'am-badge', _("Security"))
}
p(class: "jenkins-form-description", _("blurb"))
for (AdministrativeMonitor am : new ArrayList<>(AdministrativeMonitor.all())
.sort({ o1, o2 -> o1.getDisplayName() <=> o2.getDisplayName() })) {
div(class: "jenkins-checkbox-help-wrapper") {
f.checkbox(name: "administrativeMonitor",
title: am.displayName,
checked: am.enabled,
json: am.id)
if (am.isSecurity()) {
span(style: 'margin-left: 0.5rem', class: 'am-badge', _("Security"))
}
div(class: "tr") {
div(class: "setting-description") {
st.include(from: am, page: "description", optional: true)
}
}
div(class: "tr") {
div(class: "jenkins-checkbox__description") {
st.include(from: am, page: "description", optional: true)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ l.layout(norefresh:true, permission:app.SYSTEM_READ, title:my.displayName) {
l.task(icon:"icon-gear icon-md", href:"${rootURL}/computer/", title:_("Manage Nodes"))
}
}
l.app_bar(title: my.displayName)
l.main_panel {
h1 {
l.icon(class: 'icon-health-40to59 icon-xlg')
// TODO more appropriate icon
text(my.displayName)
}
def clouds = Cloud.all()
if (!clouds.isEmpty()) {
p()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import jenkins.model.ProjectNamingStrategy

def f=namespace(lib.FormTagLib)

f.optionalBlock( field:"useProjectNamingStrategy", title:_("useNamingStrategy"), checked:app.useProjectNamingStrategy) {
div(class: "jenkins-form-item") {
f.optionalBlock( field:"useProjectNamingStrategy", title:_("useNamingStrategy"), checked:app.useProjectNamingStrategy) {

f.entry(title:_("namingStrategyTitle")) {
div(style:"width:100%") {
f.descriptorRadioList(title:_("strategy"), varName:"namingStrategy", instance:app.projectNamingStrategy, descriptors:ProjectNamingStrategy.all())
f.entry(title:_("namingStrategyTitle")) {
div(style:"width:100%") {
f.descriptorRadioList(title:_("strategy"), varName:"namingStrategy", instance:app.projectNamingStrategy, descriptors:ProjectNamingStrategy.all())
}
}
}

}
}
15 changes: 9 additions & 6 deletions core/src/main/resources/jenkins/model/Jenkins/configure.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<l:layout permissions="${app.MANAGE_AND_SYSTEM_READ}" title="${%Configure System}">
<st:include page="sidepanel.jelly" />
<f:breadcrumb-config-outline />
<f:breadcrumb-config-outline title="${%Configure System}" />

<l:app-bar title="${%Configure System}" />

<l:main-panel>
<div class="behavior-loading"><l:spinner text="${%LOADING}"/></div>
<f:form method="post" name="config" action="configSubmit">
<f:form method="post" name="config" action="configSubmit" class="jenkins-form">
<j:set var="instance" value="${it}" />
<j:set var="descriptor" value="${instance.descriptor}" />

<f:entry title="${%Home directory}" help="/help/system-config/homeDirectory.html">
${it.rootDir}
<f:entry title="${%Home directory}" description="${%By default, Jenkins stores all of its data in this directory on the file system}" help="/help/system-config/homeDirectory.html">
<div class="jenkins-quote jenkins-quote--monospace">${it.rootDir}</div>
</f:entry>
<f:entry title="${%System Message}" help="/help/system-config/systemMessage.html">
<f:entry title="${%System Message}" description="${%This message will be displayed at the top of the Jenkins main page. This can be useful for posting notifications to your users}">
<j:set var="readOnlyMode" value="${!h.hasPermission(app.MANAGE)}" />
<f:textarea name="system_message" value="${it.systemMessage}" disabled="${readOnlyMode?'true':null}" readonly="${readOnlyMode?'true':null}"
codemirror-mode="${app.markupFormatter.codeMirrorMode}" codemirror-config="${app.markupFormatter.codeMirrorConfig}" previewEndpoint="/markupFormatter/previewDescription"/>
Expand All @@ -50,7 +53,7 @@ THE SOFTWARE.
<j:forEach var="descriptor" items="${h.getSortedDescriptorsForGlobalConfigUnclassifiedReadable()}">
<j:set var="readOnlyMode" value="${!editable.contains(descriptor)}" />
<j:set var="instance" value="${descriptor}" /><!-- this makes the <f:textbox field=.../> work -->
<f:rowSet name="${descriptor.jsonSafeClassName}">
<f:rowSet name="${descriptor.jsonSafeClassName}" isFormItem="false">
<st:include page="${descriptor.globalConfigPage}" from="${descriptor}" />
</f:rowSet>
</j:forEach>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ THE SOFTWARE.
</div>
</f:block>
<f:entry title="${%File to check}">
<input type="file" name="name" class="setting-input" />
<input type="file" name="name" class="jenkins-input" />
</f:entry>
<f:block>
<f:submit value="${%Check}" />
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/jenkins/model/Jenkins/manage.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ THE SOFTWARE.
</section>

<j:forEach var="category" items="${it.categorizedManagementLinks.entrySet()}">
<section class="jenkins-section">
<section class="jenkins-section jenkins-section--bottom-padding">
<h2 class="jenkins-section__title">${category.key.label}</h2>
${taskTags!=null and attrs.contextMenu!='false' ? taskTags.addHeader(category.key.label) : null}
<div class="jenkins-section__items">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ THE SOFTWARE.

<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:f="/lib/form">
<f:block>
<f:optionalBlock title="${descriptor.displayName}" name="specified" checked="${instance != null}" inline="true" help="${descriptor.helpFile}">
<st:include page="config-details" from="${descriptor}" class="${descriptor.clazz}"/>
</f:optionalBlock>
</f:block>
<f:optionalBlock title="${descriptor.displayName}" name="specified" checked="${instance != null}" inline="true" help="${descriptor.helpFile}">
<st:include page="config-details" from="${descriptor}" class="${descriptor.clazz}"/>
</f:optionalBlock>
</j:jelly>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ THE SOFTWARE.

<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:f="/lib/form">
<f:entry title="${%File path}" field="path">
<f:entry title="${%File path}" field="path" class="jenkins-!-margin-bottom-0">
<f:textbox />
</f:entry>
</j:jelly>
Loading