forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Upgrade regular signup form for nafath (#428)
* feat!: code progress * feat!: code progress * feat!: code progress * feat!: code progress account mfe related changes * enhancements!: code progress * enhancements!: code progress * finalizing the nafath flow code * feat: add term and conditions field --------- Co-authored-by: Muhammad Faraz Maqsood <[email protected]> Co-authored-by: Muhammad Faraz Maqsood <[email protected]>
- Loading branch information
1 parent
5b5aee3
commit daf18be
Showing
17 changed files
with
528 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
common/djangoapps/student/migrations/0045_auto_20231005_0906.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Generated by Django 3.2.20 on 2023-10-05 09:06 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('student', '0044_courseenrollmentcelebration_celebrate_weekly_goal'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='address_line', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='date_of_birth', | ||
field=models.DateField(blank=True, default=None, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='employment_status', | ||
field=models.CharField(blank=True, choices=[('PU', 'Public industry'), ('PR', 'Private industry'), ('JS', 'Job seeker'), ('ST', 'Student')], max_length=3, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='english_language_level', | ||
field=models.CharField(blank=True, choices=[('0', '0'), ('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'), ('5', '5'), ('6', '6'), ('7', '7'), ('8', '8'), ('9', '9')], max_length=2, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='job_title', | ||
field=models.CharField(blank=True, max_length=63, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='national_id', | ||
field=models.CharField(blank=True, max_length=63, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='region', | ||
field=models.CharField(blank=True, choices=[('RD', 'Riyadh'), ('ER', 'Eastern'), ('AI', 'Asir'), ('JA', 'Jazan'), ('MN', 'Medina'), ('AS', 'Al-Qassim'), ('TU', 'Tabuk'), ('HI', "Ha'il"), ('NA', 'Najran'), ('AW', 'Al-Jawf'), ('AA', 'Al-Bahah'), ('NB', 'Northern Borders')], max_length=3, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='work_experience_level', | ||
field=models.CharField(blank=True, choices=[('JL', 'Junior level (0-2) years'), ('ML', 'Middle level (3-4) years'), ('SL', 'Senior level (5-10) years'), ('EL', 'Expert (+ 10 years)')], max_length=3, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='level_of_education', | ||
field=models.CharField(blank=True, choices=[('MS', 'Middle School'), ('HS', 'High School'), ('DM', 'Diploma'), ('BS', 'Bachelor'), ('MR', 'Master'), ('PH', 'Ph.D.')], db_index=True, max_length=3, null=True), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
common/djangoapps/student/migrations/0046_alter_userprofile_english_language_level.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.20 on 2023-10-06 13:04 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('student', '0045_auto_20231005_0906'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='english_language_level', | ||
field=models.CharField(blank=True, choices=[('0', '0'), ('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'), ('5', '5'), ('6', '6'), ('7', '7'), ('8', '8'), ('9', '9'), ('10', '10')], max_length=2, null=True), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
common/djangoapps/student/migrations/0047_userprofile_terms_and_conditions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.21 on 2023-10-23 06:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('student', '0046_alter_userprofile_english_language_level'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='terms_and_conditions', | ||
field=models.BooleanField(default=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
{% comment %} | ||
As the developer of this package, don't place anything here if you can help it | ||
since this allows developers to have interoperability between your template | ||
structure and their own. | ||
|
||
Example: Developer melding the 2SoD pattern to fit inside with another pattern:: | ||
|
||
{% extends "base.html" %} | ||
{% load static %} | ||
|
||
<!-- Their site uses old school block layout --> | ||
{% block extra_js %} | ||
|
||
<!-- Your package using 2SoD block layout --> | ||
{% block javascript %} | ||
<script src="{% static 'js/ninja.js' %}" type="text/javascript"></script> | ||
{% endblock javascript %} | ||
|
||
{% endblock extra_js %} | ||
{% endcomment %} | ||
|
13 changes: 13 additions & 0 deletions
13
lms/templates/nafath_openedx_integration/edx_ace/useractivationmessage/email/body.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- {% extends 'ace_common/edx_ace/common/base_body.html' %} --> | ||
|
||
{% load i18n %} | ||
{% load static %} | ||
{% block content %} | ||
<p style="color: rgba(0,0,0,.75);"> | ||
{% autoescape off %} | ||
{# xss-lint: disable=django-blocktrans-missing-escape-filter #} | ||
{% blocktrans %}This is one time OTP {{ activation_code }}. Kindly use this to complete nafath authentication with SDAIA.{% endblocktrans %} | ||
{% endautoescape %} | ||
<br /> | ||
</p> | ||
{% endblock %} |
2 changes: 2 additions & 0 deletions
2
lms/templates/nafath_openedx_integration/edx_ace/useractivationmessage/email/body.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% load i18n %}{% autoescape off %}{% blocktrans %}This is one time OTP {{ activation_code }}. Kindly use this to complete nafath authentication with SDAIA.{% endblocktrans %} | ||
{% endautoescape %} |
1 change: 1 addition & 0 deletions
1
lms/templates/nafath_openedx_integration/edx_ace/useractivationmessage/email/from_name.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ platform_name }} |
1 change: 1 addition & 0 deletions
1
lms/templates/nafath_openedx_integration/edx_ace/useractivationmessage/email/head.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- {% extends 'ace_common/edx_ace/common/base_head.html' %} --> |
4 changes: 4 additions & 0 deletions
4
lms/templates/nafath_openedx_integration/edx_ace/useractivationmessage/email/subject.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% load i18n %} | ||
{% autoescape off %} | ||
{% blocktrans %}SDAIA - Complete Nafath Authentication{% endblocktrans %} | ||
{% endautoescape %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.