Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"End search" becomes "before you export" #798

Merged
merged 5 commits into from
Jun 29, 2018

Conversation

galund
Copy link
Contributor

@galund galund commented Jun 26, 2018

"End search" is now cast in terms "being ready to download".

  • This is more a content change rather than new functionality, but there is a small form with a tick box that must be ticked.

https://trello.com/c/Z1a3weIe/131-replace-end-search-with-before-you-export-your-results

@galund galund force-pushed the end-search-becomes-before-you-export branch 2 times, most recently from 32e7ed6 to 66589eb Compare June 26, 2018 16:37
</form>

<p><a href="{{ url_for('direct_award.view_project', framework_family=framework.framework, project_id=project.id) }}">Return to overview</a></p>
<p><a href="{{ url_for('direct_award.view_project', framework_family=framework.framework, project_id=project.id) }}">Return to your task list</a></p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this to framework.family?


<div class="end-search-page">
<div class="grid-row">
<div class="column-two-thirds">
<div class="column-two-thirds dmspeak">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does dmspeak do here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhh dmspeak. Long story behind it I think but I think all you need to know is it's a dumping ground of all kinds of more "conversational" styles we use...

<header class="page-heading">
<h1>
End your search
Before you export your results
</h1>
</header>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a template for headings now, you can use

{% with heading="Before you export your results" %}
  {% include "toolkit/page-heading.html %}
{% endwith %}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But ewww yuck no :-)

@@ -30,6 +30,13 @@ def options(self):
return [{"label": label, "value": value} for value, label in self.choices]


class DMBooleanField(BooleanField):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? It feels like we have this in utils now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aww, ok

export your results.
</p>
</div>
{% endif %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like it should be using the validation masthead template from the frontend toolkit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's based on that, but this is an intentional change because the form only has one question. So we don't need the 'heading plus list of question/errors' format, but something slightly different i.e. just one para of text.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use the standard heading+question for all the other one-question forms.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well the login screen has something different. The content here seems right to me, and has been discussed a fair amount.

@galund galund force-pushed the end-search-becomes-before-you-export branch from 1a5ddae to ee1a42f Compare June 29, 2018 09:06
Copy link
Contributor

@risicle risicle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine

{% if errors %}
<div class="validation-masthead" aria-labelledby="validation-masthead-heading" aria-role="group" tabindex="-1">
<p>
You need to <a href="#user_understands">confirm that you’ve finished editing your search</a> before you
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to do something more like the toolkit here with a href="#{{ form.user_understands.id }}".

@galund galund force-pushed the end-search-becomes-before-you-export branch from 14c5e06 to c37c4cd Compare June 29, 2018 09:55
@galund galund merged commit dc96874 into master Jun 29, 2018
@galund galund deleted the end-search-becomes-before-you-export branch June 29, 2018 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants