aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/attachment_pill.php
diff options
context:
space:
mode:
authorwinter2025-03-15 18:53:29 +0000
committerwinter2025-03-15 18:53:29 +0000
commite0588a6113ff6b3c1000fa6c82629f81fb5e05b5 (patch)
treeef6beb046a7dcc7542b88f0962d4e5e264895b7a /templates/attachment_pill.php
parent61b122e88cc6783b4d0cf5142a22002f8e558c60 (diff)
[refactor] move some templates to subdirs
Diffstat (limited to 'templates/attachment_pill.php')
-rw-r--r--templates/attachment_pill.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/templates/attachment_pill.php b/templates/attachment_pill.php
deleted file mode 100644
index 6fff74d..0000000
--- a/templates/attachment_pill.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-$type ??= 'add';
-?>
-
-<?php if ($type == 'add'): ?>
-
- <button id="writeNoteAttachmentPillAdder" type="button" class="inlinePill" type="button"
- _="on click set f to #noteAttachmentFile then f.click()">
- <span class="pillIcon material-symbols add"></span>
- <span class="pillText"><?= __('writeNote.attachments.add.action') ?></span>
- </button>
-
-<?php elseif ($type == 'file'): ?>
-
- <button class="inlinePill" type="button" _="on click remove me">
- <span class="pillIcon material-symbols attach-file"></span>
- <span class="pillText"><?= $name ?></span>
- <input type="hidden" name="attachments[]" value="<?= $oid ?>">
- <input type="hidden" name="altTexts[]" value="<?= $name ?>">
- <span class="pillIcon material-symbols close-small"></span>
- </button>
-
-<?php elseif ($type == 'image'): ?>
-
- <div class="inlinePill imageAttachmentPill">
- <div class="row pillInfo">
- <span class="pillIcon material-symbols attach-file"></span>
- <span class="pillText"><?= $name ?></span>
- </div>
- <img src="<?= $href ?>">
- <input type="hidden" name="attachments[]" value="<?= $oid ?>">
- <div class="row">
- <label for="altText-<?= $oid ?>"><?= __('writeNote.attachments.altText.label') ?></label>
- <textarea id="altText-<?= $oid ?>" name="altTexts[]"></textarea>
- </div>
- <div class="row">
- <button type="button" class="secondary" _="on click remove closest .inlinePill">
- <span class="material-symbols close-small"></span>
- <?= __('writeNote.attachments.remove.action') ?>
- </button>
- </div>
- </div>
-
-<?php endif; ?> \ No newline at end of file