Skip to main content
blob: 8df98fbf072c20f5a4d3f69eb10c002010e6e9c0 (plain) (tree)







<!-- **************************************************************************
# Copyright  (c) 2004-2011 Oracle Corporation.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# Contributors:
#    Kohsuke Kawaguchi, Nikita Levyankov, Anton Kozak
#************************************************************************** --> 
<?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">
    Foldable block that can be expanded to show more controls by checking the checkbox.
    <st:attribute name="name">
      Name of the checkbox. Can be used by the server to determine
      if the block is collapsed or expanded at the time of submission.
      Note that when the block is collapsed, none of its child controls will send
      the values to the server (unlike &lt;f:advanced>)
    <st:attribute name="title">
      Human readable text that follows the checkbox.
    <st:attribute name="field">
      Used for databinding. TBD. Either this or @name/@title combo is required.
    <st:attribute name="checked">
      initial checkbox status. true/false.
    <st:attribute name="help">
      If present, the (?) icon will be rendered on the right to show inline help.
      See @help for &lt;f:entry>.
    <st:attribute name="negative">
      if present, the foldable section expands when the checkbox is unchecked.
    <st:attribute name="inline">
      if present, the foldable section will not be grouped into a separate JSON object upon submission
    <st:attribute name="resetUrl">
      If present, Redo icon will rendered and Reset will be available.
    <st:attribute name="isPropertyOverridden">
      if present and true - value is overridden
  <j:if test="${}">
    <!-- infer the help page from the current descriptor and field if possible -->
    <j:set target="${attrs}" property="help"
           value="${descriptor.getHelpFile(attrs.field)}" />
  <j:if test="${attrs.isPropertyOverridden==null}">
    <j:set target="${attrs}" property="isPropertyOverridden" value="false"/>
  <tr class="optional-block-start ${attrs.inline?'':'row-set-start'}" hasHelp="${!=null}"><!-- this ID marks the beginning -->
      <td colspan="3" class="${attrs.isPropertyOverridden? 'modified': 'original'}">
        <j:if test="${attrs.isPropertyOverridden and !empty(attrs.resetUrl)}">
           <div class="optional-reset">
           <a href="#" class="reset-button" resetURL="${resetUrl}">
              <img src="${imagesURL}/16x16/undo.png" alt="Reset ${title}" />
        <f:checkbox name="${}" onclick="javascript:updateOptionalBlock(this,true)"
                  negative="${attrs.negative}" checked="${attrs.checked}" field="${attrs.field}" title="${title}" />
    <j:if test="${!=null}">
        <a href="#" class="help-button" helpURL="${rootURL}${}"><img src="${imagesURL}/16x16/help.png" alt="Help for feature: ${title}" /></a>
  <j:if test="${!=null}">
    <f:helpArea />
  <d:invokeBody />
  <!-- end marker -->
  <tr class="${attrs.inline?'':'row-set-end'} optional-block-end" />

Back to the top