Hello Alaveteli dev,
I'm looking for a way to extend existing message that now says:
"Waiting for an internal review by AUTHORITY NAME of their handling of this request."
that can be found here:
to include also same text about due date that we see when status is "waiting response":
"They should respond promptly and normally no later than
DD MMMM YYYY (
details)."
Is there a way I can override
"def status_text_internal_review(info_request, opts = {})"
in my theme's helper_patches.rb?
I tried adding this to helper_patches.rb of the theme, but then "ModuleHelper" undefined error was produced when building/deploying the theme:
ModuleHelper.class_eval do
def status_text_internal_review(info_request, opts = {})
str = _('Waiting for an <strong>internal review</strong> by ' \
'{{public_body_link}} of their handling of this request.',
:public_body_link => public_body_link(info_request.public_body))
str += ' '
if info_request.public_body.not_subject_to_law?
str += _('Although not legally required to do so, we would have ' \
'expected {{public_body_link}} to have responded by ',
:public_body_link => public_body_link(info_request.public_body))
else
str += _('By law, {{public_body_link}} should normally have responded ' \
'<strong>promptly</strong> and',
:public_body_link => public_body_link(info_request.public_body))
str += ' '
str += _('by')
str += ' '
end
str += content_tag(:strong,
simple_date(info_request.date_response_required_by))
str += ' '
str += "("
str += details_help_link(info_request.public_body)
str += ")"
end
end
This is because in Croatia, due date is not changed, so I expect to see the due date still.
Also we misuse "internal_review" actually because there is no internal review by Croatian FOI law, so we use it to mark that user tried to expedite the case (in Croatian "požurnica").
I was also thinking to add a new status, but then internal review already has reply template that we need, and also asks user when sending a reply if it's "internal review" or something else, so it has actually useful flow for our "expedite" memo flow. Also "internal review" is already deeply coded into Alaveteli, so it would be a mess removing it on all places (so we just renamed the name of that status to "expedited" status).
If it's possible to override a status text in theme, that would solve everything for us to continue using "internal review" for our "expedite" flow.
Thanks,
Miroslav