Rename file
This commit is contained in:
parent
000f490584
commit
ea014fee10
2 changed files with 1 additions and 1 deletions
25
module/handlebarHelpers/inputs/stringSet.mjs
Normal file
25
module/handlebarHelpers/inputs/stringSet.mjs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { localizer } from "../../utils/Localizer.mjs";
|
||||
|
||||
export function stringSet(input, data) {
|
||||
const label = localizer(input.label);
|
||||
|
||||
if (!data.meta.editable) {
|
||||
return `<div data-input-type="string-set">
|
||||
<span class="label">${label}</span>
|
||||
<span>${input.value}</span>
|
||||
</div>`;
|
||||
};
|
||||
|
||||
return `<div data-input-type="string-set">
|
||||
<label
|
||||
for="${data.meta.idp}-traits"
|
||||
>
|
||||
${label}
|
||||
</label>
|
||||
<string-tags
|
||||
id="${data.meta.idp}-traits"
|
||||
value="${input.value}"
|
||||
name="${input.path}"
|
||||
/>
|
||||
</div>`;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue