-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BLUEBUTTON-934 New User Self-Identification (#730)
* WIP - Adds messages and new select box * Removes old message include to be redone and adds icon to new messages and removes whitespace * Adds styles to forgot password flow. * Move email down in form and remove help text * Split bootstrapform in to signup and mfa forms * Add UserIdentificationLabel model and migration * Add admin view for UserIdentificationLabel * Add identification choice to signup form * Update create account tests * Add test for user identification label * Switch to use ModelChoiceField for self identification
- Loading branch information
1 parent
fbd7a2c
commit 99725de
Showing
19 changed files
with
335 additions
and
336 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,5 @@ ENV/ | |
*.css.map | ||
.sass-cache/* | ||
bluebutton-css/ | ||
|
||
.vscode |
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,27 @@ | ||
# Generated by Django 2.1.7 on 2019-05-28 16:37 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('accounts', '0037_auto_20171016_1542'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='UserIdentificationLabel', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=255, unique=True)), | ||
('slug', models.SlugField(unique=True)), | ||
('weight', models.IntegerField(default=0, | ||
help_text='Integer value controlling the position of the label in lists.', | ||
verbose_name='List Weight')), | ||
('users', models.ManyToManyField(blank=True, null=True, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
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,30 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
{% block Content %} | ||
|
||
<div class="sandbox-gradient-bg"> | ||
<div class="gradient-content-container"> | ||
<h1>MFA VERIFICATION</h1> | ||
<p>Enter the code you received to login.</p> | ||
|
||
<!-- Messages Container --> | ||
<div class="gradient-messages-contianer"> | ||
{% include "include/messages.html" %} | ||
<!-- Not Sure how we'd like to do messages, but I'd like them to be in this format, if possible. --> | ||
</div> | ||
|
||
<!-- Content Card --> | ||
<div class="gradient-content-card"> | ||
<div class="content"> | ||
<!-- Create Account Form --> | ||
<form class="well" method="post" action="" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
{% load bootstrap %} | ||
{{ form|bootstrap }} | ||
<a href="javascript:history.go(-1)">{% trans "Go Back" %}</a> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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.