Module: UnitsHelper
- Defined in:
- app/helpers/units_helper.rb
Class Method Summary collapse
Class Method Details
.get_unit_types ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/units_helper.rb', line 4 def self.get_unit_types { '-1-1' => '', '100' => 'Efficiency', '200' => '1 Bedroom', '300' => '2 Bedrooms', '400' => '3 Bedrooms', '500' => '4 Bedrooms', '600' => '5 Bedrooms', '700' => '6 Bedrooms' } end |
.show_nav_list(property_id, building_id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'app/helpers/units_helper.rb', line 17 def self.show_nav_list(property_id, building_id) { 1 => { label: 'Properties', url: '/admin/properties/' }, 2 => { url: '/admin/properties/' + property_id.to_s, label: 'Buildings' }, 3 => { url: '/admin/buildings/' + building_id.to_s, label: 'Units' }, 4 => { label: 'New Unit' } } end |