blob: 76fc59024ff1c590e446f6d4163cad6348f00d84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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 ?>">
<span class="pillIcon material-symbols close-small"></span>
</button>
<?php endif; ?>
|