From ca933f5bf1307b8b2ffaa375c1f98c009fda16d9 Mon Sep 17 00:00:00 2001 From: Adil Mohak Date: Sun, 29 Sep 2024 16:28:19 +0300 Subject: [PATCH] Move lang select form to the side bar --- ...ry_es_newsandevents_summary_fr_and_more.py | 33 ++++++ ...rse_summary_fr_course_title_es_and_more.py | 83 ++++++++++++++ ...ice_choice_es_choice_choice_fr_and_more.py | 105 ++++++++++++++++++ templates/aside.html | 24 ++++ templates/navbar.html | 14 --- 5 files changed, 245 insertions(+), 14 deletions(-) create mode 100644 core/migrations/0003_newsandevents_summary_es_newsandevents_summary_fr_and_more.py create mode 100644 course/migrations/0003_course_summary_es_course_summary_fr_course_title_es_and_more.py create mode 100644 quiz/migrations/0003_choice_choice_es_choice_choice_fr_and_more.py diff --git a/core/migrations/0003_newsandevents_summary_es_newsandevents_summary_fr_and_more.py b/core/migrations/0003_newsandevents_summary_es_newsandevents_summary_fr_and_more.py new file mode 100644 index 0000000..357c1a1 --- /dev/null +++ b/core/migrations/0003_newsandevents_summary_es_newsandevents_summary_fr_and_more.py @@ -0,0 +1,33 @@ +# Generated by Django 4.2.16 on 2024-09-29 13:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("core", "0002_newsandevents_summary_en_newsandevents_summary_ru_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="newsandevents", + name="summary_es", + field=models.TextField(blank=True, max_length=200, null=True), + ), + migrations.AddField( + model_name="newsandevents", + name="summary_fr", + field=models.TextField(blank=True, max_length=200, null=True), + ), + migrations.AddField( + model_name="newsandevents", + name="title_es", + field=models.CharField(max_length=200, null=True), + ), + migrations.AddField( + model_name="newsandevents", + name="title_fr", + field=models.CharField(max_length=200, null=True), + ), + ] diff --git a/course/migrations/0003_course_summary_es_course_summary_fr_course_title_es_and_more.py b/course/migrations/0003_course_summary_es_course_summary_fr_course_title_es_and_more.py new file mode 100644 index 0000000..f6cba62 --- /dev/null +++ b/course/migrations/0003_course_summary_es_course_summary_fr_course_title_es_and_more.py @@ -0,0 +1,83 @@ +# Generated by Django 4.2.16 on 2024-09-29 13:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("course", "0002_course_summary_en_course_summary_ru_course_title_en_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="course", + name="summary_es", + field=models.TextField(blank=True, max_length=200, null=True), + ), + migrations.AddField( + model_name="course", + name="summary_fr", + field=models.TextField(blank=True, max_length=200, null=True), + ), + migrations.AddField( + model_name="course", + name="title_es", + field=models.CharField(max_length=200, null=True), + ), + migrations.AddField( + model_name="course", + name="title_fr", + field=models.CharField(max_length=200, null=True), + ), + migrations.AddField( + model_name="program", + name="summary_es", + field=models.TextField(blank=True, null=True), + ), + migrations.AddField( + model_name="program", + name="summary_fr", + field=models.TextField(blank=True, null=True), + ), + migrations.AddField( + model_name="program", + name="title_es", + field=models.CharField(max_length=150, null=True, unique=True), + ), + migrations.AddField( + model_name="program", + name="title_fr", + field=models.CharField(max_length=150, null=True, unique=True), + ), + migrations.AddField( + model_name="upload", + name="title_es", + field=models.CharField(max_length=100, null=True), + ), + migrations.AddField( + model_name="upload", + name="title_fr", + field=models.CharField(max_length=100, null=True), + ), + migrations.AddField( + model_name="uploadvideo", + name="summary_es", + field=models.TextField(blank=True, null=True), + ), + migrations.AddField( + model_name="uploadvideo", + name="summary_fr", + field=models.TextField(blank=True, null=True), + ), + migrations.AddField( + model_name="uploadvideo", + name="title_es", + field=models.CharField(max_length=100, null=True), + ), + migrations.AddField( + model_name="uploadvideo", + name="title_fr", + field=models.CharField(max_length=100, null=True), + ), + ] diff --git a/quiz/migrations/0003_choice_choice_es_choice_choice_fr_and_more.py b/quiz/migrations/0003_choice_choice_es_choice_choice_fr_and_more.py new file mode 100644 index 0000000..8cb5572 --- /dev/null +++ b/quiz/migrations/0003_choice_choice_es_choice_choice_fr_and_more.py @@ -0,0 +1,105 @@ +# Generated by Django 4.2.16 on 2024-09-29 13:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("quiz", "0002_choice_choice_en_choice_choice_ru_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="choice", + name="choice_es", + field=models.CharField( + help_text="Enter the choice text that you want displayed", + max_length=1000, + null=True, + verbose_name="Content", + ), + ), + migrations.AddField( + model_name="choice", + name="choice_fr", + field=models.CharField( + help_text="Enter the choice text that you want displayed", + max_length=1000, + null=True, + verbose_name="Content", + ), + ), + migrations.AddField( + model_name="question", + name="content_es", + field=models.CharField( + help_text="Enter the question text that you want displayed", + max_length=1000, + null=True, + verbose_name="Question", + ), + ), + migrations.AddField( + model_name="question", + name="content_fr", + field=models.CharField( + help_text="Enter the question text that you want displayed", + max_length=1000, + null=True, + verbose_name="Question", + ), + ), + migrations.AddField( + model_name="question", + name="explanation_es", + field=models.TextField( + blank=True, + help_text="Explanation to be shown after the question has been answered.", + max_length=2000, + null=True, + verbose_name="Explanation", + ), + ), + migrations.AddField( + model_name="question", + name="explanation_fr", + field=models.TextField( + blank=True, + help_text="Explanation to be shown after the question has been answered.", + max_length=2000, + null=True, + verbose_name="Explanation", + ), + ), + migrations.AddField( + model_name="quiz", + name="description_es", + field=models.TextField( + blank=True, + help_text="A detailed description of the quiz", + null=True, + verbose_name="Description", + ), + ), + migrations.AddField( + model_name="quiz", + name="description_fr", + field=models.TextField( + blank=True, + help_text="A detailed description of the quiz", + null=True, + verbose_name="Description", + ), + ), + migrations.AddField( + model_name="quiz", + name="title_es", + field=models.CharField(max_length=60, null=True, verbose_name="Title"), + ), + migrations.AddField( + model_name="quiz", + name="title_fr", + field=models.CharField(max_length=60, null=True, verbose_name="Title"), + ), + ] diff --git a/templates/aside.html b/templates/aside.html index e72bf62..12ba2bb 100644 --- a/templates/aside.html +++ b/templates/aside.html @@ -126,6 +126,21 @@ + +{% block js %} + +{% endblock js %} \ No newline at end of file diff --git a/templates/navbar.html b/templates/navbar.html index f3b5057..dece5ec 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -48,20 +48,6 @@ -
{% csrf_token %} - - - -
\ No newline at end of file