Compare commits

...

3 commits

Author SHA1 Message Date
Kazhnuz
098ef66839 🚸 (admin): make possible to directly create user/category everywhere 2025-01-18 16:43:48 +01:00
Kazhnuz
74f39b69f7 💬 (admin): unifies the "New..." labels 2025-01-18 16:43:21 +01:00
Kazhnuz
914ab9f0b9 💄 (admin/dashboard): larger main column 2025-01-18 16:35:44 +01:00
6 changed files with 17 additions and 5 deletions

View file

@ -78,6 +78,17 @@
<a class="dropdown-item" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>">
<?php $L->p('New content') ?></a>
</li>
<li>
<a class="dropdown-item" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-category' ?>">
<?php $L->p('New category') ?></a>
</li>
<?php if (checkRole(array('admin'),false)): ?>
<li><hr class="dropdown-divider"></li>
<li>
<a class="dropdown-item" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-user' ?>">
<?php $L->p('New user') ?></a>
</li>
<?php endif; ?>
</ul>
</div>
</li>

View file

@ -6,7 +6,7 @@ echo Bootstrap::pageTitle(array('title'=>$L->g('Categories'), 'icon'=>'tags'));
echo "<div>";
echo Bootstrap::link(array(
'title'=>$L->g('Add a new category'),
'title'=>$L->g('New category'),
'href'=>HTML_PATH_ADMIN_ROOT.'new-category',
'icon'=>'plus',
'class'=>'btn btn-outline-success'

View file

@ -1,6 +1,6 @@
<div id="dashboard" class="container">
<div class="row">
<div class="col-md-7">
<div class="col-md-8">
<!-- Good message -->
<div>
@ -110,7 +110,7 @@
<?php Theme::plugins('dashboard') ?>
</div>
<div class="col-md-5">
<div class="col-md-4">
<div class="card">
<h4 class="card-header"><?php $L->p('Notifications') ?></h4>

View file

@ -3,7 +3,7 @@
<?php echo Bootstrap::formOpen(array('id'=>'jsform', 'class'=>'tab-content')); ?>
<div class="d-flex justify-content-between mb-2">
<?php echo Bootstrap::pageTitle(array('title'=>$L->g('Add a new user'), 'icon'=>'user')); ?>
<?php echo Bootstrap::pageTitle(array('title'=>$L->g('New user'), 'icon'=>'user')); ?>
<div>
<button type="submit" class="btn btn-primary" name="save"><?php $L->p('Save') ?></button>
<a class="btn btn-secondary" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>" role="button"><?php $L->p('Cancel') ?></a>

View file

@ -8,7 +8,7 @@ echo Bootstrap::pageTitle(array('title'=>$L->g('Users'), 'icon'=>'users'));
echo "<div>";
echo Bootstrap::link(array(
'title'=>$L->g('add-a-new-user'),
'title'=>$L->g('New user'),
'href'=>HTML_PATH_ADMIN_ROOT.'new-user',
'icon'=>'plus',
'class'=>'btn btn-outline-success'

View file

@ -82,6 +82,7 @@
"new-category": "Nouvelle catégorie",
"you-do-not-have-sufficient-permissions": "Vous ne disposez pas des autorisations suffisantes pour accéder à cette page, veuillez contacter ladministrateur.",
"add-a-new-user": "Ajouter un nouvel utilisateur",
"new-user":"Nouvel utilisateur",
"url-associated-with-the-content": "URL associée au contenu.",
"language-and-timezone": "Langue et fuseau horaire",
"change-your-language-and-region-settings": "Modifiez vos paramètres linguistiques et régionaux.",