Unverified Commit e5b75150 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: update broken contributor dropdown fields

parent 9017e30b
......@@ -20,7 +20,9 @@ return [
],
'form' => [
'user' => 'User',
'user_placeholder' => 'Select a user…',
'role' => 'Role',
'role_placeholder' => 'Select its role…',
'submit_add' => 'Add contributor',
'submit_edit' => 'Update role',
],
......
......@@ -19,8 +19,10 @@ return [
'role' => 'Rôle',
],
'form' => [
'user' => 'Identifiant',
'user' => 'Utilisateur',
'user_placeholder' => 'Sélectionnez un utilisateur…',
'role' => 'Rôle',
'role_placeholder' => 'Sélectionnez son rôle…',
'submit_add' => 'Ajouter le contributeur',
'submit_edit' => 'Mettre à jour le rôle',
],
......
......@@ -17,17 +17,19 @@
<?= csrf_field() ?>
<?= form_label(lang('Contributor.form.user'), 'user') ?>
<?= form_dropdown('user', $userOptions, old('user'), [
<?= form_dropdown('user', $userOptions, old('user', ''), [
'id' => 'user',
'class' => 'form-select mb-4',
'required' => 'required',
'placeholder' => lang('Contributor.form.user_placeholder')
]) ?>
<?= form_label(lang('Contributor.form.role'), 'role') ?>
<?= form_dropdown('role', $roleOptions, old('role'), [
<?= form_dropdown('role', $roleOptions, old('role', ''), [
'id' => 'role',
'class' => 'form-select mb-4',
'required' => 'required',
'placeholder' => lang('Contributor.form.role_placeholder')
]) ?>
<?= button(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment