Minor fixes to the image fragment.
This commit is contained in:
parent
48ad5847b9
commit
9d0dad8d74
1 changed files with 10 additions and 3 deletions
|
@ -16,10 +16,17 @@
|
|||
<button class="btn btn-danger" onclick="ImageWidget.deleteImage('{{ id }}', '{{ image.id }}')">
|
||||
{{ icons.render_icon('trash') }}
|
||||
</button>
|
||||
<label class="btn btn-secondary mb0">
|
||||
|
||||
<form method="POST" enctype="multipart/form-data" id="image-upload-form-{{ id }}" class="d-none">
|
||||
<input type="file" id="image-upload-input-{{ id }}" name="file"
|
||||
onchange="ImageWidget.submitImageUpload('{{ id }}')">
|
||||
<input type="hidden" name="model" value="inventory">
|
||||
<input type="hidden" name="model_id" value="{{ id }}">
|
||||
<input type="hidden" name="caption" value="Uploaded via UI">
|
||||
</form>
|
||||
|
||||
<label class="btn btn-secondary mb0" for="image-upload-input-{{ id }}">
|
||||
{{ icons.render_icon('upload') }}
|
||||
<input type="file" class="d-none" onchange="ImageWidget.submitImageUpload('{{ id }}')"
|
||||
id="image-upload-input-{{ id }}">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue