mirror of
https://github.com/migatu/vtt_work.git
synced 2026-07-14 13:34:42 +00:00
38 lines
1.2 KiB
HTML
38 lines
1.2 KiB
HTML
<form>
|
|
<div class="form-group">
|
|
<label for="text">Note Text:</label>
|
|
<textarea name="text" rows="4">{{text}}</textarea>
|
|
</div>
|
|
|
|
{{!-- Only show the Image Path field for photo notes --}}
|
|
{{#if (eq noteType "photo")}}
|
|
<div class="form-group" style="display: block;">
|
|
<label for="image">Image Path:</label>
|
|
<div class="file-picker">
|
|
<input type="text" name="image" value="{{image}}" placeholder="Enter image path" readonly />
|
|
<button type="button" class="file-picker-button">
|
|
<i class="fas fa-folder-open"></i> Browse
|
|
</button>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="form-group" style="display: none;"></div>
|
|
{{/if}}
|
|
|
|
{{!-- If boardMode is futuristic and noteType is photo, show the extra Identity Name field --}}
|
|
{{#if (eq noteType "photo")}}
|
|
{{#if (eq boardMode "futuristic")}}
|
|
<div class="form-group" style="display: block;">
|
|
<label for="identityName">Identity Name:</label>
|
|
<input type="text" name="identityName" value="{{identityName}}" placeholder="Enter identity name" />
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
<div class="form-group">
|
|
<button type="submit" class="save-button">
|
|
<i class="fas fa-save"></i> Save
|
|
</button>
|
|
</div>
|
|
</form>
|