Skip to content

Voting header cell for the landing page#7427

Merged
mrcasals merged 3 commits intofeat/votings_public_landing_pagefrom
feat/header_for_public_voting_landing_page
Mar 2, 2021
Merged

Voting header cell for the landing page#7427
mrcasals merged 3 commits intofeat/votings_public_landing_pagefrom
feat/header_for_public_voting_landing_page

Conversation

@agustibr
Copy link
Copy Markdown
Contributor

@agustibr agustibr commented Feb 19, 2021

🎩 What? Why?

This PR implements the public side of the Decidim::Votings::ContentBlocks::LandingPage::HeaderCell.

Adds a setting form to the admin to configure the CTA button from the header.

📌 Related Issues

Testing

  • As a participant, visit a voting details page (the header cell should be activated from the Landing page admin side):
    Screenshot 2021-02-26 at 13 37 56

  • As an admin, go to manage the voting landing page, and click on the pencil button to edit the cta contents:
    Screenshot 2021-02-19 at 16 09 21
    Screenshot 2021-02-19 at 16 09 44

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Please add screenshots of the changes you're proposing
Description

♥️ Thank you!

@agustibr agustibr added project: e-voting Barcelona City Council contract module: elections labels Feb 19, 2021
@agustibr agustibr self-assigned this Feb 19, 2021
@agustibr agustibr force-pushed the feat/header_for_public_voting_landing_page branch from fb69975 to 5ccab29 Compare February 23, 2021 19:54
@agustibr agustibr changed the base branch from develop to feat/votings_public_landing_page February 23, 2021 19:58
@agustibr agustibr force-pushed the feat/header_for_public_voting_landing_page branch 2 times, most recently from 1a48786 to e61e798 Compare February 25, 2021 14:27
@agustibr agustibr marked this pull request as ready for review February 25, 2021 15:35
@agustibr agustibr force-pushed the feat/header_for_public_voting_landing_page branch from e61e798 to d97dbc8 Compare February 25, 2021 16:33
Copy link
Copy Markdown
Contributor

@orlera orlera left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
Contributor

@leio10 leio10 left a comment

Choose a reason for hiding this comment

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

Well done! 👍

active_item = items.find { |item| item[:active] }

render partial: "decidim/shared/extended_navigation_bar", locals: {
render partial: "decidim/shared/extended_navigation_bar.html", locals: {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we need to add the extension? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's wierd, but since the partial is called within a cell I needed to add the extension so it could be found and all works then.

There's another PR for this landing page that needed the same, maybe there's another workaround.

</section>

<section class="section">
<%= extended_navigation_bar(navigation_items) %>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The navigation bar is not in the PR screenshot, but it will be there, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, it has the participatory space nav bar.
I've updated the screenshot.

Copy link
Copy Markdown
Contributor

@slickepinne slickepinne left a comment

Choose a reason for hiding this comment

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

🌻👍

@mrcasals mrcasals merged commit 15150f5 into feat/votings_public_landing_page Mar 2, 2021
@mrcasals mrcasals deleted the feat/header_for_public_voting_landing_page branch March 2, 2021 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: elections project: e-voting Barcelona City Council contract

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants