Get the module foundations and the Artist app created

This commit is contained in:
Oliver 2026-01-17 21:54:41 -07:00
parent 8744b6c562
commit ffa2162fbd
20 changed files with 590 additions and 0 deletions

View file

@ -0,0 +1,4 @@
<footer>
<button type="button" data-action="close">Cancel</button>
<button type="submit">Save</button>
</footer>

View file

@ -0,0 +1,15 @@
<div>
<div class="row">
<label for="{{meta.idp}}-name">
Name
</label>
<div class="grow"></div>
<input
type="text"
id="{{meta.idp}}-name"
name="name"
value="{{artist.name}}"
required
>
</div>
</div>

View file

@ -0,0 +1,43 @@
<div>
<div class="row">
<span class="label">Links</span>
<div class="grow"></div>
<button
type="button"
aria-label="{{localize 'TB.apps.ArtistApp.add-link'}}"
data-tooltip="TB.apps.ArtistApp.add-link"
data-action="addNewLink"
>
+
</button>
</div>
<ul>
{{#each artist.links as | link |}}
<li
data-index="{{@key}}"
{{#if link.isNew}}
data-tooltip="TB.common.unsaved"
{{/if}}
>
<a
href="{{link.url}}"
target="_blank"
rel="noreferrer nofollow"
>
{{link.name}}
</a>
{{#if link.isNew}}
<div class="large" aria-label="{{localize 'TB.common.unsaved'}}">
!
</div>
{{/if}}
<button
type="button"
data-action="deleteLink"
>
X
</button>
</li>
{{/each}}
</ul>
</div>

View file

@ -0,0 +1,22 @@
<div class="form-group">
<label for="{{idp}}-name">
{{localize "TB.dialogs.Link.name"}}
</label>
<input
id="{{idp}}-name"
type="text"
value="{{name}}"
name="name"
>
</div>
<div class="form-group">
<label for="{{idp}}-url">
{{localize "TB.dialogs.Link.url"}}
</label>
<input
id="{{idp}}-url"
type="text"
value="{{url}}"
name="url"
>
</div>