Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 83d008ae7003c979d0fd59a01ba890d27dd0bc9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!-- **************************************************************************
#
# 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
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors: 
#
#    Kohsuke Kawaguchi, 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">
    <st:documentation>
        Section header in the form table.
        <st:attribute name="title" use="required">
            The section header text.
            If null is given, the entire &lt;f:section> tag becomes no-op.
        </st:attribute>
        <st:attribute name="name">
            Optional attribute to create a JSON object from this section.
        </st:attribute>
        <st:attribute name="resetUrl">
            If present, Redo icon will rendered and Reset will be available.
        </st:attribute>
    </st:documentation>
    <f:rowSet name="${attrs.name}">
        <j:if test="${attrs.title!=null}">
            <f:block>
                <j:if test="${!empty(attrs.resetUrl)}">
                    <div class="section-reset">
                        <a href="#" class="reset-button" resetURL="${resetUrl}">
                            <img src="${imagesURL}/16x16/undo.png" alt="Reset ${attrs.title}"/>
                        </a>
                    </div>
                </j:if>
                <div class="config-section">
                    ${title}
                </div>
            </f:block>
        </j:if>
        <d:invokeBody />
    </f:rowSet>
</j:jelly>

Back to the top