Ignore:
Timestamp:
2010-08-18T17:28:49+12:00 (14 years ago)
Author:
sjb48
Message:

Working on auto-resizing tables and column insertion. Partially working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/xml-to-gui.xsl

    r22598 r22676  
    133133        <xsl:param name="metadataSets"/>
    134134
    135         <div class="gsf_metadata css_gsf_metadata block leaf" title="gsf:metadata">METADATA <xsl:call-template name="meta-to-combo">
     135        <div class="gsf_metadata css_gsf_metadata block leaf" title="gsf:metadata"><xsl:call-template name="meta-to-combo">
    136136                        <xsl:with-param name="metadataSets" select="$metadataSets"/>
    137137                        <xsl:with-param name="current" select="@name"/>
    138                      </xsl:call-template> <a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     138                     </xsl:call-template><a href="#" class="remove">[x]</a>
    139139        </div>
    140140    </xsl:template>
     
    196196
    197197        <div class="gsf_template css_gsf_template block" title="gsf:template">
    198                 TEMPLATE[match=<input type="text" name="rawtextinput" size="10" value="{@match}"/>]<a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
    199                 <table border="1">
     198                MATCH=<input type="text" name="rawtextinput" size="10" value="{@match}"/><xsl:choose>
     199                    <xsl:when test="not(@mode)"> <!-- parameter has not been supplied -->
     200                    </xsl:when>
     201                    <xsl:otherwise>MODE=<input type="text" name="rawtextinput" size="10" value="{@mode}"/></xsl:otherwise>
     202                    </xsl:choose><a href="#" class="minmax">[+]</a><a href="#" class="remove">[x]</a>
     203                <table class="table" border="1">
     204                <tbody>
    200205                <tr class="tr">
     206                <td class="droppable" width="10px"/>
    201207                <xsl:apply-templates mode="xml-to-gui">
    202208                    <xsl:with-param name="depth" select="$depth"/>
     
    204210                </xsl:apply-templates>
    205211                </tr>
     212                </tbody>
    206213                </table>
    207214        </div><br/>
     
    229236
    230237        <div class="gsf_when css_gsf_when block" title="gsf:when">
    231                 WHEN[test=<xsl:value-of select="@test"/>] <br/><a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     238                WHEN[test=<xsl:value-of select="@test"/>]<a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
    232239                <xsl:apply-templates mode="xml-to-gui">
    233240                  <xsl:with-param name="depth" select="$depth"/>
     
    327334            </div>
    328335        </td>
     336        <td class="droppable" width="10px"/>
    329337    </xsl:template>
    330338
Note: See TracChangeset for help on using the changeset viewer.