Add first iteration of the Image DB editor
This commit is contained in:
parent
773c506570
commit
c7c02702d7
13 changed files with 425 additions and 7 deletions
30
templates/ImageApp/form.hbs
Normal file
30
templates/ImageApp/form.hbs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<div class="inputs">
|
||||
<label for="{{meta.idp}}-name">
|
||||
Name (Optional)
|
||||
</label>
|
||||
<input
|
||||
id="{{meta.idp}}-name"
|
||||
type="text"
|
||||
name="name"
|
||||
value="{{image.name}}"
|
||||
>
|
||||
|
||||
<label for="{{meta.idp}}-tags">
|
||||
Tags (Optional)
|
||||
</label>
|
||||
<string-tags
|
||||
id="{{meta.idp}}-tags"
|
||||
value="{{image.tags}}"
|
||||
name="tags"
|
||||
></string-tags>
|
||||
|
||||
<label for="{{meta.idp}}-artists">
|
||||
Artists (Optional)
|
||||
</label>
|
||||
<multi-select
|
||||
id="{{meta.idp}}-artists"
|
||||
name="artists"
|
||||
>
|
||||
{{ tb-options image.artists artists }}
|
||||
</multi-select>
|
||||
</div>
|
||||
14
templates/ImageApp/header.hbs
Normal file
14
templates/ImageApp/header.hbs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<header>
|
||||
<div class="row">
|
||||
<label for="{{meta.idp}}-image">
|
||||
Image File
|
||||
</label>
|
||||
{{!-- TODO: when adding support for editing, make this readonly --}}
|
||||
<input
|
||||
type="file"
|
||||
id="{{meta.idp}}-image"
|
||||
accept="{{imageTypes}}"
|
||||
name="file"
|
||||
>
|
||||
</div>
|
||||
</header>
|
||||
12
templates/ImageApp/preview.hbs
Normal file
12
templates/ImageApp/preview.hbs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<div class="preview">
|
||||
{{#if image.path}}
|
||||
<img
|
||||
src="{{imageURL}}"
|
||||
alt=""
|
||||
>
|
||||
{{else}}
|
||||
<span class="placeholder">
|
||||
Select an image to see the preview
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue