-
Notifications
You must be signed in to change notification settings - Fork 36
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
Hide checkboxes in archived locations for observer role #3296
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,12 +2,14 @@ | |||||
{% load rules %} | ||||||
{% load content_filters %} | ||||||
<tr class="border-t border-gray-200 hover:bg-gray-100 text-gray-800"> | ||||||
<td class="py-3 pl-4 pr-2"> | ||||||
<input type="checkbox" | ||||||
name="selected_ids[]" | ||||||
value="{{ poi.id }}" | ||||||
form="bulk-action-form" | ||||||
class="bulk-select-item" /> | ||||||
<td class="pr-2 pl-4{% if not perms.cms.change_poi %} py-5 pr-2 {% endif %}"> | ||||||
{% if perms.cms.change_poi %} | ||||||
<input type="checkbox" | ||||||
name="selected_ids[]" | ||||||
value="{{ poi.id }}" | ||||||
form="bulk-action-form" | ||||||
class="bulk-select-item" /> | ||||||
{% endif %} | ||||||
</td> | ||||||
<td class="pr-2"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you chose to go with this suggestion, please don't forget to also apply this to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the problem was with the row... so i did not change here anything :) |
||||||
<a title="{% if poi_translation %} {{ poi_translation.title }}{% endif %}" | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has a small side effect: The rows loses the padding to the top and bottom, and shrinks a little bit (s. screenshot).
I'm sure there are better ways to do it, but I couldn't come up with one and wanted to share at least one idea, so here we go :)
I think I would move the permission check one hierarchy up.
and then add to next element the classes in case you can't change the poi (s. below).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoeyStk thank you for your suggestion :) Unfortunately, if I put it above, the whole row moves on the left side, so I used instead the class option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I somehow can't reproduce how it looks in the picture of @JoeyStk (Firefox/Chrome)