Use registration field order when using a registration extension form

Description

  1.  

    1. Description

On registration screen, make it possible to change the `REGISTRATION_FIELD_ORDER` when using a custom `REGISTRATION_EXTENSION_FORM`.

If you are managing an open edx installation probably you need to ask more information about your users on the registration form. For that you use a registration extension form. But when you configure that extension form you no longer can change the ordering of presentation of each field on the registration form. This pull request tries to fix that specific thing.

This change has impact for Developers and Operators that manage a custom open edx installation.

Example, with this configuration, we can
```
REGISTRATION_EXTRA_FIELDS:
city: required
confirm_email: hidden
country: required
gender: optional
goals: optional
honor_code: required
level_of_education: optional
mailing_address: hidden
year_of_birth: optional
terms_of_service: hidden
data_authorization: required # custom registration field
employment_situation: optional # custom registration field
allow_newsletter: optional # custom registration field

REGISTRATION_FIELD_ORDER:

  • email

  • name

  • username

  • password

  • data_authorization # custom registration field

  • honor_code

  • city

  • country

  • allow_newsletter # custom registration field

  • gender

  • year_of_birth

  • level_of_education

  • employment_situation # custom registration field

  • goals
    ```

*Required fields*:
![image](https://user-images.githubusercontent.com/67018/108524563-13223780-72c7-11eb-8afe-4e85a7c7c6bf.png)
*Optional fields*:
![image](https://user-images.githubusercontent.com/67018/108524630-246b4400-72c7-11eb-9157-ca7b510d0fee.png)

Assignee

Unassigned

Reporter

Open Source Pull Request Bot

Labels

Contributor Name

Ivo Branco

Repo

edx/edx-platform

Customer

None

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Blended Hour Utilization Percentage

None

edX Theme

None

edX Squad

None

Github Lines Added

42

Github Lines Deleted

47

Priority

Unset