Nicholas Staples
ecc3485d72
Merge conflicts with master.
2016-01-05 17:24:13 +00:00
Nicholas Staples
4fcc4efea2
Small comments.
2016-01-05 17:11:44 +00:00
Nicholas Staples
0ebacd6929
Refactor for code_not_received, sign_in, two_factor and verify.
2016-01-05 17:08:50 +00:00
Nicholas Staples
1f520116f0
Sign in view, form and template refactored.
2016-01-05 14:30:06 +00:00
Rebecca Law
f1291b7c09
Adding logging.
...
Raise ValidationError for validate_codes rather than returning a true or false.
2016-01-05 13:13:06 +00:00
Nicholas Staples
7693ba8a18
Update register view form and template.
2016-01-05 12:41:20 +00:00
Rebecca Law
1fd6ce9fe4
fix codestyle
2016-01-05 12:40:01 +00:00
Rebecca Law
931c6b2809
Add debugging to find issue.
2016-01-05 12:35:36 +00:00
Rebecca Law
785c413cde
Move and rename macro.html
...
Remove print statements
Fix code style
2016-01-04 15:50:26 +00:00
Rebecca Law
ac05f6931e
Refactor add-service form such that the dao is not exposed in the forms.
2016-01-04 15:31:50 +00:00
Rebecca Law
b2f544a165
110880218: Completed implementation of resend the verificaton code
2015-12-31 13:16:59 +00:00
Rebecca Law
fb5e80e0d4
110880218: Implementation to resend the verification code.
...
Added implementation for GET/POST for the /verification-not-received endpoint.
2015-12-31 11:13:42 +00:00
Rebecca Law
10dd647f2b
Merge pull request #35 from alphagov/did-not-receive-code
...
Implementation for did not receive email or sms code
2015-12-31 10:32:34 +00:00
Rebecca Law
fe8a1a10c5
109898688: Refactor the validate codes logic to be more susinct and easier to read.
2015-12-17 15:09:12 +00:00
Rebecca Law
7478f8a0f3
Make Users.email_address unique
2015-12-17 14:57:26 +00:00
Rebecca Law
010be66d31
109898688: Complete the implementation of the did not receive code.
2015-12-17 14:33:20 +00:00
Rebecca Law
64812c1614
109898688: All codes are valid until one code is used, then they are all marked used.
...
Fixed the is_active() method on the Users model, if the user was pending they would come back as active, allowing a user to sign in before being active.
There is still a problem with the validate_sms_code and validate_email_code method.
2015-12-17 14:33:20 +00:00
Rebecca Law
bd8bb3c926
109898688: Implementation of text-not-received and email-not-received
2015-12-17 14:33:20 +00:00
Rebecca Law
e9383b733e
109898688: Implement get method for email-not-received and text-not-received
2015-12-17 14:33:20 +00:00
Pete Herlihy
7ddf2b0a9c
Updated direct URLs to method ones
2015-12-16 14:12:24 +00:00
Pete Herlihy
a7e6fc340a
Added some data and links to the dashboard to give it a 'flavour'
2015-12-16 13:51:46 +00:00
Pete Herlihy
a534441fa0
Merge pull request #30 from alphagov/new-nav
...
Create side navigation for logged in pages
2015-12-15 15:17:25 +00:00
Chris Heathcote
6fa29e769d
Rolling back to thirds
2015-12-15 13:57:19 +00:00
Chris Heathcote
1ad5f7f8e6
Trialling 1/4 width nav
2015-12-15 13:48:23 +00:00
Chris Heathcote
17850dc170
Changed nav urls to be url_fors
2015-12-15 10:52:24 +00:00
Rebecca Law
eb0cff18c5
110067722: Add form validation for duplicate service name.
2015-12-15 10:32:26 +00:00
Rebecca Law
23b5cffbe8
110067722: Update template with the form.
2015-12-15 10:32:26 +00:00
Rebecca Law
43f2605ac4
110067722: Post add-service endpoint saves the service and maps it to the user.
2015-12-15 10:32:26 +00:00
Rebecca Law
350ccda208
110067722: Added endpoints for add-service
...
Post is not complete as of yet.
2015-12-15 10:32:25 +00:00
Rebecca Law
4b01335703
110067722: Create the model and dao for services.
...
This commit creates the data model for services and user_to_service.
The dao is also created to insert, get, activate, and unrestrict the service.
2015-12-15 10:31:27 +00:00
Chris Heathcote
8939f710a9
Move navigation into its own css file
2015-12-14 17:05:39 +00:00
Chris Heathcote
89189f2e35
Add URLs to main nav; add user profile to nav
2015-12-14 16:58:43 +00:00
Chris Heathcote
15c9269a80
Added main nav to logged in pages
2015-12-14 16:53:07 +00:00
Chris Heathcote
ec020a42f4
Initial nav & implementation on dashboard
2015-12-14 16:37:15 +00:00
minglis
e133baa6b3
Merge pull request #26 from alphagov/persis_verify_codes
...
Persis verify codes
2015-12-14 14:56:28 +00:00
Rebecca Law
caabda92e0
Test for VerifyForm and TwoFactorForm
2015-12-14 14:09:29 +00:00
Rebecca Law
295dbeb7d1
Create unit tests that test the forms.
2015-12-14 13:25:27 +00:00
Rebecca Law
c0550d2c61
Refactor unit tests
2015-12-14 13:25:27 +00:00
Chris Hill-Scott
7ac08e9a85
Simplify check and send SMS page
...
This commit:
- removes the row numbering so it’s easier to scan the list of phone numbers
- adds subheadings for 'first three' and 'last three'
- puts the 'see all' link at the end
2015-12-11 17:27:26 +00:00
Chris Hill-Scott
c6a73c287a
Improvements to send SMS page
...
- make messages align horizontally
- change wording of step 2 (from Lorena)
2015-12-11 14:32:43 +00:00
Chris Hill-Scott
d2562889b8
Replace CSV preview with rendered messages
...
If there are less than 7 messages, show them all.
If there are more than 7, show the first and last three, and a link to the
remaining x.
2015-12-11 14:02:42 +00:00
Chris Hill-Scott
4c14e273c2
Try out previewing messages
2015-12-11 12:02:21 +00:00
Chris Hill-Scott
64f03bed06
Make labels blocks, put next to message templates
2015-12-11 11:39:52 +00:00
Chris Hill-Scott
703eed3d36
Add 'back' button
2015-12-11 09:49:39 +00:00
Chris Hill-Scott
8a34fa7e0a
Use Flask for routing
...
This commit:
- replaces links that look like buttons with forms and submit buttons
- splits the view code for SMS into its own file
- moves the routing into the Python by adding handling for `post` requests
- uses Flask’s `url_for` to generate URLs, rather than hard coding them (so that
it’s easier to change the URLs)
- chages the URLs for sending text messages
2015-12-11 09:49:38 +00:00
Chris Hill-Scott
dbc55e76b0
Add table of recipients
...
Uses an adapted version of the 'summary table' pattern from Digital Marketplace
frontend toolkit:
http://alphagov.github.io/digitalmarketplace-frontend-toolkit/summary-table.html
2015-12-11 09:49:38 +00:00
Chris Hill-Scott
c4df25c8db
Add a non-JS template picker
...
We could do something with Javascript to only show the selected template. For
now this is something that works without Javascript.
This means we can put off getting the build and testing pipeline for Javascript
set up, which is a bigger and more unknown piece of work.
2015-12-11 09:49:38 +00:00
Chris Hill-Scott
73ccea4d1f
Add GOV.UK Elements as a submodule
...
Since GOV.UK Elements is versionned now it makes sense to bring it in as a
dependency. This enforces a separation between what generic stuff we’re using
from Elements and what is specific to our app.
The benefit is that when the generic stuff changes it will be easy to bring
those changes in.
This commit also bumps GOV.UK frontend toolkit to the latest version (v4.5.0).
2015-12-11 09:49:31 +00:00
Chris Hill-Scott
1f39a0fe61
Hard code some data in the Python
...
This commit adds some stubbed data for the pages. The structure of the data
is just a proposal, but it gives the templates something to work with for now.
2015-12-11 09:48:59 +00:00
Chris Hill-Scott
b46872d2b9
Add a template filter for message placeholders
...
As a first guess placeholders can be added to messages with the
`((placeholder))` syntax.
This commit adds a Jinja template filter to convert strings containing
said-formatted strings into HTML, which can then be styled to highlight which
parts will be substituted in messages.
2015-12-11 09:48:59 +00:00