Skip to content

Commit

Permalink
chore: Update form-samples
Browse files Browse the repository at this point in the history
  • Loading branch information
StfBauer committed Nov 28, 2024
1 parent aca0231 commit 57e1469
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 23 deletions.
1 change: 1 addition & 0 deletions htwoo-core/src/_data/form-sample.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"iconname": "icon-arrow-right",
"form-flow": {
"iconname": "icon-arrow-right",
"form": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{#form-flow}}
{{#form}}
<fieldset id="new-item-form" class="hoo-fieldset no-outline">
<div class="hoo-field" role="group">
Expand Down Expand Up @@ -48,4 +49,5 @@
{{/datetime-reported}}
</div>
</fieldset>
{{/form}}
{{/form}}
{{/form-flow}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{#form-flow}}
{{#form}}
<fieldset id="issue-verification" class="hoo-fieldset no-outline">
<div class="hoo-field" role="group">
Expand Down Expand Up @@ -39,4 +40,5 @@
{{/estimate-time-to-resolve}}
</div>
</fieldset>
{{/form}}
{{/form}}
{{/form-flow}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{#form-flow}}
{{#form}}
<fieldset id="resolution" class="hoo-fieldset no-outline">
<div class="hoo-field" role="group">
Expand Down Expand Up @@ -39,4 +40,5 @@
{{/follow-up-required}}
</div>
</fieldset>
{{/form}}
{{/form}}
{{/form-flow}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{#form-flow}}
{{#form}}
<fieldset id="new-item-form" class="hoo-fieldset no-outline">
<div class="hoo-field" role="group">
Expand Down Expand Up @@ -53,4 +54,5 @@
{{/btn-report-issue}}
</div>
</fieldset>
{{/form}}
{{/form}}
{{/form-flow}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{#form-flow}}
{{#form}}
<fieldset id="issue-verification" class="hoo-fieldset no-outline">
<div class="hoo-field" role="group">
Expand Down Expand Up @@ -42,4 +43,5 @@
{{/btn-report-verified}}
</div>
</fieldset>
{{/form}}
{{/form}}
{{/form-flow}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{#form-flow}}
{{#form}}
<fieldset id="resolution" class="hoo-fieldset no-outline">
<div class="hoo-field" role="group">
Expand Down Expand Up @@ -37,4 +38,5 @@
{{/btn-report-completed}}
</div>
</fieldset>
{{/form}}
{{/form}}
{{/form-flow}}
5 changes: 2 additions & 3 deletions htwoo-core/src/_patterns/organism/form-sample/form-flow-1.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#form-flow}}

<section class="facility-form">
{{> molecules-new-form-step1 }}
</section>
Expand All @@ -22,5 +22,4 @@
// Insert the next time into the second <time> field
document.getElementById('next-time').setAttribute('datetime', nextTime.toISOString());
document.getElementById('next-time').textContent = formattedNextTime;
</script>
{{/form-flow}}
</script>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{#form-flow}}
<section class="facility-form">
<details class="hoo-accordion" open>
<summary class="hoo-accordion-header">
Expand Down Expand Up @@ -37,5 +36,4 @@
// Insert the next time into the second <time> field
document.getElementById('next-time').setAttribute('datetime', nextTime.toISOString());
document.getElementById('next-time').textContent = formattedNextTime;
</script>
{{/form-flow}}
</script>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{#form-flow}}
<section class="facility-form">
<section>
<details class="hoo-accordion" name="issue-tracking">
Expand Down Expand Up @@ -51,5 +50,4 @@
// Insert the next time into the second <time> field
document.getElementById('next-time').setAttribute('datetime', nextTime.toISOString());
document.getElementById('next-time').textContent = formattedNextTime;
</script>
{{/form-flow}}
</script>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{#form-flow}}
<section class="facility-form">
<section class="hoo-accordion-group" role="accordion">
<details class="hoo-accordion" open name="issue-tracking">
Expand Down Expand Up @@ -45,5 +44,4 @@
// Insert the next time into the second <time> field
document.getElementById('next-time').setAttribute('datetime', nextTime.toISOString());
document.getElementById('next-time').textContent = formattedNextTime;
</script>
{{/form-flow}}
</script>
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{{#form-flow}}
<section class="facility-form-overview">
{{> molecules-new-disp-step1 }}
{{> molecules-new-disp-step2 }}
{{> molecules-new-disp-step3 }}
</section>
{{/form-flow}}
<script>
// Get the current date and time
const now = new Date();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{#form-flow}}
<section class="facility-form-overview">
{{> molecules-new-form-step1 }}
{{> molecules-new-form-step2 }}
{{> molecules-new-form-step3 }}
</section>
{{/form-flow}}
</section>

0 comments on commit 57e1469

Please sign in to comment.