Skip to content
Snippets Groups Projects
Commit 9beefd6b authored by Robin Mounié's avatar Robin Mounié
Browse files

réparationInterfaceSetWeek

parent 5ddc4dc2
Branches
Tags
No related merge requests found
...@@ -116,7 +116,7 @@ $string['setweeks_save_warning_title'] = "Are you sure you want to save the chan ...@@ -116,7 +116,7 @@ $string['setweeks_save_warning_title'] = "Are you sure you want to save the chan
$string['setweeks_save_warning_content'] = "If you change the configuration of weeks where the course has already started, data may be lost..."; $string['setweeks_save_warning_content'] = "If you change the configuration of weeks where the course has already started, data may be lost...";
$string['setweeks_confirm_ok'] = "Save"; $string['setweeks_confirm_ok'] = "Save";
$string['setweeks_confirm_cancel'] = "Cancel"; $string['setweeks_confirm_cancel'] = "Cancel";
$string['setweeks_error_empty_week'] = "You cannot save changes with an empty week. Please delete it and try again."; $string['setweeks_error_empty_week'] = "You cannot save changes with an week without content. Please delete it and try again.";
$string['setweeks_new_group_title'] = "New instance of configuration"; $string['setweeks_new_group_title'] = "New instance of configuration";
$string['setweeks_new_group_text'] = "We have detected that your course is finished, if you wish to set up the weeks to work with new students you need to activate the button below. This will separate the data of current students from previous courses, avoiding mixing them up. "; $string['setweeks_new_group_text'] = "We have detected that your course is finished, if you wish to set up the weeks to work with new students you need to activate the button below. This will separate the data of current students from previous courses, avoiding mixing them up. ";
$string['setweeks_new_group_button_label'] = "Save the configuration as a new instance"; $string['setweeks_new_group_button_label'] = "Save the configuration as a new instance";
......
...@@ -783,7 +783,7 @@ $string['setweeks_save_warning_title'] = "Êtes-vous sûr de vouloir sauvegarder ...@@ -783,7 +783,7 @@ $string['setweeks_save_warning_title'] = "Êtes-vous sûr de vouloir sauvegarder
$string['setweeks_save_warning_content'] = "Si vous modifiez la configuration des semaines alors que le cours a déjà commencé, il est possible que des données soient perdues..."; $string['setweeks_save_warning_content'] = "Si vous modifiez la configuration des semaines alors que le cours a déjà commencé, il est possible que des données soient perdues...";
$string['setweeks_confirm_ok'] = "Sauvegarder"; $string['setweeks_confirm_ok'] = "Sauvegarder";
$string['setweeks_confirm_cancel'] = "Annuler"; $string['setweeks_confirm_cancel'] = "Annuler";
$string['setweeks_error_empty_week'] = "Impossible de sauvegarder les changements avec une semaine vide. Veuillez l'effacer et réessayer."; $string['setweeks_error_empty_week'] = "Impossible de sauvegarder les changements avec une semaine sans sections. Veuillez l'effacer et réessayer.";
$string['setweeks_new_group_title'] = "Nouvelle instance de configuration"; $string['setweeks_new_group_title'] = "Nouvelle instance de configuration";
$string['setweeks_new_group_text'] = "Nous avons détecté que votre cours est terminé, si vous souhaitez configurer les semaines pour travailler avec de nouveaux étudiants, vous devez activer le bouton ci-dessous. Cela vous permettra de séparer les données des étudiants actuels de celles des cours précédents, en évitant de les mélanger"; $string['setweeks_new_group_text'] = "Nous avons détecté que votre cours est terminé, si vous souhaitez configurer les semaines pour travailler avec de nouveaux étudiants, vous devez activer le bouton ci-dessous. Cela vous permettra de séparer les données des étudiants actuels de celles des cours précédents, en évitant de les mélanger";
$string['setweeks_new_group_button_label'] = "Enregistrer configuration comme nouvelle instance"; $string['setweeks_new_group_button_label'] = "Enregistrer configuration comme nouvelle instance";
......
...@@ -80,6 +80,7 @@ $content = [ ...@@ -80,6 +80,7 @@ $content = [
"helplabel" => get_string("helplabel","local_notemyprogress"), "helplabel" => get_string("helplabel","local_notemyprogress"),
"exitbutton" => get_string("exitbutton","local_notemyprogress"), "exitbutton" => get_string("exitbutton","local_notemyprogress"),
"title_conditions" => get_string("title_conditions","local_notemyprogress"), "title_conditions" => get_string("title_conditions","local_notemyprogress"),
"nothing"=>"something",
], ],
'sections' => $configweeks->get_sections_without_week(), 'sections' => $configweeks->get_sections_without_week(),
'userid' => $USER->id, 'userid' => $USER->id,
......
...@@ -25,21 +25,35 @@ ...@@ -25,21 +25,35 @@
</v-layout> </v-layout>
<v-layout column justify-center> <v-layout column justify-center>
<span v-text="strings.title_conditions" class="notemyprogress-sub-title text-center"></span> <v-row class="justify-content-center">
<ul class="ul-setting d-flex justify-center"> <v-col cols="12" md="4" class="d-flex">
<li class="li-setting"> <v-card class="flex d-flex pl-3">
<span :class="['setting-icon',{'setting-valid' : settings.has_students}]"></span> <v-icon v-if="settings.has_students" color="green" v-text="'mdi-check-circle'"></v-icon>
<span v-text="strings.requirements_has_users"></span> <v-icon v-else color="red" v-text="'mdi-information'"></v-icon>
</li> <v-card-text class="text-left" style="align-self: center;">
<li class="li-setting mr-2 ml-2"> <p class="body-2 mb-0" v-text="strings.requirements_has_users"></p>
<span :class="['setting-icon',{'setting-valid' : settings.course_start}]"></span> </v-card-text>
<span v-text="strings.requirements_course_start"></span> </v-card>
</li> </v-col>
<li class="li-setting"> <v-col cols="12" md="4" class="d-flex">
<span :class="['setting-icon',{'setting-valid' : settings.weeks}]"></span> <v-card class="flex d-flex pl-3">
<span v-text="strings.requirements_has_sections"></span> <v-icon v-if="settings.course_start" color="green" v-text="'mdi-check-circle'"></v-icon>
</li> <v-icon v-else color="red" v-text="'mdi-information'"></v-icon>
</ul> <v-card-text class="text-left" style="align-self: center;">
<p class="body-2 mb-0" v-text="strings.requirements_course_start"></p>
</v-card-text>
</v-card>
</v-col>
<v-col cols="12" md="4" class="d-flex">
<v-card class="flex d-flex pl-3">
<v-icon v-if="settings.weeks" color="green" v-text="'mdi-check-circle'"></v-icon>
<v-icon v-else color="red" v-text="'mdi-information'"></v-icon>
<v-card-text class="text-left" style="align-self: center;">
<p class="body-2 mb-0" v-text="strings.requirements_has_sections"></p>
</v-card-text>
</v-card>
</v-col>
</v-row>
</v-layout> </v-layout>
<v-divider></v-divider> <v-divider></v-divider>
...@@ -73,16 +87,20 @@ ...@@ -73,16 +87,20 @@
<v-layout mb-3 mt-3> <v-layout mb-3 mt-3>
<v-flex row justify-space-around align-center> <v-flex row justify-space-around align-center>
<strong v-text="strings.start"></strong>
<datepicker <strong v-text=" strings.start"></strong>
v-if="!week.removable" <datepicker
v-model="weeks_started_at" class="blue lighten-4"
:use-utc="false" v-if="!week.removable"
:disabled-dates="disabled_dates" v-model="weeks_started_at"
:format="customFormatter" :use-utc="false"
:monday-first="true"> :disabled-dates="disabled_dates"
</datepicker> :format="customFormatter"
:monday-first="true">
</datepicker>
<span v-else v-text="week.weekstart"></span> <span v-else v-text="week.weekstart"></span>
<strong v-text="nothing"></strong>
</v-flex> </v-flex>
<v-flex row justify-space-around align-center> <v-flex row justify-space-around align-center>
...@@ -93,7 +111,9 @@ ...@@ -93,7 +111,9 @@
<v-layout justify-space-between align-center class="hours-expected-selector"> <v-layout justify-space-between align-center class="hours-expected-selector">
<span v-text="strings.time_dedication" class="pr-5"></span> <span v-text="strings.time_dedication" class="pr-5"></span>
<v-text-field type="number" min="0" max="99" outlined v-model="raw_weeks[index].hours_dedications"></v-text-field> <v-row>
<v-text-field type="number" min="0" max="99" outlined v-model="raw_weeks[index].hours_dedications"></v-text-field>
</v-row>
</v-layout> </v-layout>
</template> </template>
</v-flex> </v-flex>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment