提交 6be060a6 编写于 作者: K Kohsuke Kawaguchi

<f:checkbox> should take @title

上级 5cc91aa9
......@@ -26,8 +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" xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project">
<f:entry>
<j:forEach var="jdk" items="${app.JDKs}">
<f:checkbox name="values" json="${jdk.name}" checked="${instance.values.contains(jdk.name)}" />
<label class="attach-previous">${jdk.name}</label>
<f:checkbox name="values" json="${jdk.name}" checked="${instance.values.contains(jdk.name)}" title="${jdk.name}" />
<st:nbsp/>
</j:forEach>
</f:entry>
......
......@@ -39,8 +39,8 @@ THE SOFTWARE.
<f:entry title="${%Jobs}">
<j:forEach var="job" items="${app.items}">
<f:checkbox name="${job.name}" checked="${it.contains(job)}" />
${job.name} <br/>
<f:checkbox name="${job.name}" checked="${it.contains(job)}" title="${job.name}" />
<br/>
</j:forEach>
</f:entry>
......
......@@ -24,7 +24,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="" help="/help/security/private-realm/allow-signup.html">
<f:checkbox name="privateRealm.allowsSignup" checked="${h.defaultToTrue(instance.allowsSignup())}" />
<label class="attach-previous">${%Allow users to sign up}</label>
<f:checkbox name="privateRealm.allowsSignup" checked="${h.defaultToTrue(instance.allowsSignup())}"
title="${%Allow users to sign up}"/>
</f:entry>
</j:jelly>
\ No newline at end of file
<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="" field="excludeClientIPFromCrumb">
<f:checkbox checked="${instance.isExcludeClientIPFromCrumb()}" />
<label class="attach-previous">${%Enable proxy compatibility}</label>
<f:checkbox checked="${instance.isExcludeClientIPFromCrumb()}" title="${%Enable proxy compatibility}" />
</f:entry>
</j:jelly>
......@@ -35,6 +35,6 @@ THE SOFTWARE.
checkMessage="${%Scheduled Uptime is mandatory and must be a number.}"/>
</f:entry>
<f:entry title="${%Keep on-line while jobs are running}">
<f:checkbox name="retentionStrategy.keepUpWhenActive" checked="${h.defaultToTrue(instance.keepUpWhenActive)}"/>
<f:checkbox name="retentionStrategy.keepUpWhenActive" checked="${h.defaultToTrue(instance.keepUpWhenActive)}"/>
</f:entry>
</j:jelly>
......@@ -31,8 +31,7 @@ THE SOFTWARE.
<f:textbox />
</f:entry>
<f:entry title="" field="latestOnly" >
<f:checkbox />
<label class="attach-previous">${%lastBuildOnly}</label>
<f:checkbox title="${%lastBuildOnly}"/>
</f:entry>
</f:advanced>
</j:jelly>
\ No newline at end of file
......@@ -29,8 +29,8 @@ THE SOFTWARE.
</f:entry>
<j:if test="${descriptor.showEvenIfUnstableOption(targetType)}">
<f:entry title="">
<f:checkbox name="evenIfUnstable" checked="${instance.threshold.toString()=='UNSTABLE'}" />
<label class="attach-previous">${%Trigger even if the build is unstable}</label>
<f:checkbox name="evenIfUnstable" checked="${instance.threshold.toString()=='UNSTABLE'}"
title="${%Trigger even if the build is unstable}"/>
</f:entry>
</j:if>
</j:jelly>
......@@ -29,12 +29,12 @@ THE SOFTWARE.
checkUrl="'descriptorByName/Fingerprinter/check?value='+encodeURIComponent(this.value)" />
</f:entry>
<f:entry title="">
<f:checkbox name="recordBuildArtifacts" checked="${instance.recordBuildArtifacts}" />
<label class="attach-previous">${%Fingerprint all archived artifacts}</label>
<f:checkbox name="recordBuildArtifacts" checked="${instance.recordBuildArtifacts}"
title="${%Fingerprint all archived artifacts}"/>
</f:entry>
<!-- keepDependencies is actually a property of the Job, not Fingerprinter: -->
<f:entry title="" help="/help/tasks/fingerprint/keepDependencies.html">
<f:checkbox name="keepDependencies" checked="${it.keepDependencies}" />
<label class="attach-previous">${%Keep the build logs of dependencies}</label>
<f:checkbox name="keepDependencies" checked="${it.keepDependencies}"
title="${%Keep the build logs of dependencies}"/>
</f:entry>
</j:jelly>
......@@ -29,7 +29,7 @@ THE SOFTWARE.
checkUrl="'descriptorByName/JavadocArchiver/check?value='+encodeURIComponent(this.value)"/>
</f:entry>
<f:entry help="/help/project-config/javadoc-keep-all.html">
<f:checkbox name="keep_all" checked="${instance.keepAll}" />
<label class="attach-previous">${%Retain Javadoc for each successful build}</label>
<f:checkbox name="keep_all" checked="${instance.keepAll}"
title="${%Retain Javadoc for each successful build}"/>
</f:entry>
</j:jelly>
......@@ -27,12 +27,11 @@ THE SOFTWARE.
<f:textbox name="mailer_recipients" value="${instance.recipients}"/>
</f:entry>
<f:entry title="">
<f:checkbox name="mailer_notifyEveryUnstableBuild" checked="${h.defaultToTrue(!instance.dontNotifyEveryUnstableBuild)}" />
<label class="attach-previous">${%Send e-mail for every unstable build}</label>
<f:checkbox name="mailer_notifyEveryUnstableBuild" checked="${h.defaultToTrue(!instance.dontNotifyEveryUnstableBuild)}"
title="${%Send e-mail for every unstable build}"/>
</f:entry>
<f:entry title="" help="/help/tasks/mailer/sendToindividuals.html">
<f:checkbox name="mailer_sendToIndividuals" checked="${instance.sendToIndividuals}"
/>
<label class="attach-previous">${%Send separate e-mails to individuals who broke the build}</label>
title="${%Send separate e-mails to individuals who broke the build}"/>
</f:entry>
</j:jelly>
......@@ -30,8 +30,7 @@ THE SOFTWARE.
<f:textbox />
</f:entry>
<f:entry field="keepLongStdio" title="">
<f:checkbox name="keepLongStdio" checked="${instance.keepLongStdio}"/>
<label class="attach-previous">${%Retain long standard output/error}</label>
<f:checkbox name="keepLongStdio" checked="${instance.keepLongStdio}" title="${%Retain long standard output/error}"/>
</f:entry>
<j:invokeStatic var="testDataPublisherDescriptors"
className="hudson.tasks.junit.TestDataPublisher" method="all" />
......
......@@ -44,7 +44,6 @@ THE SOFTWARE.
</j:choose>
</f:entry>
<f:entry title="" field="acceptLicense">
<f:checkbox/>
<label class="attach-previous">${%I agree to the Java SE Development Kit License Agreement}</label>
<f:checkbox title="${%I agree to the Java SE Development Kit License Agreement}"/>
</f:entry>
</j:jelly>
......@@ -46,6 +46,10 @@ THE SOFTWARE.
<st:attribute name="field">
Used for databinding. TBD.
</st:attribute>
<st:attribute name="title">
If specified, this human readable text will follow the checkbox, and clicking this text also
toggles the checkbox.
</st:attribute>
</st:documentation>
<f:prepareDatabinding />
<input type="checkbox"
......@@ -54,4 +58,10 @@ THE SOFTWARE.
onclick="${attrs.onclick}" id="${attrs.id}" class="${attrs.negative!=null ? 'negative' : null} ${attrs.checkUrl!=null?'validated':''}"
checkUrl="${attrs.checkUrl}" json="${attrs.json}"
checked="${(attrs.checked ?: instance[attrs.field] ?: attrs.default) ? 'true' : null}"/>
<j:if test="${attrs.title!=null}">
<label class="attach-previous">
<j:whitespace> </j:whitespace>
${attrs.title}
</label>
</j:if>
</j:jelly>
\ No newline at end of file
......@@ -62,9 +62,7 @@ THE SOFTWARE.
<tr class="optional-block-start ${attrs.inline?'':'row-set-start'}" hasHelp="${attrs.help!=null}"><!-- this ID marks the beginning -->
<td colspan="3">
<f:checkbox name="${attrs.name}" onclick="javascript:updateOptionalBlock(this,true)"
negative="${attrs.negative}" checked="${attrs.checked}" field="${attrs.field}" />
<st:nbsp/>
<label class="attach-previous">${title}</label>
negative="${attrs.negative}" checked="${attrs.checked}" field="${attrs.field}" title="${title}" />
</td>
<j:if test="${attrs.help!=null}">
<td>
......
......@@ -31,13 +31,11 @@ THE SOFTWARE.
<f:textbox />
</f:entry>
<f:entry field="uniqueVersion">
<f:checkbox />
<label class="attach-previous">${%Assign unique versions to snapshots}</label>
<f:checkbox title="${%Assign unique versions to snapshots}"/>
</f:entry>
<j:if test="${descriptor.showEvenIfUnstableOption()}">
<f:entry field="evenIfUnstable">
<f:checkbox />
<label>${%Deploy even if the build is unstable}</label>
<f:checkbox title="${%Deploy even if the build is unstable}" />
</f:entry>
</j:if>
</f:advanced>
......
......@@ -24,6 +24,6 @@ THE SOFTWARE.
<?jelly escape-by-default='true'?>
<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="">
<f:checkbox name="yellow" checked="${fruit.yellow}"/> Yellow?
<f:checkbox name="yellow" checked="${fruit.yellow}" title="Yellow?"/>
</f:entry>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册