This commit is contained in:
Fred Tempez 2023-11-23 15:08:19 +01:00
parent 4ed8198321
commit 5c13fe89ea
3 changed files with 5 additions and 5 deletions

View File

@ -557,7 +557,7 @@ class course extends common
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([
'title' => sprintf(helper::translate('Inscriptions dans le contenu %s'), $this->getData(['course', $courseId, 'title'])), 'title' => sprintf(helper::translate('Inscriptions %s'), $this->getData(['course', $courseId, 'title'])),
'view' => 'users', 'view' => 'users',
]); ]);
} }

View File

@ -25,8 +25,8 @@
<?php echo template::button('userDeleteAll', [ <?php echo template::button('userDeleteAll', [
'class' => 'buttonGreen', 'class' => 'buttonGreen',
'href' => helper::baseUrl() . 'course/usersAdd/' . $this->getUrl(2), 'href' => helper::baseUrl() . 'course/usersAdd/' . $this->getUrl(2),
'value' => template::ico('plus'), 'value' => template::ico('users'),
'help' => 'Inscrire', 'help' => 'Inscription',
]) ?> ]) ?>
</div> </div>
</div> </div>

View File

@ -16,8 +16,8 @@ $(document).ready((function () {
$("#courseFilterGroup, #courseFilterFirstName, #courseFilterLastName").change(function () { $("#courseFilterGroup, #courseFilterFirstName, #courseFilterLastName").change(function () {
saveCheckboxState(); saveCheckboxState();
$("#courseUsersAddForm").submit(); $("#courseUsersAddForm").submit();
}); });
var table = $('#dataTables').DataTable({ var table = $('#dataTables').DataTable({
language: { language: {
url: "core/vendor/datatables/french.json" url: "core/vendor/datatables/french.json"
@ -27,7 +27,6 @@ $(document).ready((function () {
target: 3, target: 3,
orderable: false, orderable: false,
searchable: false, searchable: false,
} }
] ]
}); });
@ -46,6 +45,7 @@ $(document).ready((function () {
// Empty local storage after submit // Empty local storage after submit
$("#courseUsersAddSubmit").on("click", function () { $("#courseUsersAddSubmit").on("click", function () {
localStorage.setItem('checkboxState', JSON.stringify({})); localStorage.setItem('checkboxState', JSON.stringify({}));
}); });