Module: Gaku::StudentsHelper
- Included in:
- FrontendHelper
- Defined in:
- app/helpers/gaku/students_helper.rb
Instance Method Summary collapse
- #edit_button ⇒ Object
- #guardian_icon ⇒ Object
- #name_label ⇒ Object
- #name_reading_label ⇒ Object
- #surname_label ⇒ Object
- #surname_reading_label ⇒ Object
Instance Method Details
#edit_button ⇒ Object
24 25 26 |
# File 'app/helpers/gaku/students_helper.rb', line 24 def content_tag :span, nil, class: 'glyphicon glyphicon-pencil' end |
#guardian_icon ⇒ Object
20 21 22 |
# File 'app/helpers/gaku/students_helper.rb', line 20 def guardian_icon content_tag :span, nil, class: 'glyphicon glyphicon-user' end |
#name_label ⇒ Object
16 17 18 |
# File 'app/helpers/gaku/students_helper.rb', line 16 def name_label t(:name) + ' (' + t(:name) + ')' end |
#name_reading_label ⇒ Object
8 9 10 |
# File 'app/helpers/gaku/students_helper.rb', line 8 def name_reading_label t(:phonetic_reading) + ' (' + t(:name) + ')' end |
#surname_label ⇒ Object
12 13 14 |
# File 'app/helpers/gaku/students_helper.rb', line 12 def surname_label t(:name) + ' (' + t(:surname) + ')' end |
#surname_reading_label ⇒ Object
4 5 6 |
# File 'app/helpers/gaku/students_helper.rb', line 4 def surname_reading_label t(:phonetic_reading) + ' (' + t(:surname) + ')' end |