Commit Graph

755 Commits

Author SHA1 Message Date
Adam Shimali
90a17bc0a7 Service and job id were incorrectly in bucket name. 2016-02-04 12:06:06 +00:00
Adam Shimali
2e4e354680 Merge pull request #148 from alphagov/file-uploader
File uploader
2016-02-03 17:25:58 +00:00
Chris Hill-Scott
0b47656ebc Add custom file upload to the send SMS page
This is the only place we’re doing file upload at the moment.
2016-02-03 17:16:29 +00:00
Chris Hill-Scott
4447af3fec Add custom file upload component
The default browser file upload control is difficult to style, but looks totally
out of place.

This commit replaces it with one that has a GOV.UK style button, as a first
step.

Based heavily on this example:
http://tympanus.net/codrops/2015/09/15/styling-customizing-file-inputs-smart-way/
2016-02-03 17:16:17 +00:00
Adam Shimali
44045b2d09 Merge pull request #147 from alphagov/split-sms
Split ‘send SMS’ page into two pages
2016-02-03 17:08:45 +00:00
Chris Hill-Scott
c774b82ba9 Don’t allow user to send texts without template 2016-02-03 13:38:55 +00:00
Chris Hill-Scott
9bdce7007d Merge pull request #146 from alphagov/ph-nav-labels
Updated main nav to group things more sensibly
2016-02-03 11:33:40 +00:00
Chris Hill-Scott
8d3e3e6943 Change wording on the banner
We can ignore any mention of trial/test/mode if we just talk about ‘not live’.

It also feels sensible to link through to the page where you can make that
change, rather than dig through the navigation.
2016-02-03 11:18:02 +00:00
Chris Hill-Scott
394a9db3f7 Split ‘send SMS’ page into two pages
This commit just splits the existing page into two. It doesn’t do any
substantive changes to how the two parts of the page work.
2016-02-03 11:14:20 +00:00
Pete Herlihy
808d8d507f Updated main nav to group things more sensibly
Adding more verbs than nouns too.... so it's clear what you do at each view.

No ticket for this, as off-piste.

Naughty.
2016-02-03 10:53:22 +00:00
NIcholas Staples
24cdfd9f64 Merge pull request #145 from alphagov/bucket-creation
Bucket creation needed correct region to be set.
2016-02-03 09:50:20 +00:00
Adam Shimali
c05a4b2059 Bucket creation needed correct region to be set.
That resulted in non-idempotent create_bucket in non us east 1
location, so needed to check for bucket existence first.
2016-02-02 22:26:49 +00:00
Adam Shimali
dd07a00e68 Merge pull request #144 from alphagov/error_headers_fix
Update error handlers to include appropriate headers.
2016-02-02 17:24:43 +00:00
Adam Shimali
b95e08a3a6 Merge pull request #141 from alphagov/update_version_status_info
Updated status endpoint info from travis build time and commit.
2016-02-02 17:23:37 +00:00
NIcholas Staples
bcd89371fe Merge pull request #143 from alphagov/autofocus-two-factor
Autofocus two factor
2016-02-02 16:51:33 +00:00
NIcholas Staples
aeb884b9a9 Merge pull request #142 from alphagov/clearer-verify-page
Clearer verify page
2016-02-02 16:51:20 +00:00
Nicholas Staples
7fc1db9d19 Update error handlers to include appropriate headers. 2016-02-02 16:50:13 +00:00
Nicholas Staples
c7ab8bd957 Status structure updated. 2016-02-02 16:44:42 +00:00
Nicholas Staples
5d88ecc866 Bug fix for mis-spelled func names. 2016-02-02 16:42:57 +00:00
Chris Hill-Scott
2d1af953ed Add autofocus module to two factor page 2016-02-02 16:39:28 +00:00
Chris Hill-Scott
776539462e Make autofocus textbox module
This commit adds a very small Javascript module to autofocus a textbox on page
load. It should only be used once per page.

It also adds a parameter to the textbox macro which adds the attribute to
trigger autofocus.
2016-02-02 16:38:10 +00:00
Chris Hill-Scott
9767ee1511 Make two factor textbox consistent with verify textboxes
- make the field the same width (5em to match length of code)
- move ‘haven’t received…’ link underneath the textbox instead of underneath
  the button
2016-02-02 16:36:11 +00:00
Chris Hill-Scott
335cc160fa Fix wording 2016-02-02 15:59:41 +00:00
Chris Hill-Scott
9c856af789 Allow textboxes to have width set, default to 2/3
For entering 2 or 3fa codes, we want a textbox that’s just over 6 characters
wide.

To do this, a width can now be passed to the textbox macro. The possible widths
are the same as those provided by GOV.UK Elements, and in the same format (eg
1-4, 1-2, 2-3…)

This commit also adds a new width (5em) which is suitable for 3fa codes, and
adds it to the verify page.
2016-02-02 15:59:41 +00:00
Chris Hill-Scott
71fd7f98a7 Reduce spacing between textbox and ‘I have’t rec…’
The grouping on this page was weird because these links were two far away from
the associated textbox, and too close to the next textbox.

