Adding all translations
This commit is contained in:
		| @ -59,7 +59,7 @@ | ||||
|             <a class="icon" > | ||||
|                 <div  class="fa-solid fa-gear"  style="margin-top: 7px; margin-bottom: 3px;"></div> | ||||
|                 <div v-if="active" class="dropdown"> | ||||
|                   <div class="dropdown-content">Langage</div> | ||||
|                   <div class="dropdown-content">{{i18n("app.language")}}</div> | ||||
|                   <ul style="list-style-type:none;"> | ||||
|                     <li style=" margin-bottom:10px;margin-right:20px;float:left; font-size:10px; color:black;"> | ||||
|                       <button @:click="setLang('en');" href="#home">EN</button> | ||||
| @ -69,7 +69,7 @@ | ||||
|                   </ul> | ||||
|                   <div style='align-items:center;'> | ||||
|                   <a style="cursor:pointer;font-size:20px;" href="#/profil" class="dropdown-content"> | ||||
|                     Manage Profile | ||||
|                     {{i18n("app.manage.profile")}} | ||||
|                   </a> | ||||
|                   </div> | ||||
|  | ||||
| @ -104,7 +104,7 @@ | ||||
|  | ||||
|         <li><a href="#/manage-courses"> | ||||
|             <div class="fa-solid fa-book" style="align-self:center;font-size: 40px;overflow:none;"></div> | ||||
|             <div class="text">Manage courses</div></a></li> | ||||
|             <div class="text">{{i18n("app.manage.courses")}}</div></a></li> | ||||
|     </ul> | ||||
|  | ||||
|     </div> | ||||
|  | ||||
| @ -100,7 +100,7 @@ | ||||
|                 <input type="text" v-model="country"> | ||||
|               </div> | ||||
|               <div class="inputBox"> | ||||
|                 <p>CURSUS</p>  | ||||
|                 <p>{{i18n("curriculum").toUpperCase()}}</p>  | ||||
|                   <select v-model="cursus"> | ||||
|                     <option value="Chemistry">Chemistry</option> | ||||
|                     <option value="Psycho">Psychology</option> | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| <script setup> | ||||
|  | ||||
|   import i18n from "@/i18n.js" | ||||
|   import {ref} from 'vue' | ||||
| const cursus=[ | ||||
|   { | ||||
| @ -95,69 +95,71 @@ const cursus=[ | ||||
|   <div class="body"> | ||||
|     <div v-if="!deleteMod && !createMod" class="listTitle buttonGrid"> | ||||
|       <button class="create" @click="createMod = true"> | ||||
|         Create Course | ||||
|         {{i18n("courses.create")}} | ||||
|       </button> | ||||
|       <button class="delete" @click="deleteMod=true" > | ||||
|         Delete Course | ||||
|         {{i18n("courses.delete")}} | ||||
|       </button> | ||||
|     </div> | ||||
|     <div v-if="createMod"> | ||||
|       <form class="listElement"> | ||||
|         <div style="margin-bottom:20px;"> | ||||
|          Name:  | ||||
|          {{i18n("name")}} :  | ||||
|         <input v-model="toAdd.name"> | ||||
|         </div> | ||||
|         <div style="margin-bottom:20px;"> | ||||
|           Teacher:  | ||||
|           {{i18n("teacher")}} :  | ||||
|          <select style="max-width:200px;" class="teacher" v-model="toAdd.teacher"> | ||||
|           <option v-for="item in profList">{{item}}</option> | ||||
|         </select> | ||||
|         </div> | ||||
|         <div style="margin-bottom:20px;"> | ||||
|           Credits:  | ||||
|           {{i18n("credits")}} :  | ||||
|         <input v-model="toAdd.credits"> | ||||
|         </div> | ||||
|         <div style="margin-bottom:20px;"> | ||||
|           Faculty:  | ||||
|           {{i18n("faculty")}} :  | ||||
|         <input v-model="toAdd.faculty"> | ||||
|         </div> | ||||
|       <button class="create" @click="createMod=!createMod; addToCourse();"> Confirm </button> | ||||
|       <button style="float:right;" @click="createMod=!createMod"> Back</button> | ||||
|       <button class="create" @click="createMod=!createMod; addToCourse();"> {{i18n("courses.confirm")}} </button> | ||||
|       <button style="float:right;" @click="createMod=!createMod">{{i18n("courses.back")}}</button> | ||||
|       </form> | ||||
|     </div> | ||||
|     <div v-if="deleteMod"> | ||||
|       <form class="listElement"> | ||||
|         <div style="margin-bottom:20px;"> | ||||
|           Course to delete:  | ||||
|           {{i18n("courses.toDelete")}} : | ||||
|          <select style="max-width:200px;" class="teacher" v-model="toRemove"> | ||||
|           <option v-for="item in cursus">{{item.name}}</option> | ||||
|            | ||||
|         </select> | ||||
|         </div> | ||||
|         <div style="margin-bottom:20px;"> | ||||
|           Password:  | ||||
|           {{i18n("login.password")}}:  | ||||
|         <input > | ||||
|         </div> | ||||
|         <div style="margin-bottom:20px;"> | ||||
|           Confirm Password:  | ||||
|           {{i18n("login.cPassword")}} :  | ||||
|         <input> | ||||
|         </div> | ||||
|       <button class="delete" @click="deleteMod=!deleteMod;removeCourse();"> Delete </button> | ||||
|       <button style="float:right;" @click="deleteMod=!deleteMod"> Back</button> | ||||
|         <button class="delete" @click="deleteMod=!deleteMod;removeCourse();"> {{i18n("courses.delete")}} </button> | ||||
|         <button style="float:right;" @click="deleteMod=!deleteMod"> {{i18n("courses.back")}}</button> | ||||
|       </form> | ||||
|     </div> | ||||
|  | ||||
|     <div v-if="!createMod && !deleteMod" v-for="item in cursus" :key="item.name"> | ||||
|       <div style ="padding:15px 15px 15px 15px;"> | ||||
|       <button  v-if="editElementID !== item.name"  @click="editElementID = item.name"> Modify</button> | ||||
|       <button v-else @click="editElementID= ''"> Confirm </button> | ||||
|       <button  v-if="editElementID !== item.name"  @click="editElementID = item.name"> | ||||
|         {{i18n("courses.modify")}} | ||||
|       </button> | ||||
|       <button v-else @click="editElementID= ''"> {{i18n("courses.confirm")}} </button> | ||||
|       </div> | ||||
|       <div  class="listElement" >  | ||||
|       <div class="containerElement" v-if="editElementID !== item.name" > | ||||
|  | ||||
|         <div class="name"> {{item.name}} </div> | ||||
|         <div class="teacher">{{item.teacher}}</div>  | ||||
|         <div class="credits">Credits:{{item.credits}}</div>   | ||||
|         <div class="credits">{{i18n("credits")}}:{{item.credits}}</div>   | ||||
|       </div> | ||||
|       <div class="containerElement"v-else> | ||||
|         <input style="max-width:200px;" class="name" v-model="item.name"> | ||||
|  | ||||
| @ -1,6 +1,7 @@ | ||||
| <script setup> | ||||
|   import {reactive, ref} from 'vue' | ||||
|   import {getUser} from '../rest/Users.js' | ||||
|   import i18n from "@/i18n.js" | ||||
|  /*  | ||||
|   const user = getUser();  | ||||
| */ | ||||
| @ -84,23 +85,23 @@ const toModify = Object.assign({}, user); | ||||
|             E-mail: {{user.email}}       | ||||
|           </div> | ||||
|           <div v-if="user.role==='student'"> | ||||
|             {{user.option}} {{user.role.toUpperCase()}}  | ||||
|             {{user.option}} {{i18n(user.role).toUpperCase()}}  | ||||
|           </div> | ||||
|           <div v-else> | ||||
|             Faculty: {{user.faculty}}  | ||||
|             Role: {{user.role}} | ||||
|             {{i18n("faculty")}}: {{user.faculty}}  | ||||
|             Role:  {{i18n(user.role).toUpperCase()}}  | ||||
|           </div> | ||||
|           <div> | ||||
|             <button @click="modif=!modif"> Modifier données personnelles </button> | ||||
|             <button @click="modif=!modif"> {{i18n("profile.modify.data")}} </button> | ||||
|           </div> | ||||
|           <div v-if="(user.role==='student')"> | ||||
|             <button>Réinscription</button> | ||||
|             <button style="float:right;background-color:rgb(150,0,0);">Désinscription</button> | ||||
|             <button>{{i18n("profile.reRegister")}}</button> | ||||
|             <button style="float:right;background-color:rgb(150,0,0);">{{i18n("profile.unRegister")}}</button> | ||||
|           </div> | ||||
|         </div> | ||||
|         <div v-else class="infosContainer"> | ||||
|           <div> | ||||
|             Profil Picture | ||||
|             {{i18n("profile.picture")}}: | ||||
|             <input type="file"> | ||||
|           </div> | ||||
|           <div> | ||||
| @ -108,19 +109,19 @@ const toModify = Object.assign({}, user); | ||||
|             <input type="mail" v-model="toModify.email" /> | ||||
|           </div> | ||||
|           <div> | ||||
|             Address: | ||||
|             {{i18n("profile.address")}}: | ||||
|             <input type="text" v-model="toModify.address"> | ||||
|           </div> | ||||
|           <div> | ||||
|             Password | ||||
|             {{i18n("login.password")}}: | ||||
|             <input type="password" v-model="toModify.password"> | ||||
|           </div> | ||||
|           <div> | ||||
|             Confirm Password | ||||
|             {{i18n("login.cPassword")}}: | ||||
|             <input type="password" id="confirm"> | ||||
|           </div> | ||||
|           <div> | ||||
|             <button @click=" modif=!modif">Confirm</button> | ||||
|             <button @click=" modif=!modif">{{i18n("courses.confirm")}}</button> | ||||
|           </div> | ||||
|         </div> | ||||
|       </div> | ||||
| @ -128,7 +129,7 @@ const toModify = Object.assign({}, user); | ||||
|  | ||||
|         <div v-if="(user.role==='student')"> | ||||
|           <div class="listTitle"> | ||||
|            Liste des cours | ||||
|             {{i18n("profile.course.list")}} | ||||
|           </div> | ||||
|         <div  class="listElement " | ||||
|           v-for="item in user.cursus"> | ||||
| @ -145,7 +146,7 @@ const toModify = Object.assign({}, user); | ||||
|      | ||||
|       <div v-if="(user.role==='teacher')"> | ||||
|           <div class="listTitle"> | ||||
|            Liste des cours | ||||
|             {{i18n("profile.course.list")}} | ||||
|           </div> | ||||
|           <div class="listElement " v-for="item in user.coursesOwned"> | ||||
|           {{item.name}}        | ||||
|  | ||||
		Reference in New Issue
	
	Block a user