Skip to content

Commit

Permalink
Add tooltips for the category radio buttons and for the "post as comm…
Browse files Browse the repository at this point in the history
…ent"-field.
  • Loading branch information
Frodo161 committed Sep 21, 2023
1 parent 0668b84 commit 7950a8b
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 8 deletions.
16 changes: 11 additions & 5 deletions app/views/annotations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
<!--- CATEGORY RADIO BUTTON -->
<b><%= t('admin.annotation.category') %></b>
<div class="form-row ml-2", id="category-radios">
<div class="form-check form-check-inline">
<div class="form-check form-check-inline",
title="<%= t('admin.annotation.note_tooltip') %>">
<%= f.radio_button :category,
:note,
class: 'form-check-input' %>
Expand All @@ -66,7 +67,8 @@
value: :note,
class: 'form-check-label' %>
</div>
<div class="form-check form-check-inline">
<div class="form-check form-check-inline",
title="<%= t('admin.annotation.content_tooltip') %>">
<%= f.radio_button :category,
:content,
class: 'form-check-input' %>
Expand All @@ -75,7 +77,8 @@
value: :content,
class: 'form-check-label' %>
</div>
<div class="form-check form-check-inline">
<div class="form-check form-check-inline",
title="<%= t('admin.annotation.mistake_tooltip') %>">
<%= f.radio_button :category,
:mistake,
class: 'form-check-input' %>
Expand All @@ -84,7 +87,8 @@
value: :mistake,
class: 'form-check-label' %>
</div>
<div class="form-check form-check-inline">
<div class="form-check form-check-inline",
title="<%= t('admin.annotation.presentation_tooltip') %>">
<%= f.radio_button :category,
:presentation,
class: 'form-check-input' %>
Expand Down Expand Up @@ -118,7 +122,9 @@
<% end %>

<%= f.label :visible_for_teacher, class: "checkbox inline" do %>
<span><b><%= t('admin.annotation.post_as_comment') %> &nbsp</b></span>
<span, title="<%= t('admin.annotation.post_as_comment_tooltip') %>"><b>
<%= t('admin.annotation.post_as_comment') %> &nbsp
</b></span>
<%= f.check_box :post_as_comment %>
<% end %>

Expand Down
9 changes: 6 additions & 3 deletions app/views/annotations/_form_content.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<br>

<div class="form-row ml-2", id="content-category-radios">
<div class="form-check form-check-inline">
<div class="form-check form-check-inline",
title="<%= t('admin.annotation.definition_tooltip') %>">
<input id="content-category-definition"
class="form-check-input"
type="radio"
Expand All @@ -14,7 +15,8 @@
<%= t('admin.annotation.definition') %>
</label>
</div>
<div class="form-check form-check-inline">
<div class="form-check form-check-inline",
title="<%= t('admin.annotation.argument_tooltip') %>">
<input id="content-category-argument"
class="form-check-input"
type="radio"
Expand All @@ -25,7 +27,8 @@
<%= t('admin.annotation.argument') %>
</label>
</div>
<div class="form-check form-check-inline">
<div class="form-check form-check-inline",
title="<%= t('admin.annotation.strategy_tooltip') %>">
<input id="content-category-strategy"
class="form-check-input"
type="radio"
Expand Down
24 changes: 24 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,35 @@ de:
color: 'Farbe'
category: 'Kategorie'
note: 'Notiz'
note_tooltip: >
Wähle diese Kategorie aus, wenn Du Deine Annotation als
persönliche Notiz anlegen möchtest.
content: 'Inhalt'
content_tooltip: >
Wähle diese Kategorie aus, wenn Du den Inhalt des Videos an dieser
Stelle nicht verstehst.
mistake: 'Fehler'
mistake_tooltip: >
Wähle diese Kategorie aus, wenn Du der Meinung bist, an dieser
Stelle im Video wurde ein inhaltlicher Fehler gemacht.
presentation: 'Darstellung'
presentation_tooltip: >
Wähle diese Kategorie aus, wenn Dir die Darstellung im Video
an dieser Stelle Probleme bereitet, z.B. falls Du die Schrift
nicht lesen kannst oder falls der Ton unverständlich ist.
where_problem: >
Wo liegt das Problem?
definition: 'Definition'
definition_tooltip: >
Wähle diese Unterkategorie aus, wenn Du Probleme mit einer Definition hast.
argument: 'Argument'
argument_tooltip: >
Wähle diese Unterkategorie aus, wenn Du Probleme mit einem Argument
(z.B. in einem Beweis) hast.
strategy: 'Beweisstrategie'
strategy_tooltip: >
Wähle diese Unterkategorie aus, wenn Du Probleme mit der allgemeinen
(Beweis-)Strategie hast.
previous_annotation: 'vorherige Annotation'
annotation_position: 'zur Annotation springen'
edit_annotation: 'Annotation editieren'
Expand All @@ -365,6 +386,9 @@ de:
Falls diese Checkbox ausgewählt ist, kann Dein(e) Dozent(in) diese Annotation
in ihrem/seinem Thyme-Player (ohne Deinen Namen) sehen.
post_as_comment: 'Als Kommentar veröffentlichen?'
post_as_comment_tooltip: >
Falls diese Checkbox ausgewählt ist, wird diese Annotation automatisch
als Kommentar zu diesem Video veröffentlicht.
toggle:
note: "Notiz-Annotationen ein-/ausblenden"
content: "Inhalt-Annotationen ein-/ausblenden"
Expand Down
24 changes: 24 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,35 @@ en:
color: 'Color'
category: 'Category'
note: 'note'
note_tooltip: >
Select this category if you want to create your annotation
as a personal note.
content: 'content'
content_tooltip: >
Select this category if you don't understand the content
of the video at this position.
mistake: 'mistake'
mistake_tooltip: >
Select this category if you think there has been made a mistake
in the content of the video at this position.
presentation: 'presentation'
presentation_tooltip: >
Select this category if you have problems with the presentation
in the video at this position, e.g. if you cannot read the
handwriting or if you cannot understand the audio.
where_problem: >
Where's the problem?
definition: 'definition'
definition_tooltip: >
Select this subcategory if you have problems with a definition.
argument: 'argument'
argument_tooltip: >
Select this subcategory if you have problems with an argument
(e.g. in a proof).
strategy: 'proof strategy'
strategy_tooltip: >
Select this subcategory if you have problems with the general
(proof) strategy.
previous_annotation: 'previous annotation'
annotation_position: 'go to annotation'
edit_annotation: 'edit annotation'
Expand All @@ -365,6 +386,9 @@ en:
If this checkbox is selected your teacher can see this annotation
(without your name!) in his own thyme player.
post_as_comment: 'Post as comment?'
post_as_comment_tooltip: >
If this checkbox is selected, this annotation will be published as
comment for this video.
toggle:
note: "toggle note annotations"
content: "toggle note content"
Expand Down

0 comments on commit 7950a8b

Please sign in to comment.