Skip to content

add copy name option#2697

Open
ZoqkMaze wants to merge 7 commits intoe-valuation:mainfrom
ZoqkMaze:importer-evaluation-merge
Open

add copy name option#2697
ZoqkMaze wants to merge 7 commits intoe-valuation:mainfrom
ZoqkMaze:importer-evaluation-merge

Conversation

@ZoqkMaze
Copy link
Copy Markdown
Collaborator

fix #2673

Comment thread evap/staff/templates/staff_course_form.html Outdated
<h3>
{% if course_form.instance.id %}
{{ course.name }} ({{ course.semester.name }})
<a data-bs-toggle="tooltip" data-bs-placement="right" title="{% translate 'Click to copy name' %}" onclick="navigator.clipboard.writeText('{{ course.name }}')">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hm, the onclick= is a bit hard to read. I think it would be nicer if the code here looked like data-copy-on-click="{{ course.name }}" and we would add a corresponding click handler to all elements that have this attribute in, for example, base-template.ts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We also need this to eventually enable CSP in #2296.

Copy link
Copy Markdown
Collaborator Author

@ZoqkMaze ZoqkMaze Apr 27, 2026

Choose a reason for hiding this comment

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

Is this what you imagined (except the failing frontend tests)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Copy evaluation name to clipboard

3 participants