fixed margins

This commit is contained in:
Felix Ivo 2025-06-23 11:12:35 +02:00
parent bcde6649b5
commit 80cb9f2818
2 changed files with 10 additions and 2 deletions

View File

@ -31,6 +31,8 @@ function sanitize($data, $flags = ENT_QUOTES, $encoding = 'UTF-8') {
} }
?> ?>
<div class="container">
<div class="page-header"> <div class="page-header">
<h2><?php echo $isEditMode ? 'Edit Note' . (isAdmin() && $note && $note['user_id'] != $_SESSION['user_id'] ? ' (Admin Edit - Owner: '.sanitize($note['owner_username']).')' : '') : 'Create New Note'; ?></h2> <h2><?php echo $isEditMode ? 'Edit Note' . (isAdmin() && $note && $note['user_id'] != $_SESSION['user_id'] ? ' (Admin Edit - Owner: '.sanitize($note['owner_username']).')' : '') : 'Create New Note'; ?></h2>
<a href="?controller=Notes&page=showNotes&do=showNotes" class="button secondary">Cancel</a> <a href="?controller=Notes&page=showNotes&do=showNotes" class="button secondary">Cancel</a>
@ -61,3 +63,5 @@ function sanitize($data, $flags = ENT_QUOTES, $encoding = 'UTF-8') {
<button type="submit" class="button"><?php echo $isEditMode ? 'Update Note' : 'Create Note'; ?></button> <button type="submit" class="button"><?php echo $isEditMode ? 'Update Note' : 'Create Note'; ?></button>
</div> </div>
</form> </form>
</div>

View File

@ -31,6 +31,8 @@ function sanitize($data, $flags = ENT_QUOTES, $encoding = 'UTF-8') {
} }
?> ?>
<div class="container">
<div class="page-header"> <div class="page-header">
<h2><?php echo $isEditMode ? 'Edit Note' . (isAdmin() && $note && $note['user_id'] != $_SESSION['user_id'] ? ' (Admin Edit - Owner: '.sanitize($note['owner_username']).')' : '') : 'Create New Note'; ?></h2> <h2><?php echo $isEditMode ? 'Edit Note' . (isAdmin() && $note && $note['user_id'] != $_SESSION['user_id'] ? ' (Admin Edit - Owner: '.sanitize($note['owner_username']).')' : '') : 'Create New Note'; ?></h2>
<a href="?controller=Notes&page=showNotes&do=showNotes" class="button secondary">Cancel</a> <a href="?controller=Notes&page=showNotes&do=showNotes" class="button secondary">Cancel</a>
@ -61,3 +63,5 @@ function sanitize($data, $flags = ENT_QUOTES, $encoding = 'UTF-8') {
<button type="submit" class="button"><?php echo $isEditMode ? 'Update Note' : 'Create Note'; ?></button> <button type="submit" class="button"><?php echo $isEditMode ? 'Update Note' : 'Create Note'; ?></button>
</div> </div>
</form> </form>
</div>