Skip to content
Snippets Groups Projects
Commit e1f1dfa4 authored by nicrausaz's avatar nicrausaz
Browse files

Note dans tableau

parent dcc3aae0
No related branches found
No related tags found
No related merge requests found
......@@ -40,17 +40,18 @@ class ApplicantsController extends Controller
->join('position', 'applicant.fk_position', '=', 'position.position_id')
->join('job', 'position.fk_job', '=', 'job.job_id')
->join('location', 'position.fk_location', '=', 'location.location_id')
->join('marker', 'applicant.applicant_id', '=', 'marker.fk_applicant_id')
->where('marker_owner_sciper', $this->user_sciper)
->where('fk_status', 'Valide')
->get();
}
foreach ($job_applicants as $key => $applicant) {
if (in_array($applicant->job_short_value, $this->user_permissions)) {
array_push($applicants, $applicant);
}
}
return $applicants;
return $applicants;
}
public function getJobApplicants($job)
......
......@@ -74,7 +74,7 @@ class AuthController extends Controller
public function tequilareturn()
{
return redirect()->to("https://canap-gest-dev.local:8080/#/?key=" . $_GET["key"]);
// return redirect()->to("https://canap-gest:8443/?key=" . $_GET["key"]);
// return redirect()->to("https://canap-gest:8443/#/?key=" . $_GET["key"]);
}
public function logout()
......
......@@ -17,8 +17,9 @@ export function logout(context, fullLogout) {
localStorage.removeItem('stored_token')
if (fullLogout) {
window.location = 'https://tequila.epfl.ch/logout'
} else {
location.reload()
}
// location.reload()
})
}
......
......@@ -88,10 +88,15 @@
</td>
<td>{{ props.item.applicant_scolarity_end }}</td>
<td>{{ getFormatedDate(props.item.applicant_application_date) }}</td>
<td v-if="!$store.getters['moduleUser/userIsResponsible']">
<span>
{{props.item.marker_value}}
<v-icon inline small>star_rating</v-icon>
</span>
</td>
<td>
<v-select
:items="$store.state.moduleApplications.available_status"
label="Statut"
item-text="status_value"
item-value="status_value"
v-model="props.item.fk_status"
......@@ -139,6 +144,9 @@ export default {
},
created() {
this.loadApplications()
if (!this.$store.getters['moduleUser/userIsResponsible']) {
this.headers.splice(this.headers.length-1, 0, { text: 'Note', value: 'applicant_marker' })
}
},
computed: {
hasSelected() { return this.selected.length > 0 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment