Skip to content

Commit 2fd61a8

Browse files
committed
fix tooltips
1 parent c0fe9ae commit 2fd61a8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

app/views/account_links/_form.html.slim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
= render('shared/form_errors', object: @account_link)
44
.field-element.form-group
55
= f.label :name, AccountLink.human_attribute_name('name'), class: 'form-label'
6-
= f.text_field :name, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('.info.name'), class: 'form-control'
6+
= f.text_field :name, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.info.name'), class: 'form-control'
77
.field-element.form-group
88
= f.label :push_url, AccountLink.human_attribute_name('push_url'), class: 'form-label'
9-
= f.text_field :push_url, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('.info.push_url'), class: 'form-control'
9+
= f.text_field :push_url, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.info.push_url'), class: 'form-control'
1010
.field-element.form-group
1111
= f.label :check_uuid_url, AccountLink.human_attribute_name('check_uuid_url'), class: 'form-label'
12-
= f.text_field :check_uuid_url, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('.info.check_uuid_url'), class: 'form-control'
12+
= f.text_field :check_uuid_url, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.info.check_uuid_url'), class: 'form-control'
1313
.field-element.form-group
1414
= f.label :api_key, AccountLink.human_attribute_name('api_key'), class: 'form-label'
1515
.input-group
16-
= f.text_field :api_key, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('.info.token'), class: 'form-control'
16+
= f.text_field :api_key, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.info.token'), class: 'form-control'
1717
= button_tag t('.button.generate'), type: 'button', class: 'generate-api-key-token btn btn-light'
1818
.field-element.form-group
1919
= f.label :proforma_version, AccountLink.human_attribute_name('proforma_version'), class: 'form-label'

app/views/tasks/_file_config.html.slim

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,46 @@
44
= file.label :used_by_grader, TaskFile.human_attribute_name('used_by_grader'), class: 'form-label w-auto me-2'
55
.radio-switch
66
= file.radio_button :used_by_grader, true, value: true, checked: true
7-
= file.label :used_by_grader_true, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('common.button.yes'), class: 'radio-left small-radio radio-half' do
7+
= file.label :used_by_grader_true, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('common.button.yes'), class: 'radio-left small-radio radio-half' do
88
span.fa-stack
99
i.fa-solid.fa-check.fa-stack-1x.fa-2x
1010
= file.radio_button :used_by_grader, false, value: false
11-
= file.label :used_by_grader_false, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('common.button.no'), class: 'radio-right small-radio radio-half' do
11+
= file.label :used_by_grader_false, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('common.button.no'), class: 'radio-right small-radio radio-half' do
1212
span.fa-stack
1313
i.fa-solid.fa-xmark.fa-stack-1x.fa-2x
1414

1515
.form-control.placeholder
1616
= file.label :used_by_grader, TaskFile.human_attribute_name('visible'), class: 'form-label w-auto me-2'
1717
.radio-switch
1818
= file.radio_button :visible, 'yes', value: 'yes', checked: true
19-
= file.label :visible_yes, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('common.button.yes'), class: 'radio-left small-radio radio-third' do
19+
= file.label :visible_yes, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('common.button.yes'), class: 'radio-left small-radio radio-third' do
2020
span.fa-stack
2121
i.fa-regular.fa-eye.fa-stack-1x.fa-2x
2222
= file.radio_button :visible, 'no', value: 'no'
23-
= file.label :visible_no, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('common.button.no'), class: 'radio-right radio-left small-radio radio-third' do
23+
= file.label :visible_no, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('common.button.no'), class: 'radio-right radio-left small-radio radio-third' do
2424
span.fa-stack
2525
i.fa-regular.fa-eye-slash.fa-stack-1x.fa-2x
2626
= file.radio_button :visible, 'delayed', value: 'delayed'
27-
= file.label :visible_delayed, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('.delayed'), class: 'radio-right small-radio radio-third' do
27+
= file.label :visible_delayed, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.delayed'), class: 'radio-right small-radio radio-third' do
2828
span.fa-stack
2929
i.fa-regular.fa-clock.fa-stack-1x.fa-2x
3030

3131
.form-control.placeholder
3232
= file.label :usage_by_lms, TaskFile.human_attribute_name('usage_by_lms'), class: 'form-label w-auto me-2'
3333
.radio-switch
3434
= file.radio_button :usage_by_lms, 'edit', value: 'edit'
35-
= file.label :usage_by_lms_edit, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('common.button.edit'), class: 'radio-left small-radio radio-third' do
35+
= file.label :usage_by_lms_edit, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.edit'), class: 'radio-left small-radio radio-quarter' do
3636
span.fa-stack
3737
i.fa-solid.fa-pencil.fa-stack-1x.fa-2x
3838
= file.radio_button :usage_by_lms, 'display', value: 'display'
39-
= file.label :usage_by_lms_display, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('.display'), class: 'radio-right radio-left small-radio radio-third' do
39+
= file.label :usage_by_lms_display, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.display'), class: 'radio-right radio-left small-radio radio-quarter' do
4040
span.fa-stack
4141
i.fa-regular.fa-eye.fa-stack-1x.fa-2x
4242
= file.radio_button :usage_by_lms, 'download', value: 'download'
43-
= file.label :usage_by_lms_download, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('.download'), class: 'radio-right small-radio radio-third' do
43+
= file.label :usage_by_lms_download, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.download'), class: 'radio-right radio-left small-radio radio-quarter' do
4444
span.fa-stack
4545
i.fa-solid.fa-download.fa-stack-1x.fa-2x
4646
= file.radio_button :usage_by_lms, 'no_value', value: nil
47-
= file.label :usage_by_lms_download, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('.no_value'), class: 'radio-right small-radio radio-quarter' do
47+
= file.label :usage_by_lms_download, data: {'bs-toggle': 'tooltip', placement: 'bottom'}, title: t('.no_value'), class: 'radio-right small-radio radio-quarter' do
4848
span.fa-stack
4949
i.fa-solid.fa-ban.fa-stack-1x.fa-2x

0 commit comments

Comments
 (0)