Skip to content

Commit

Permalink
Modify infobox
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Jul 6, 2023
1 parent 29ce3f6 commit d444094
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/projects/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,12 @@ def __init__(self, *args, **kwargs):
if view_only is True:
self.fields[field].disabled = True
if self.fields[field].help_text is not None:
help_text = self.fields[field].help_text
help_text = (
self.fields[field].help_text
+ ". "
+ _("Click on the icon for more help")
+ "."
)
self.fields[field].help_text = None
else:
help_text = ""
Expand All @@ -774,7 +779,7 @@ def __init__(self, *args, **kwargs):
else:
param_ref = ""
if field != "name":
question_icon = f'<a href="{RTD_url}{param_ref}"><span class="icon icon-question" data-bs-toggle="tooltip" title="{help_text}"></span></a>'
question_icon = f'<a href="{RTD_url}{param_ref}" target="_blank" rel="noreferrer"><span class="icon icon-question" data-bs-toggle="tooltip" title="{help_text}"></span></a>'
else:
question_icon = ""
self.fields[field].label = self.fields[field].label + question_icon
Expand Down

0 comments on commit d444094

Please sign in to comment.