Правила доступа на запись и подписанные ссылки

This commit is contained in:
rsgrinko committed 2026-09-15 22:25:58 +03:00
1 parent 9508c29964
commit 3a04ee5bb3
14 files changed
+638 -10

No files matched your search

+6 -4
View File
@@ -31,10 +31,12 @@ $action = $isNew
<textarea name="body"><?= View::e((string) $note->body) ?></textarea>
</label>
<label class="inline" style="margin-bottom: 12px;">
<input type="checkbox" name="pinned" value="1" <?= $note->pinned ? 'checked' : '' ?>>
<span>Закрепить наверху списка</span>
</label>
<?php if (View::can('note.pin', $note)) { ?>
<label class="inline" style="margin-bottom: 12px;">
<input type="checkbox" name="pinned" value="1" <?= $note->pinned ? 'checked' : '' ?>>
<span>Закрепить наверху списка</span>
</label>
<?php } ?>
<label>
<span>Файл<?= $note->hasFile() ? ' (сейчас: ' . View::e((string) $note->raw('file_name')) . ')' : '' ?></span>