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

ui: render access request form based on settings #2319

Conversation

anikachurilova
Copy link
Contributor

Case 1: accept_conditions_text = null or absent
Screenshot 2023-07-24 at 10 42 32

Case 2: accept_conditions_text = "Buy me a unicorn"
Screenshot 2023-07-24 at 10 42 54

Case 3: accept_conditions_text = "<h1>Buy me a unicorn</h1>"
Screenshot 2023-07-24 at 10 43 20

Case 4: allow_user_requests or allow_guest_requests is set to false:
Screenshot 2023-07-24 at 10 45 00

{%- if accept_conditions_text %}
<p>
<h5>{{ _("You need to satisfy these conditions in order for this request to be accepted:") }}</h5>
{{ _(accept_conditions_text) | safe }}
Copy link
Member

Choose a reason for hiding this comment

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

this is redundant I think because it will not mark the resolved text as translatable but rather the variable accept_conditions_text but maybe to be checked

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Saw the example here: https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header.html#L33
But you're right, seems like we can't translate everything that user can put into that field

@anikachurilova anikachurilova force-pushed the access-request-implement-settings branch from ece8806 to 391cf53 Compare July 24, 2023 11:41
@zzacharo zzacharo merged commit ba698c3 into inveniosoftware:master Jul 24, 2023
8 checks passed
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.

requests: implement access request settings functionality on the backend
2 participants