Skip to content

Commit

Permalink
NEW: Primary/Secondary Final
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhieb committed Jun 9, 2024
1 parent a6e10ba commit a5ebb74
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
5 changes: 5 additions & 0 deletions app/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function interlinear(cssClasses, opts) {

}

function is(a, b) {
return a == b
}

function translation(str) {
return `<span class=tln>‘${ str }’</span>`
}
Expand All @@ -54,6 +58,7 @@ const hbs = new ExpressHandlebars({
helpers: {
igl: interlinear,
inex: inlineExample,
is,
section,
tln: translation,
},
Expand Down
34 changes: 26 additions & 8 deletions pages/Component/Component.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,32 @@
<dt>ID</dt>
<dd><code>{{ ID }}</code></dd>

<dt>Initial: Reduplicated</dt>
<dd>
<span class=visually-hidden>{{#if reduplicated }}true{{else}}false{{/if}}</span>
<input type=checkbox {{#if reduplicated }}checked{{/if}} inert>
</dd>

<dt>Final: Concrete/Abstract</dt>
<dd>{{#if specificity }}{{ specificity }}{{else}}{{/if}}</dd>
{{#if (is type 'initial') }}
<dt>Initial: Reduplicated</dt>
<dd>
<span class=visually-hidden>{{#if reduplicated }}true{{else}}false{{/if}}</span>
<input type=checkbox {{#if reduplicated }}checked{{/if}} inert>
</dd>
{{/if}}

{{#if (is type 'final') }}

<dt>Final: Concrete/Abstract</dt>
<dd>{{#if specificity }}{{ specificity }}{{else}}{{/if}}</dd>

<dt>Final: Primary</td>
<dd>
<span class=visually-hidden>{{#if primary }}true{{else}}false{{/if}}</span>
<input type=checkbox {{#if primary }}checked{{/if}} inert>
</dd>

<dt>Final: Secondary</td>
<dd>
<span class=visually-hidden>{{#if secondary }}true{{else}}false{{/if}}</span>
<input type=checkbox {{#if secondary }}checked{{/if}} inert>
</dd>

{{/if}}

</dl>
</fieldset>
Expand Down

0 comments on commit a5ebb74

Please sign in to comment.