refactor: rename Module to ECUE, update routes, UI, and API messages
refactor: rename Module to ECUE in API, UI, and error messages
This commit is contained in:
@@ -106,7 +106,7 @@ export default function EditUser({ userId }: Props) {
|
||||
|
||||
async function addEnseignement() {
|
||||
if (!addModule || !addPromo) {
|
||||
setAddError("Module et Promo sont requis");
|
||||
setAddError("ECUE et Promo sont requis");
|
||||
return;
|
||||
}
|
||||
setAdding(true);
|
||||
@@ -276,7 +276,7 @@ export default function EditUser({ userId }: Props) {
|
||||
class="col-dim"
|
||||
style="font-size: 0.75rem; margin: 0 0 0.75rem"
|
||||
>
|
||||
Modules enseignes par cet utilisateur
|
||||
ECUEs enseignes par cet utilisateur
|
||||
</p>
|
||||
|
||||
{enseignements.length > 0
|
||||
@@ -285,7 +285,7 @@ export default function EditUser({ userId }: Props) {
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Module</th>
|
||||
<th>ECUE</th>
|
||||
<th>Promo</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
@@ -360,7 +360,7 @@ export default function EditUser({ userId }: Props) {
|
||||
setAddModule((e.target as HTMLSelectElement).value)}
|
||||
style="min-width: 12rem"
|
||||
>
|
||||
<option value="">Module</option>
|
||||
<option value="">ECUE</option>
|
||||
{modules.map((m) => (
|
||||
<option key={m.id} value={m.id}>
|
||||
{m.id} -- {m.nom}
|
||||
|
||||
Reference in New Issue
Block a user