Class: App::Views::InstanceEdit

Inherits:
Layout
  • Object
show all
Defined in:
app/views/instance_edit.rb

Instance Method Summary collapse

Methods inherited from Layout

#page_title, #selected_item

Methods included from App::ViewHelpers

#add_book_button, #admin, #admin?, #app_name, #base_url, #book_permitted, #count_instances, #external_link_glyph, #flag_modal_button, #flags, #get_instances_per_page, #instance_permitted, #instances_by_names, #javascripts, #json_file, #logged_in, #map_height, #metadata, #not_empty, #place_permitted, #places, #rendered_flash, #stylesheets, #user_name

Instance Method Details

#book_slugObject


38
39
40
# File 'app/views/instance_edit.rb', line 38

def book_slug
  @book.slug
end

#book_titleObject


34
35
36
# File 'app/views/instance_edit.rb', line 34

def book_title
  @book.title
end

#form_buttonObject


6
7
8
# File 'app/views/instance_edit.rb', line 6

def form_button
  "Edit saved instance"
end

#form_sourceObject


54
55
56
# File 'app/views/instance_edit.rb', line 54

def form_source
  "modal"
end

#idObject


26
27
28
# File 'app/views/instance_edit.rb', line 26

def id
  @instance.id
end

#nicknamesObject


50
51
52
# File 'app/views/instance_edit.rb', line 50

def nicknames
  @nicknames
end

#noteObject


58
59
60
# File 'app/views/instance_edit.rb', line 58

def note
  @instance.note
end

#object_id_for_flagObject


62
63
64
# File 'app/views/instance_edit.rb', line 62

def object_id_for_flag
  @instance.id
end

#pageObject


10
11
12
# File 'app/views/instance_edit.rb', line 10

def page
  @instance.page
end

#place_nameObject


14
15
16
# File 'app/views/instance_edit.rb', line 14

def place_name
  @instance.place.name
end

#place_name_in_textObject


18
19
20
# File 'app/views/instance_edit.rb', line 18

def place_name_in_text
  @instance.text
end

#sequenceObject


22
23
24
# File 'app/views/instance_edit.rb', line 22

def sequence
  @instance.sequence
end

#specialObject


30
31
32
# File 'app/views/instance_edit.rb', line 30

def special
  @instance.special
end

#special_fieldObject


42
43
44
# File 'app/views/instance_edit.rb', line 42

def special_field
  @book.special.field unless @book.special.nil?
end

#special_help_textObject


46
47
48
# File 'app/views/instance_edit.rb', line 46

def special_help_text
  @book.special.help_text unless @book.special.nil?
end

#typeObject


66
67
68
# File 'app/views/instance_edit.rb', line 66

def type
  "instance"
end