Add the date and identitycard feature to inscriptionRequest
This commit is contained in:
		| @ -26,14 +26,15 @@ | ||||
|   </div> | ||||
|   <div v-if="windowsState === 0"> | ||||
|     <div  v-for="item of requests"> | ||||
|     <div class="bodu" v-if="item.state === 'Pending'"> | ||||
|     <div class="bodu"> | ||||
|     <div class="container"> | ||||
|       <div class="id"><a>{{item.id}}</a></div> | ||||
|       <div class="surname"><a>{{item.lastName}}</a></div> | ||||
|       <div class="firstname"><a>{{item.firstName}}</a></div> | ||||
|       <div class="date">{{item.submissionDate.slice(0, 10)}}</div> | ||||
|       <div class="state">{{item.state}}</div> | ||||
|       <div class="surname">{{item.lastName}}</div> | ||||
|       <div class="firstname">{{item.firstName}}</div> | ||||
|       <div class="accept" v-if="item.state === 'Pending'"><button @click="windowsState=2;targetId=item.id;" style="background-color:rgb(0,105,50);">{{i18n("request.accept")}}</button></div> | ||||
|       <div class="refuse" v-if="item.state === 'Pending'"><button @click="upPage(item.id,'Refused')" style="background-color:rgb(105,0,0);">{{i18n("request.refuse")}}</button></div> | ||||
|       <div class="infos"><button style="background-color:rgb(105,05,105);" @click="targetId=item.id;windowsState=1;">{{i18n("request.moreInfos")}}</button></div> | ||||
|       <div class="accept"><button @click="windowsState=2;targetId=item.id;" style="background-color:rgb(0,105,50);">{{i18n("request.accept")}}</button></div> | ||||
|       <div class="refuse"><button @click="upPage(item.id,'Refused')" style="background-color:rgb(105,0,0);">{{i18n("request.refuse")}}</button></div> | ||||
|     </div> | ||||
|     </div> | ||||
|     </div> | ||||
| @ -51,11 +52,10 @@ | ||||
|     height:100px; | ||||
|     font-size:20px; | ||||
|     display:grid; | ||||
|     grid-template-columns:[firstCol-start]100px[firstCol-end secondCol-start]150px[secondCol-end thirdCol-start]200px[thirdCol-end fourthCol-start]150px[fourthCol-end]150px[fifthCol-end]150px[sixthCol-end]150px[endCol]; | ||||
|     grid-template-columns:[firstCol-start]150px[firstCol-end secondCol-start]200px[secondCol-end thirdCol-start]200px[thirdCol-end fourthCol-start]150px[fourthCol-end]150px[fifthCol-end]150px[sixthCol-end]150px[endCol]; | ||||
|     grid-template-areas: | ||||
|     "id type surname firstname infos accept refuse";  | ||||
|     "date state surname firstname accept refuse infos"; | ||||
|     column-gap:10px; | ||||
|      | ||||
|   } | ||||
|    | ||||
|   .infos { | ||||
| @ -77,8 +77,14 @@ | ||||
|     grid-area:titles; | ||||
|     background-color:rgb(215,215,215); | ||||
|   } | ||||
|   .id{ | ||||
|     grid-area:id; | ||||
|   .date{ | ||||
|     grid-area:date; | ||||
|     margin-left:40px; | ||||
|     align-self:center; | ||||
|   } | ||||
|  | ||||
|   .state{ | ||||
|     grid-area:state; | ||||
|     margin-left:40px; | ||||
|     align-self:center; | ||||
|   } | ||||
|  | ||||
| @ -115,7 +115,7 @@ | ||||
|                 <a>{{i18n("login.guest.alregister")}}</a> | ||||
|               </div> | ||||
|             </div> | ||||
|             <div v-else> | ||||
|             <div v-if="page === 1"> | ||||
|               <div class="inputBox"> | ||||
|                 <p>{{i18n("login.guest.email")}}</p> | ||||
|                 <input type="mail" v-model="outputs.email"> | ||||
| @ -136,12 +136,11 @@ | ||||
|                 <p>{{i18n("Curriculum").toUpperCase()}}</p>  | ||||
|                   <select v-model="outputs.curriculum"> | ||||
|                     <option v-for="item in curricula">{{item.curriculumId}}</option> | ||||
|                      | ||||
|                   </select> | ||||
|               </div> | ||||
|               <div style="align-self:center;" class="inputBox"> | ||||
|                 <button style="margin-top:25px;" @click="register(outputs.firstname, outputs.surname, outputs.birthday, outputs.password, outputs.email, outputs.address, outputs.country, outputs.curriculum, ppData);"> | ||||
|                   {{i18n("login.guest.submit")}} | ||||
|                 <button style="margin-top:25px;" @click="page++"> | ||||
|                   {{i18n("login.guest.nextpage")}} | ||||
|                 </button> | ||||
|               </div> | ||||
|               <div  class="switchpage"> | ||||
| @ -151,6 +150,12 @@ | ||||
|                 <a>{{i18n("login.guest.alregister")}}</a> | ||||
|               </div> | ||||
|             </div> | ||||
|             <div v-if="page === 2"> | ||||
|               <form novalidate enctype="multipart/form-data" class="inputBox"> | ||||
|                 Carte d'identité : | ||||
|  | ||||
|               </form> | ||||
|             </div> | ||||
|           </form> | ||||
|          </div> | ||||
|         </div> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user