-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- retrieve data for cards - XBL components for cards - i18n - remove old page and images - configuration property - try new images for quick links
- Loading branch information
Showing
23 changed files
with
639 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
256 changes: 232 additions & 24 deletions
256
form-runner/jvm/src/main/resources/apps/fr/i18n/resources.xml
Large diffs are not rendered by default.
Oops, something went wrong.
363 changes: 262 additions & 101 deletions
363
form-runner/jvm/src/main/resources/apps/fr/landing/landing.xhtml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
form-runner/jvm/src/main/resources/xbl/orbeon/card/card.xbl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<xbl:xbl xmlns:xh="http://www.w3.org/1999/xhtml" | ||
xmlns:xf="http://www.w3.org/2002/xforms" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | ||
xmlns:xbl="http://www.w3.org/ns/xbl" | ||
xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" | ||
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"> | ||
|
||
<xbl:binding | ||
id="fr-card" | ||
element="fr|card" | ||
xxbl:mode="lhha custom-lhha binding" | ||
class="p-2" | ||
> | ||
<xbl:template | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:oxf="http://www.orbeon.com/oxf/processors" | ||
xxbl:transform="oxf:unsafe-xslt" | ||
> | ||
<xh:div class="card h-100" xsl:version="2.0"> | ||
|
||
<xf:var name="binding" value="xxf:binding('fr-card')"/> | ||
<xf:select ref="xf:element('_')" appearance="xxf:internal" id="hidden-select"> | ||
<xbl:content includes=":root > xf|itemset, :root > xf|item, :root > xf|choices"/> | ||
</xf:select> | ||
<xf:var name="items" value="xxf:itemset('hidden-select', 'xml')//item"/> | ||
|
||
<xh:h5 class="card-title card-header"><xf:output value="xxf:label('fr-card')"/></xh:h5> | ||
<xh:div class="card-body"> | ||
<xbl:content includes=":root > fr|card-body > *"/> | ||
</xh:div> | ||
<xh:ul class="list-group list-group-flush"> | ||
<xf:repeat ref="$items/value/string()"> | ||
<xf:var name="value" value="."/> | ||
<xf:var name="label" value="$items[value = $value]/label/string()"/> | ||
<xf:var name="hint" value="$items[value = $value]/hint/string()"/> | ||
<xh:li class="list-group-item text-truncate"> | ||
<xh:a href="{{$value}}"><xf:output value="$label"/></xh:a> | ||
<xh:br/> | ||
<xf:output value="$hint"/> | ||
</xh:li> | ||
</xf:repeat> | ||
</xh:ul> | ||
<xsl:if test="exists(/*/fr:card-footer)"> | ||
<xh:div class="card-footer"> | ||
<xh:small class="text-muted"> | ||
<xbl:content includes=":root > fr|card-footer > *"/> | ||
</xh:small> | ||
</xh:div> | ||
</xsl:if> | ||
</xh:div> | ||
</xbl:template> | ||
</xbl:binding> | ||
</xbl:xbl> |
46 changes: 46 additions & 0 deletions
46
form-runner/jvm/src/main/resources/xbl/orbeon/link-card/link-card.xbl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<xbl:xbl xmlns:xh="http://www.w3.org/1999/xhtml" | ||
xmlns:xf="http://www.w3.org/2002/xforms" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | ||
xmlns:xbl="http://www.w3.org/ns/xbl" | ||
xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" | ||
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"> | ||
|
||
<xbl:binding | ||
id="fr-link-card" | ||
element="fr|link-card" | ||
xxbl:mode="lhha custom-lhha binding" | ||
class="p-2" | ||
> | ||
<xbl:template | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:oxf="http://www.orbeon.com/oxf/processors" | ||
xxbl:transform="oxf:unsafe-xslt" | ||
> | ||
<xh:div class="card h-100" xsl:version="2.0"> | ||
<xh:h5 class="card-title card-header"><xf:output value="xxf:label('fr-link-card')"/></xh:h5> | ||
<xh:img src="{/*/@img-src}" class="card-img-top" alt="{{xxf:label('fr-link-card')}}"/> | ||
|
||
<xsl:if test="exists(/*/fr:card-body)"> | ||
<xh:div class="card-body"> | ||
<xbl:content includes=":root > fr|card-body > *"/> | ||
</xh:div> | ||
</xsl:if> | ||
|
||
<xh:div class="card-body text-center"> | ||
<xh:a href="{/*/@href}" class="btn btn-light stretched-link"> | ||
<xf:output value="xxf:label('fr-link-card')"/> | ||
</xh:a> | ||
</xh:div> | ||
|
||
<xsl:if test="exists(/*/fr:card-footer)"> | ||
<xh:div class="card-footer"> | ||
<xh:small class="text-muted"> | ||
<xbl:content includes=":root > fr|card-footer > *"/> | ||
</xh:small> | ||
</xh:div> | ||
</xsl:if> | ||
</xh:div> | ||
</xbl:template> | ||
</xbl:binding> | ||
</xbl:xbl> |
62 changes: 0 additions & 62 deletions
62
orbeon-war/jvm/src/main/webapp/WEB-INF/resources/apps/home/examples-form-runner.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+512 KB
orbeon-war/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/cogs.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+468 KB
orbeon-war/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/crane.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-29.3 KB
...jvm/src/main/webapp/WEB-INF/resources/apps/home/images/form-bookshelf-small.jpg
Binary file not shown.
Binary file removed
BIN
-55.7 KB
...r/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/form-builder-small.jpg
Binary file not shown.
Binary file removed
BIN
-22.3 KB
...r/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/form-contact-small.jpg
Binary file not shown.
Binary file removed
BIN
-55.7 KB
.../jvm/src/main/webapp/WEB-INF/resources/apps/home/images/form-controls-small.jpg
Binary file not shown.
Binary file removed
BIN
-22.6 KB
...war/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/form-dmv14-small.jpg
Binary file not shown.
Binary file removed
BIN
-14.2 KB
...ar/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/form-travel-small.jpg
Binary file not shown.
Binary file removed
BIN
-23.6 KB
...on-war/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/form-w9-small.jpg
Binary file not shown.
Binary file removed
BIN
-24.9 KB
...on-war/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/fr-home-small.jpg
Binary file not shown.
Binary file added
BIN
+574 KB
orbeon-war/jvm/src/main/webapp/WEB-INF/resources/apps/home/images/house.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters