mirror of
https://github.com/trevor1969/teatracker.git
synced 2026-08-09 10:41:59 +00:00
feat: Add image upload for tea varieties
- Add image upload field to tea form with preview - Add image property to tea data model - Update addTea() to include image data (base64) - Update openTeaModal() to display image when editing - Display tea images on tea cards - Add handleImageUpload() method for file processing - Add migration for existing teas without image field - Add CSS styles for image preview and display on cards - Images stored as base64 in localStorage/Nextcloud Co-authored-by: trevor1969 <trevor1969@users.noreply.github.com>
This commit is contained in:
@ -302,6 +302,15 @@
|
||||
<input type="hidden" id="tea-rating-value" value="3">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tea-image-upload">Tee-Foto</label>
|
||||
<input type="file" id="tea-image-upload" accept="image/*">
|
||||
<div id="tea-image-preview" class="image-preview" style="display: none; margin-top: 10px;">
|
||||
<img id="tea-image-preview-img" style="max-width: 150px; max-height: 150px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);">
|
||||
</div>
|
||||
<input type="hidden" id="tea-image-data" value="">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tea-color">Farbe</label>
|
||||
<input type="color" id="tea-color" value="#8B4513">
|
||||
|
||||
Reference in New Issue
Block a user