Compare commits
	
		
			3 Commits
		
	
	
		
			59b82abf71
			...
			672fcd099f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 672fcd099f | |||
| 3198a7ade0 | |||
| 5516f75346 | 
| @ -13,10 +13,7 @@ import ovh.herisson.Clyde.Services.AuthenticatorService; | ||||
| import ovh.herisson.Clyde.Services.TokenService; | ||||
| import ovh.herisson.Clyde.Services.UserService; | ||||
| import ovh.herisson.Clyde.Tables.*; | ||||
| import ovh.herisson.Clyde.Tables.Inscription.ExemptionsRequest; | ||||
| import ovh.herisson.Clyde.Tables.Inscription.Minerval; | ||||
| import ovh.herisson.Clyde.Tables.Inscription.ScholarshipRequest; | ||||
| import ovh.herisson.Clyde.Tables.Inscription.UnregisterRequest; | ||||
| import ovh.herisson.Clyde.Tables.Inscription.*; | ||||
|  | ||||
| import java.util.ArrayList; | ||||
| import java.util.Calendar; | ||||
| @ -328,7 +325,7 @@ public class RequestsController { | ||||
|             return new ResponseEntity<>(HttpStatus.OK); | ||||
|         } | ||||
|  | ||||
|         toEdit.setState(newteacherstate); | ||||
|         toEdit.setTeacherApprovalState(newteacherstate); | ||||
|         changeCurriculumRequestRepository.save(toEdit); | ||||
|  | ||||
|         if (newteacherstate == RequestState.Accepted && toEdit.getState() == RequestState.Accepted){ | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| package ovh.herisson.Clyde.Repositories.Inscription; | ||||
|  | ||||
| import org.springframework.data.repository.CrudRepository; | ||||
| import ovh.herisson.Clyde.Tables.ChangeCurriculumRequest; | ||||
| import ovh.herisson.Clyde.Tables.Inscription.ChangeCurriculumRequest; | ||||
|  | ||||
| public interface ChangeCurriculumRequestRepository extends CrudRepository<ChangeCurriculumRequest, Long> { | ||||
|     ChangeCurriculumRequest findById(long id); | ||||
|  | ||||
| @ -1,6 +1,9 @@ | ||||
| package ovh.herisson.Clyde.Tables; | ||||
| package ovh.herisson.Clyde.Tables.Inscription; | ||||
| 
 | ||||
| import jakarta.persistence.*; | ||||
| import ovh.herisson.Clyde.Tables.Curriculum; | ||||
| import ovh.herisson.Clyde.Tables.RequestState; | ||||
| import ovh.herisson.Clyde.Tables.User; | ||||
| 
 | ||||
| import java.util.Date; | ||||
| 
 | ||||
| @ -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> | ||||
|  | ||||
| @ -343,19 +343,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> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user