Skip to content

Commit

Permalink
Added $form-actions param to bs2:Chart mode
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 15, 2024
1 parent 99fb5db commit 27b5278
Showing 1 changed file with 28 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,19 @@ extension-element-prefixes="ixsl"
<xsl:param name="query" as="xs:string?"/>
<xsl:param name="show-controls" select="true()" as="xs:boolean"/>
<xsl:param name="show-save" select="true()" as="xs:boolean"/>
<xsl:param name="form-actions" as="element()">
<xsl:if test="$show-save">
<div class="form-actions">
<button class="btn btn-primary btn-save-chart" type="button">
<xsl:apply-templates select="key('resources', 'save', document(resolve-uri('static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf', $ac:contextUri)))" mode="ldh:logo">
<xsl:with-param name="class" select="'btn btn-primary btn-save-chart'"/>
</xsl:apply-templates>

<xsl:apply-templates select="key('resources', 'save', document(resolve-uri('static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf', $ac:contextUri)))" mode="ac:label"/>
</button>
</div>
</xsl:if>
</xsl:param>

<xsl:if test="$show-controls">
<form method="{$method}" action="{$action}">
Expand Down Expand Up @@ -430,17 +443,7 @@ extension-element-prefixes="ixsl"
</xsl:if>
</div>

<xsl:if test="$show-save">
<div class="form-actions">
<button class="btn btn-primary btn-save-chart" type="button">
<xsl:apply-templates select="key('resources', 'save', document(resolve-uri('static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf', $ac:contextUri)))" mode="ldh:logo">
<xsl:with-param name="class" select="'btn btn-primary btn-save-chart'"/>
</xsl:apply-templates>

<xsl:apply-templates select="key('resources', 'save', document(resolve-uri('static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf', $ac:contextUri)))" mode="ac:label"/>
</button>
</div>
</xsl:if>
<xsl:sequence select="$form-actions"/>
</form>
</xsl:if>
</xsl:template>
Expand Down Expand Up @@ -471,7 +474,20 @@ extension-element-prefixes="ixsl"
<xsl:param name="query" as="xs:string?"/>
<xsl:param name="show-controls" select="true()" as="xs:boolean"/>
<xsl:param name="show-save" select="true()" as="xs:boolean"/>
<xsl:param name="form-actions" as="element()">
<xsl:if test="$show-save">
<div class="form-actions">
<button class="btn btn-primary btn-save-chart" type="button">
<xsl:apply-templates select="key('resources', 'save', document(resolve-uri('static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf', $ac:contextUri)))" mode="ldh:logo">
<xsl:with-param name="class" select="'btn btn-primary btn-save-chart'"/>
</xsl:apply-templates>

<xsl:apply-templates select="key('resources', 'save', document(resolve-uri('static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf', $ac:contextUri)))" mode="ac:label"/>
</button>
</div>
</xsl:if>
</xsl:param>

<xsl:if test="$show-controls">
<form method="{$method}" action="{$action}">
<xsl:if test="$id">
Expand Down Expand Up @@ -583,17 +599,7 @@ extension-element-prefixes="ixsl"
</xsl:if>
</div>

<xsl:if test="$show-save">
<div class="form-actions">
<button class="btn btn-primary btn-save-chart" type="button">
<xsl:apply-templates select="key('resources', 'save', document(resolve-uri('static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf', $ac:contextUri)))" mode="ldh:logo">
<xsl:with-param name="class" select="'btn btn-primary btn-save-chart'"/>
</xsl:apply-templates>

<xsl:apply-templates select="key('resources', 'save', document(resolve-uri('static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf', $ac:contextUri)))" mode="ac:label"/>
</button>
</div>
</xsl:if>
<xsl:sequence select="$form-actions"/>
</form>
</xsl:if>
</xsl:template>
Expand Down

0 comments on commit 27b5278

Please sign in to comment.