Class: Vcfb::ComponentsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/vcfb/components/components_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_button_componentObject



10
11
12
# File 'lib/generators/vcfb/components/components_generator.rb', line 10

def create_button_component
  directory "button", "#{destination}/button"
end

#create_check_box_componentObject



14
15
16
# File 'lib/generators/vcfb/components/components_generator.rb', line 14

def create_check_box_component
  directory "check_box", "#{destination}/check_box"
end

#create_collection_check_boxes_componentObject



18
19
20
# File 'lib/generators/vcfb/components/components_generator.rb', line 18

def create_collection_check_boxes_component
  directory "collection_check_boxes", "#{destination}/collection_check_boxes"
end

#create_collection_radio_buttons_componentObject



22
23
24
# File 'lib/generators/vcfb/components/components_generator.rb', line 22

def create_collection_radio_buttons_component
  directory "collection_radio_buttons", "#{destination}/collection_radio_buttons"
end

#create_collection_select_componentObject



26
27
28
# File 'lib/generators/vcfb/components/components_generator.rb', line 26

def create_collection_select_component
  directory "collection_select", "#{destination}/collection_select"
end

#create_color_field_componentObject



30
31
32
# File 'lib/generators/vcfb/components/components_generator.rb', line 30

def create_color_field_component
  directory "color_field", "#{destination}/color_field"
end

#create_date_field_componentObject



34
35
36
# File 'lib/generators/vcfb/components/components_generator.rb', line 34

def create_date_field_component
  directory "date_field", "#{destination}/date_field"
end

#create_date_select_componentObject



38
39
40
# File 'lib/generators/vcfb/components/components_generator.rb', line 38

def create_date_select_component
  directory "date_select", "#{destination}/date_select"
end

#create_datetime_field_componentObject



42
43
44
# File 'lib/generators/vcfb/components/components_generator.rb', line 42

def create_datetime_field_component
  directory "datetime_field", "#{destination}/datetime_field"
end

#create_datetime_select_componentObject



46
47
48
# File 'lib/generators/vcfb/components/components_generator.rb', line 46

def create_datetime_select_component
  directory "datetime_select", "#{destination}/datetime_select"
end

#create_email_field_componentObject



50
51
52
# File 'lib/generators/vcfb/components/components_generator.rb', line 50

def create_email_field_component
  directory "email_field", "#{destination}/email_field"
end

#create_file_field_componentObject



54
55
56
# File 'lib/generators/vcfb/components/components_generator.rb', line 54

def create_file_field_component
  directory "file_field", "#{destination}/file_field"
end

#create_form_componentObject



140
141
142
143
# File 'lib/generators/vcfb/components/components_generator.rb', line 140

def create_form_component
  copy_file "component.html.erb", "#{destination}/component.html.erb"
  template "component.rb.tt", "#{destination}/component.rb"
end

#create_grouped_collection_select_componentObject



58
59
60
# File 'lib/generators/vcfb/components/components_generator.rb', line 58

def create_grouped_collection_select_component
  directory "grouped_collection_select", "#{destination}/grouped_collection_select"
end

#create_label_componentObject



62
63
64
# File 'lib/generators/vcfb/components/components_generator.rb', line 62

def create_label_component
  directory "label", "#{destination}/label"
end

#create_month_field_componentObject



66
67
68
# File 'lib/generators/vcfb/components/components_generator.rb', line 66

def create_month_field_component
  directory "month_field", "#{destination}/month_field"
end

#create_number_field_componentObject



70
71
72
# File 'lib/generators/vcfb/components/components_generator.rb', line 70

def create_number_field_component
  directory "number_field", "#{destination}/number_field"
end

#create_password_field_componentObject



74
75
76
# File 'lib/generators/vcfb/components/components_generator.rb', line 74

def create_password_field_component
  directory "password_field", "#{destination}/password_field"
end

#create_radio_button_componentObject



78
79
80
# File 'lib/generators/vcfb/components/components_generator.rb', line 78

def create_radio_button_component
  directory "radio_button", "#{destination}/radio_button"
end

#create_range_field_componentObject



82
83
84
# File 'lib/generators/vcfb/components/components_generator.rb', line 82

def create_range_field_component
  directory "range_field", "#{destination}/range_field"
end

#create_rich_text_area_componentObject



86
87
88
# File 'lib/generators/vcfb/components/components_generator.rb', line 86

def create_rich_text_area_component
  directory "rich_text_area", "#{destination}/rich_text_area"
end

#create_search_field_componentObject



90
91
92
# File 'lib/generators/vcfb/components/components_generator.rb', line 90

def create_search_field_component
  directory "search_field", "#{destination}/search_field"
end

#create_select_componentObject



94
95
96
# File 'lib/generators/vcfb/components/components_generator.rb', line 94

def create_select_component
  directory "select", "#{destination}/select"
end

#create_submit_componentObject



98
99
100
# File 'lib/generators/vcfb/components/components_generator.rb', line 98

def create_submit_component
  directory "submit", "#{destination}/submit"
end

#create_telephone_field_componentObject



102
103
104
# File 'lib/generators/vcfb/components/components_generator.rb', line 102

def create_telephone_field_component
  directory "telephone_field", "#{destination}/telephone_field"
end

#create_text_area_componentObject



106
107
108
# File 'lib/generators/vcfb/components/components_generator.rb', line 106

def create_text_area_component
  directory "text_area", "#{destination}/text_area"
end

#create_text_field_componentObject



110
111
112
# File 'lib/generators/vcfb/components/components_generator.rb', line 110

def create_text_field_component
  directory "text_field", "#{destination}/text_field"
end

#create_time_field_componentObject



114
115
116
# File 'lib/generators/vcfb/components/components_generator.rb', line 114

def create_time_field_component
  directory "time_field", "#{destination}/time_field"
end

#create_time_select_componentObject



118
119
120
# File 'lib/generators/vcfb/components/components_generator.rb', line 118

def create_time_select_component
  directory "time_select", "#{destination}/time_select"
end

#create_time_zone_select_componentObject



122
123
124
# File 'lib/generators/vcfb/components/components_generator.rb', line 122

def create_time_zone_select_component
  directory "time_zone_select", "#{destination}/time_zone_select"
end

#create_url_field_componentObject



126
127
128
# File 'lib/generators/vcfb/components/components_generator.rb', line 126

def create_url_field_component
  directory "url_field", "#{destination}/url_field"
end

#create_week_field_componentObject



130
131
132
# File 'lib/generators/vcfb/components/components_generator.rb', line 130

def create_week_field_component
  directory "week_field", "#{destination}/week_field"
end

#create_weekday_select_componentObject



135
136
137
# File 'lib/generators/vcfb/components/components_generator.rb', line 135

def create_weekday_select_component
  directory "weekday_select", "#{destination}/weekday_select"
end