Skip to content

Commit

Permalink
For #1410: add landing page skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
ebruchez committed Sep 28, 2022
1 parent b548d6a commit 2f78c5b
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 0 deletions.
39 changes: 39 additions & 0 deletions form-runner/jvm/src/main/resources/apps/fr/i18n/resources.xml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Form Runner Home</title>
<buttons>
Expand Down Expand Up @@ -850,6 +853,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Accueil Form Runner</title>
<buttons>
Expand Down Expand Up @@ -1358,6 +1364,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Inicio Form Runner</title>
<buttons>
Expand Down Expand Up @@ -1864,6 +1873,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title todo="true">[Form Runner Home]</title>
<buttons>
Expand Down Expand Up @@ -2369,6 +2381,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title todo="true">[Form Runner Home]</title>
<buttons>
Expand Down Expand Up @@ -2887,6 +2902,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Form Runner Home</title>
<buttons>
Expand Down Expand Up @@ -3405,6 +3423,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Form Runner Home</title>
<buttons>
Expand Down Expand Up @@ -3923,6 +3944,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Form Runner Koti</title>
<buttons>
Expand Down Expand Up @@ -4441,6 +4465,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Start av formulärmotorn</title>
<buttons>
Expand Down Expand Up @@ -4958,6 +4985,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Form Runner Home</title>
<buttons>
Expand Down Expand Up @@ -5475,6 +5505,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Form Runner</title>
<buttons>
Expand Down Expand Up @@ -5980,6 +6013,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Blanketbehandler start</title>
<buttons>
Expand Down Expand Up @@ -6497,6 +6533,9 @@
</div>
</dialog-body>
</save-locally>
<landing>
<title>Form Runner</title>
</landing>
<home>
<title>Form Runner Home</title>
<buttons>
Expand Down
137 changes: 137 additions & 0 deletions form-runner/jvm/src/main/resources/apps/fr/landing/landing.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
xmlns:version="java:org.orbeon.oxf.common.Version"

lang="{xxf:instance('fr-fr-language-instance')}"
xml:lang="{xxf:instance('fr-fr-language-instance')}">

<xh:head>
<xh:title><xf:output ref="$fr-resources/landing/title"/></xh:title>
<xh:link rel="stylesheet" href="/apps/fr/style/form-runner-landing.css" type="text/css" media="all"/>

<!-- This page needs access to Form Builder permission -->
<!-- <xi:include href="oxf:/apps/fr/includes/permissions-model.xml" xxi:omit-xml-base="true"/>-->
<!-- FR Home page XForms model -->
<xf:model id="fr-form-model" xxf:xpath-analysis="true" xxf:expose-xpath-types="true">

<xf:var
name="tz"
value="
for $offset in frf:defaultTimezoneToOffsetString()
return xs:dayTimeDuration($offset)"/>

<xf:instance id="fr-form-instance">
<i>
<selection/>
</i>
</xf:instance>

</xf:model>
</xh:head>
<xh:body>
<fr:view fluid="true">
<fr:navbar5/>
<div class="row gy-5" xmlns="http://www.w3.org/1999/xhtml">
<div class="col-6 p-2">
<div class="card h-100">
<!-- <img src="..." class="card-img-top" alt="..."/>-->
<h5 class="card-title card-header">Form Builder Forms</h5>
<div class="card-body">
<p class="card-text">View and edit your in-progress forms created with Form Builder.</p>
<a href="/fr/orbeon/builder/summary" class="btn btn-primary stretched-link">Form Builder Forms</a>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
<li class="list-group-item">
<a href="/fr/orbeon/builder/summary" class="">All Form Builder Forms</a>
</li>
</ul>
<div class="card-body">
<p class="card-text">View and edit your in-progress forms created with Form Builder.</p>
<a href="/fr/orbeon/builder/summary" class="btn btn-primary stretched-link">Form Builder Forms</a>
</div>
<div class="card-footer">
<small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
</div>
<div class="col-6 p-2">
<div class="card h-100">
<!-- <img src="..." class="card-img-top" alt="..."/>-->
<h5 class="card-title card-header">Form Builder New Form</h5>
<div class="card-body">
<p class="card-text">Create forms with Form Builder, the Orbeon Forms visual form designer. It allows you to build and deploy forms in minutes right from your web browser. Add form fields, including rich controls such as date, currency, file attachments and more. Group your fields in sections. Define validation logic, visibility rules, initial values. Pre-populate fields from Web or REST services. And there is more!</p>
<a href="/fr/orbeon/builder/new" class="btn btn-primary stretched-link">Create New Form</a>
</div>

</div>
</div>
</div>
<div class="row gy-5">
<div class="col-6 p-2">
<div class="card h-100">
<!-- <img src="..." class="card-img-top" alt="..."/>-->
<h5 class="card-title card-header">My Forms</h5>
<div class="card-body">
<p class="card-text">Access all your published forms.</p>
<a href="/fr/forms" class="btn btn-primary stretched-link">Go to My Forms</a>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
<!-- <li class="list-group-item">-->
<!-- <a href="/fr/orbeon/builder/summary" class="btn btn-primary stretched-link">Form Builder Forms</a>-->
<!-- </li>-->
</ul>
<div class="card-footer">
<small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
</div>
<div class="col-6 p-2">
<div class="card h-100">
<!-- <img src="..." class="card-img-top" alt="..."/>-->
<h5 class="card-title card-header">Admin</h5>
<div class="card-body">
<p class="card-text">Administrative tasks.</p>
<a href="/fr/admin" class="btn btn-primary stretched-link">Go to Admin</a>
</div>
</div>
</div>
</div>
<div class="row gy-5">
<div class="col-6 p-2">
<div class="card h-100">
<!-- <img src="..." class="card-img-top" alt="..."/>-->
<h5 class="card-header">Demo Forms</h5>
<div class="card-body">
<p class="card-text">These are some demo forms.</p>
<!-- <a href="/fr/forms" class="btn btn-primary stretched-link">Go to My Forms</a>-->
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item"><a href="">Controls</a></li>
<li class="list-group-item"><a href="">Bookshelf</a></li>
<li class="list-group-item"><a href="">DMV-14</a></li>
<li class="list-group-item"><a href="">W-9</a></li>
<li class="list-group-item"><a href="">Travel</a></li>
<li class="list-group-item"><a href="">Contact</a></li>
<!-- <li class="list-group-item">-->
<!-- <a href="/fr/orbeon/builder/summary" class="btn btn-primary stretched-link">Form Builder Forms</a>-->
<!-- </li>-->
</ul>
</div>
</div>
<div class="col-6 p-2">

</div>
</div>
</fr:view>
</xh:body>
</xh:html>

0 comments on commit 2f78c5b

Please sign in to comment.