This commit adds them as parameters to the textbox macro, which means their
relative spacing can be controlled exactly, and thus reduced.
2016-02-02 15:59:41 +00:00
Chris Hill-Scott
a09bd7bf9e Merge pull request #140 from alphagov/various-tweaks
Various tweaks
2016-02-02 15:59:22 +00:00
Nicholas Staples
b38b89a17b Updated status endpoint info from travis build time and commit. 2016-02-02 15:13:22 +00:00
Chris Hill-Scott
686c4127cd Various tweaks
- remove black border from banner
- make banners have internal columns
- make nav 2/3rd width, 19px text and more spaced out
- only show the ‘restricted mode’ banner where it’s needed
- rename ‘restricted mode’ to ‘trial mode’
2016-02-02 15:01:17 +00:00
Adam Shimali
658045e6d7 Merge pull request #139 from alphagov/make-service-id-a-uuid
Update service_id to a UUID from an integer.
2016-02-02 14:53:00 +00:00
Chris Hill-Scott
bf10800c12 Merge pull request #138 from alphagov/make-headings-smaller
Make headings `.heading-large` instead of `.heading-xlarge`
2016-02-02 14:28:29 +00:00
Rebecca Law
a4cb35ad3b Update service_id to a UUID from an integer.
This commit must go along side a commit on the notifications-api app.
There will be a breif outage until both app are deployed.
2016-02-02 14:25:31 +00:00
Adam Shimali
e1a0460624 Merge pull request #137 from alphagov/cache_control_header
Added cache control header to response.
2016-02-02 14:15:02 +00:00
Henry Hadlow
c4023bf0fb Make headings .heading-large instead of .heading-xlarge 2016-02-02 14:06:07 +00:00
Nicholas Staples
7d4c2045bc Added cache control header to response. 2016-02-02 14:02:10 +00:00
Adam Shimali
0f325938e1 Merge pull request #136 from alphagov/update_user_bug_fix
Bug fix.
2016-02-02 10:30:32 +00:00
Adam Shimali
645dcccb6d Merge pull request #135 from alphagov/create-template-tip
[WIP] Add a 'get started' banner message to the dashboard
2016-02-02 10:30:05 +00:00
Nicholas Staples
5d3292b3c1 Bug fix. 2016-02-02 10:17:17 +00:00
Chris Hill-Scott
acc13feddb Add prompt to add first template to dashboard
https://www.pivotaltracker.com/story/show/112814667

> As you need to have templates to send any notifications, we should be nudging
> people to do that when they sign in.
>
> This should be in the dashboard, with a link to manage templates.
>
> Should be bright and shiny and only show if the service has no templates.

This commit adds the above.

It also rationalises the language (some places used ‘create template’, others
used ‘add template’, this changes everything to the latter).
2016-02-02 10:14:04 +00:00
Chris Hill-Scott
46db79c421 Add a new style of banner—‘tip’
This banner is meant for onboarding users and giving them prompts about what
they should do next.
2016-02-02 09:44:24 +00:00
Chris Hill-Scott
683f8d4161 Merge pull request #134 from alphagov/share-phone-validation
Moved mobile validation to utils module for use in csv upload as well.
2016-02-01 17:21:23 +00:00
NIcholas Staples
1f1355547f Merge pull request #133 from alphagov/tidy-up-inconsistent-forms
Tidy up inconsistent forms
2016-02-01 17:03:36 +00:00
NIcholas Staples
f0f6a3a8cd Merge pull request #132 from alphagov/colours-per-environment
Use different colours for each environment
2016-02-01 17:03:24 +00:00
Adam Shimali
9e8c0b8d59 Moved mobile validation to utils module for use in csv upload as well.
This could be moved to shared utils code base at some point.
2016-02-01 16:57:40 +00:00
Chris Hill-Scott
3f45dbf09d Replace tabs with two spaces for consistency 2016-02-01 16:57:29 +00:00
Chris Hill-Scott
9cf6dfa6f2 Tidy up inconsistencies in forms
Wherever possible, use the macros.
2016-02-01 16:55:46 +00:00
Chris Hill-Scott
3135f6c510 Use different colours for each environment
https://www.pivotaltracker.com/story/show/112786779

> There's an emerging convention on admin apps, to have a red strip atop the
> page, also to have a different colour for preview environment... so let's
> adopt that and see how it feels. Red for prod and gold for preview.

This commit adds config so that:
- yellow locally
- orange on preview and staging
- red on live

It will not actually work until each AWS environment uses the right config, but
can be tested locally by setting the environment variable manually, eg:
`export HEADER_COLOUR='#F47738'`
2016-02-01 15:35:19 +00:00
Adam Shimali
b5b13254c7 Merge pull request #131 from alphagov/use-template-var
Small bug fixes
2016-02-01 14:23:36 +00:00
Adam Shimali
8fcf9866fe Merge pull request #130 from alphagov/nav-2.0
Fix the navigation and menus on frontend
2016-02-01 13:58:36 +00:00
Rebecca Law
8252dc4d39 Add autocomplete off option for confirm service setting page 2016-02-01 13:53:55 +00:00
Chris Hill-Scott
2ef1057180 Make spacing and position of banners consistent
Banners should always be the first thing on the page.

Because headers already have padding we don’t want to put padding on the
container.

So banners should also have top padding to distance then from the red bar.

They should also sit in the 3/4 column if the page has side navigation. This
commit adds a new template (`withoutnav_template.html`) which extends
`admin_template.html`. All views then extend one or the other, never the
`admin_template.html` directly. This means that `admin_template.html` doesn’t
have to make decisions about where the flash messages are displayed.
2016-02-01 13:52:46 +00:00