Commit Graph

96 Commits

Author SHA1 Message Date
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
Chris Hill-Scott
a5f4580a7f Get SASS compilation working
Main thing that was missing was including the main CSS file in the template.

There are a few hacky bits here, like moving the whole of toolkit inside the
stylesheets directory.

Would arguably be cleaner using something that isn’t Flask Assets, but that’s
something for later.
2015-12-11 09:48:59 +00:00
Chris Hill-Scott
2f980ab622 Move all pages into their own directory
There are a lot of pages. It seems like a good idea to keep them in one place,
so they don’t get mixed up with partials and layouts.
2015-12-11 09:48:52 +00:00
minglis
3b327c9986 Merge pull request #22 from alphagov/implement_two_factor
Implement two factor
2015-12-09 14:20:29 +00:00
Chris Heathcote
b60b4f6d3a Merge pull request #23 from alphagov/change_labels
Change labels
2015-12-09 14:14:38 +00:00
Rebecca Law
f19cebd5fc Use the labels in the template rather than the form 2015-12-09 12:02:59 +00:00
Rebecca Law
5afb36cf71 Put the label in the templates rather than use the form label.
Just to make it easier.
2015-12-09 12:01:07 +00:00
Pete Herlihy
b038e00fab Added mange templates link to the dashboard 2015-12-09 11:14:45 +00:00
Pete Herlihy
80461e330c Added an add template button to manage templates page 2015-12-09 11:09:29 +00:00
Pete Herlihy
c145a07072 Added link to template edit page 2015-12-09 10:58:01 +00:00
Pete Herlihy
65c661d8d7 Created an initial page for editing templates [ci skip] 2015-12-09 10:52:09 +00:00
Pete Herlihy
7f1cdd2d27 Added initial template manage page [ci skip] 2015-12-09 10:47:38 +00:00
Rebecca Law
2e59870490 109638656: Implement two factor verify flow
When user enters valid sms code they are redirected to the dashboard.
Otherwise, form errors are present.
2015-12-09 10:17:09 +00:00
Rebecca Law
16618e80f9 109526520: Implement verify flow
When a person registers with a valid mobile number and email address,
a code will be sent to each. That person can enter the verify codes and continue to the add-service page.
2015-12-09 10:12:21 +00:00
Rebecca Law
60ed0c541b Remove the temporary endpoint to create users. 2015-12-08 09:03:48 +00:00
Chris Heathcote
12cbc04080 Changed main GOV.UK link depending on whether user is logged in or not
Goes to / for not logged in, /dashboard for logged in.
2015-12-07 16:18:05 +00:00
Lorena Sutherland
782d68a071 Add line break 2015-12-07 11:49:29 +00:00
Lorena Sutherland
1803fea9ab Fix bullet layout 2015-12-07 11:44:32 +00:00
Lorena Sutherland
851026970c Amend text 2015-12-07 11:16:14 +00:00
Lorena Sutherland
f91f5b5f02 Add line break to label 2015-12-07 10:04:51 +00:00
Lorena Sutherland
e9c9b8c271 Amend text 2015-12-04 15:12:48 +00:00
Lorena Sutherland
619df26690 Amend text 2015-12-04 15:08:41 +00:00
Lorena Sutherland
30f55321b2 Amend text 2015-12-04 15:07:21 +00:00
Lorena Sutherland
aadad35d71 Amend text and add password prompt 2015-12-04 15:05:51 +00:00
Lorena Sutherland
e8839c3300 Amend text 2015-12-04 15:02:00 +00:00
Lorena Sutherland
3c99eb2d3a Amend text 2015-12-04 14:57:16 +00:00
Lorena Sutherland
dc313a601c Amend text 2015-12-04 14:56:23 +00:00
Lorena Sutherland
9be1612c09 Amend text 2015-12-04 14:54:40 +00:00
Lorena Sutherland
7836241f48 Amend text 2015-12-04 14:50:23 +00:00
Lorena Sutherland
b2cae0d162 Amend text 2015-12-04 14:46:01 +00:00
Lorena Sutherland
0af88bb99f Amend intro text & delete email/phone prompts 2015-12-04 12:53:25 +00:00
Lorena Sutherland
7c3ff23ee2 Amend intro text and add password prompt 2015-12-04 12:51:06 +00:00
Lorena Sutherland
8ade276c3c Amend intro and sign-in text 2015-12-04 12:49:38 +00:00
Lorena Sutherland
437e4f52bd Amend intro and sign-in text 2015-12-04 12:47:23 +00:00
Chris Heathcote
da80013ec9 Adding beta phase banner 2015-12-03 16:01:00 +00:00
Lorena Sutherland
ff1c35e7a0 Amend line of text 2015-12-02 16:03:31 +00:00
Lorena Sutherland
47a7b79b21 Amend heading text
New heading corresponds to design pattern for confirming accounts
2015-12-02 15:44:07 +00:00
Lorena Sutherland
71f9be2b7e Amend line of text 2015-12-02 15:33:24 +00:00
Lorena Sutherland
f4140ea49b Amend line of text 2015-12-02 15:32:21 +00:00
Lorena Sutherland
f6967a8f23 Amend line of text 2015-12-02 11:56:59 +00:00