Merge remote-tracking branch 'origin/master'
This commit is contained in:
		| @ -51,12 +51,12 @@ async function editChangeCurrReqTeacherApproval(state){ | ||||
|           <div> | ||||
|             <button @click="localwindowstate++"> {{ i18n("seeprofile") }} </button> | ||||
|           </div> | ||||
|           <div> | ||||
|           <div v-if="user.role === 'InscriptionService' || user.role==='Admin'"> | ||||
|             <button v-if="req.state === 'Pending'" @click="req.state='Accepted';uploadandrefreshChangeRequest('Accepted')">{{ i18n("request.accept") }}</button> | ||||
|             <button v-if="req.state === 'Pending'" @click="req.state='Refused';uploadandrefreshChangeRequest('Refused')" style="margin-left: 2%;">{{i18n("request.refuse")}}</button> | ||||
|           </div> | ||||
|           <div v-if="user.role === 'Teacher' || user.role === 'Admin'"> | ||||
|             <button v-if="req.teacherApprovalState === 'Pending'" @click="req.teacherApprovalState='Accepted';editChangeCurrReqTeacherApproval('Accepted')">{{i18n("acceptequiv")}}</button> | ||||
|             <button v-if="req.teacherApprovalState === 'Pending'" @click="req.teacherApprovalState='Accepted';editChangeCurrReqTeacherApproval('Accepted')" style="margin-right: 2%">{{i18n("acceptequiv")}}</button> | ||||
|             <button v-if="req.teacherApprovalState === 'Pending'" @click="req.teacherApprovalState='Refused';editChangeCurrReqTeacherApproval('Refused')">{{i18n("refuseequiv")}}</button> | ||||
|           </div> | ||||
|         </div> | ||||
|  | ||||
| @ -352,19 +352,19 @@ | ||||
|             <select v-model="changecurrdata.actualcursus" style="margin-right: 3%"> | ||||
|               <option v-for="item in getActualCurriculumList()" style="font-size:20px;" :value="item.curriculumId">Bac {{item.year}} {{item.option}}</option> | ||||
|             </select> | ||||
|             {{ i18n("newcurr") }} : | ||||
|             {{ i18n("newcursus") }} : | ||||
|             <select v-model="changecurrdata.newcursus"> | ||||
|               <option v-for="item in curricula"  :value="item.curriculumId">Bac {{item.year}} {{item.option}}</option> | ||||
|             </select> | ||||
|           </div> | ||||
|           <div style="height:40px;" v-if="reRegState === 2"> | ||||
|             {{ i18n("newcurr") }} : | ||||
|             {{ i18n("newcursus") }} : | ||||
|             <select v-model="changecurrdata.newcursus"> | ||||
|               <option v-for="item in curricula"  :value="item.curriculumId">Bac {{item.year}} {{item.option}}</option> | ||||
|             </select> | ||||
|           </div> | ||||
|           <div style="height:40px;" v-if="reRegState === 1"> | ||||
|             {{ i18n("newcurr") }} : | ||||
|             {{ i18n("newcursus") }} : | ||||
|             <select v-model="changecurrdata.newcursus" @change="getActualCurr(changecurrdata.newcursus);"> | ||||
|               <option v-for="item in getCurriculumsNextYear()" :value="item.curriculumId">Bac {{item.year}} {{item.option}}</option> | ||||
|             </select> | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
|  | ||||
| <script setup> | ||||
|   import { ref } from 'vue' | ||||
|   import {getDifferenceTime,lastDateOfMonth,formatDate,getFirstDay,sortByDate,weekFromList,sundayToTheEnd,getMarginTop,getHoursMinutes, monthFromList, durationCourse} from '../scheduleFunctions.js' | ||||
|   import {getDifferenceTime,lastDateOfMonth,formatDate,getFirstDay,sortByDate,weekFromList,sundayToTheEnd,getMarginTop,getHoursMinutes, monthFromList} from '../scheduleFunctions.js' | ||||
|   import {getAllSchedule} from "@/rest/scheduleRest.js"; | ||||
|   import {getOnesLessons, getOwnedLessons } from "@/rest/lessonSchedule.js" | ||||
|   import {isLogged, getSelf,getTeachers} from "@/rest/Users.js" | ||||
| @ -76,8 +76,6 @@ | ||||
|   } | ||||
|   const days = ["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]; | ||||
|   const months = ["january","february","march","april",'may',"june","july","august","september","october","november","december"] | ||||
|   const firstDayOfMonth = ref(getFirstDay(new Date())) | ||||
|   const monthDone = ref(false); | ||||
|   function getMonday(d) { | ||||
|     d = new Date(d); | ||||
|     d.setHours(0,0,0); | ||||
| @ -534,7 +532,7 @@ | ||||
|         <option v-for="item in allSchedules" :value='item'>{{item.curriculum.option}}-{{item.curriculum.year}}</option> | ||||
|       </select> | ||||
|       <button v-if="display=='Week'" @click="display='Month'">{{i18n("Week")}}</button> | ||||
|       <button v-if="display=='Month'" @click="display='Week'; value=1;">{{i18("Month")}}</button> | ||||
|       <button v-if="display=='Month'" @click="display='Week'; value=1;">{{i18n("Month")}}</button> | ||||
|       <button v-if="format == 'Grid'" @click="format ='List'">{{i18n("Grid")}}</button> | ||||
|       <button v-if="format == 'List'" @click ="format = 'Grid'">{{i18n("List")}}</button> | ||||
|       <button v-if="verifUser()" @click="jsonMod=false ;displayOwnSchedule();">{{i18n("OwnSchedule")}}</button> | ||||
| @ -577,6 +575,7 @@ | ||||
|         </div> | ||||
|         <div class="body"  style="background-color:rgb(50,50,50);">{{i18n("schedule.courses")}}</div> | ||||
|        <div class="body" style="background-color:#484848;"v-for="lesson in focusLessons"> | ||||
|           {{formatDate(lesson.lessonStart)}} | ||||
|           {{ getHoursMinutes(lesson.lessonStart)}}-{{getHoursMinutes(lesson.lessonEnd)}} | ||||
|           {{ lesson.local}} | ||||
|           {{i18n(lesson.lessonType.toString())}} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user