Get the module foundations and the Artist app created
This commit is contained in:
parent
8744b6c562
commit
ffa2162fbd
20 changed files with 590 additions and 0 deletions
4
templates/ArtistApp/footer.hbs
Normal file
4
templates/ArtistApp/footer.hbs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<footer>
|
||||
<button type="button" data-action="close">Cancel</button>
|
||||
<button type="submit">Save</button>
|
||||
</footer>
|
||||
15
templates/ArtistApp/form.hbs
Normal file
15
templates/ArtistApp/form.hbs
Normal 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>
|
||||
43
templates/ArtistApp/linkList.hbs
Normal file
43
templates/ArtistApp/linkList.hbs
Normal 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>
|
||||
22
templates/Dialogs/Link.hbs
Normal file
22
templates/Dialogs/Link.hbs
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue