Module: Gaku::StudentsHelper

Included in:
FrontendHelper
Defined in:
app/helpers/gaku/students_helper.rb

Instance Method Summary collapse

Instance Method Details

#edit_buttonObject



24
25
26
# File 'app/helpers/gaku/students_helper.rb', line 24

def edit_button
   :span, nil, class: 'glyphicon glyphicon-pencil'
end

#guardian_iconObject



20
21
22
# File 'app/helpers/gaku/students_helper.rb', line 20

def guardian_icon
   :span, nil, class: 'glyphicon glyphicon-user'
end

#name_labelObject



16
17
18
# File 'app/helpers/gaku/students_helper.rb', line 16

def name_label
  t(:name) + ' (' + t(:name) + ')'
end

#name_reading_labelObject



8
9
10
# File 'app/helpers/gaku/students_helper.rb', line 8

def name_reading_label
  t(:phonetic_reading) + ' (' + t(:name) + ')'
end

#surname_labelObject



12
13
14
# File 'app/helpers/gaku/students_helper.rb', line 12

def surname_label
  t(:name) + ' (' + t(:surname) + ')'
end

#surname_reading_labelObject



4
5
6
# File 'app/helpers/gaku/students_helper.rb', line 4

def surname_reading_label
  t(:phonetic_reading) + ' (' + t(:surname) + ')'
end