fccn / nau-themes

NAU Themes for OpenEdx
GNU General Public License v3.0
0 stars 4 forks source link

Ttg/featured modal tos #1

Closed tatianatorog closed 3 years ago

tatianatorog commented 3 years ago

Modal to accept new tos

In this PR a modal component was created to accept new TOS. The logic of this modal was added to the footer template. This component is displayed in the control panel and cannot continue until new TOS are accepted. It is saved in a new variable in the user preferences, so it is not necessary to accept it when the user logs in again.The modal allows old users to know the updated terms and conditions of the platform.

Modal text can be changed from site configuration.

"MODAL_TOS":{ "modal_force_display":true, "modal_tos_name_preference":"update_tos_2021_06_01", "modal_tos_text":"

We have updated our terms of service. We recommend that you review them carefully. If you continue to use the main Nau site, you do so under the new terms.

" } In case there is a new update, the name of the modal preference should be changed and it should go like the example. The only thing that should be changed is the date

"modal_tos_name_preference":"update_tos_2021_07_25",

@felipemontoya, @jignaciopm, @MoisesGSalas, @andrey-canon, @mariajgrimaldi, @magajh

modal-tos

mariajgrimaldi commented 3 years ago

LGTM, but the django.po file has conflicts with master. You could do git rebase master and fix the conflicts using your editor

tatianatorog commented 3 years ago

Featured modal tos , the issue with the dates were fixed