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

Fix action urls and tests. #247

Merged
merged 7 commits into from Sep 8, 2020
Merged

Conversation

mauritsvanrees
Copy link
Member

See issue #219, issue #244, PR #239.
Includes upgrade step to apply the actions.xml.

Note that this adds a View link in the toolbar when you are within the Fields or Actions views, but it is at a different position than normally, because the normal position is only available for real content items.
The order is: Contents, Actions, View (followed by History and Sharing)

When I try the original in a real browser, I get a click on *all* a-tags within the actions menu.
This means that several popup windows appear.
Clicking only the immediately contained a-tag means only the menu is opened.
I hope this fixes #244
We will use this in actions.xml.
Copy link
Member

@fredvd fredvd left a comment

Choose a reason for hiding this comment

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

LTGM, one remark to fix the view icon in the toolbar on the fields/mailer view.

name="object"
>
<object meta_type="CMF Action"
name="easyform-view"
Copy link
Member

Choose a reason for hiding this comment

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

This will add a 'puzzle piece' icon to the toolbar. Can you please add these three lines to easyform.css?

.icon-easyform-view.toolbar-menu-icon::before {
content: '\e807';
}

I don't think an upgrade step is necessary, but am not sure. When I locally start a test site with this change the easyform.css is bundled into the default.css automatically. But maybe we should upgrade the timestamp in the IBundleRegistry GS for this resource ....

Copy link
Member Author

Choose a reason for hiding this comment

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

You added the css.
When running in bin/instance console, I do not see a result of your changes, so an upgrade step is needed. But that is trickier than it should be.
I will merge now, and worry about an upgrade step afterwards.

@mauritsvanrees mauritsvanrees merged commit 3d3efd0 into master Sep 8, 2020
@mauritsvanrees mauritsvanrees deleted the maurits/actions-url-fixing-fest branch September 8, 2020 19:13
mauritsvanrees added a commit that referenced this pull request Sep 8, 2020
mauritsvanrees added a commit that referenced this pull request Sep 9, 2020
@mauritsvanrees
Copy link
Member Author

I have released this in collective.easyform 3.0.3, with some other fixes.

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.

None yet

3 participants