|
1 | 1 | %section.location#locations{:class => section_enabled_class(@team.has_locations?)}
|
2 |
| - -if !@team.has_locations? |
3 |
| - -inactive_box('#locations', "Office Locations") do |
4 |
| - =nil |
| 2 | + - if !@team.has_locations? |
| 3 | + - inactive_box('#locations', "Office Locations") do |
| 4 | + = nil |
5 | 5 |
|
6 |
| - -if can_edit? |
7 |
| - -panel_form_for_section('#locations', 'Where do you have offices?') do |f| |
| 6 | + - if can_edit? |
| 7 | + - panel_form_for_section('#locations', 'Where do you have offices?') do |f| |
8 | 8 | %aside
|
9 |
| - -admin_hint do |
| 9 | + - admin_hint do |
10 | 10 | Specify points of interest (e.g. restaurants, bars, public transportation) and other amenities and highlights for each office location
|
11 | 11 | .form-inputs
|
12 | 12 | %fieldset
|
13 |
| - .add-map-location=link_to_add_fields('Add new location', f, :team_locations) |
| 13 | + .add-map-location= link_to_add_fields('Add new location', f, :locations) |
14 | 14 | -if @team.has_locations?
|
15 | 15 | .location-list
|
16 |
| - =f.fields_for :team_locations do |fields| |
| 16 | + = f.fields_for :team_locations do |fields| |
17 | 17 | .item
|
18 |
| - =fields.hidden_field :id |
| 18 | + = fields.hidden_field :id |
19 | 19 | %fieldset
|
20 |
| - =fields.label :name, 'Location Name' |
21 |
| - =fields.text_field :name |
| 20 | + = fields.label :name, 'Location Name' |
| 21 | + = fields.text_field :name |
22 | 22 | %fieldset
|
23 |
| - =fields.label :description, 'Highlights for this office location' |
24 |
| - =fields.text_area :description |
| 23 | + = fields.label :description, 'Highlights for this office location' |
| 24 | + = fields.text_area :description |
25 | 25 | %fieldset
|
26 |
| - =fields.label :address, 'Full street address of this office location' |
27 |
| - =fields.text_field :address |
| 26 | + = fields.label :address, 'Full street address of this office location' |
| 27 | + = fields.text_field :address |
28 | 28 | %fieldset.remove-location
|
29 |
| - =fields.label :_destroy, "Remove Location" |
30 |
| - =fields.check_box :_destroy |
| 29 | + = fields.label :_destroy, "Remove Location" |
| 30 | + = fields.check_box :_destroy |
31 | 31 |
|
32 | 32 | #location-map
|
33 | 33 | .location-details
|
34 | 34 | .selected
|
35 |
| - %h3=@team.primary_address_name |
36 |
| - %p.address=@team.primary_address |
37 |
| - %p.description=@team.primary_address_description |
| 35 | + %h3= @team.primary_address_name |
| 36 | + %p.address= @team.primary_address |
| 37 | + %p.description= @team.primary_address_description |
38 | 38 | %ul.poi
|
39 |
| - -@team.primary_points_of_interest.each do |point| |
40 |
| - %li=point |
| 39 | + - @team.primary_points_of_interest.each do |point| |
| 40 | + %li= point |
41 | 41 | -if @team.locations.size > 1
|
42 | 42 | %ul.locations.cf
|
43 |
| - -@team.locations.each do |location| |
| 43 | + - @team.locations.each do |location| |
44 | 44 | %li.team_location
|
45 | 45 | %a.mapLocation{:href => '#position'}
|
46 |
| - .name=location.name |
47 |
| - .address.hide=location.address || location.name |
48 |
| - .description.hide=location.description |
| 46 | + .name= location.name |
| 47 | + .address.hide= location.address || location.name |
| 48 | + .description.hide= location.description |
49 | 49 | %ul.poi
|
50 |
| - -location.points_of_interest.each do |point| |
51 |
| - %li=point |
| 50 | + - location.points_of_interest.each do |point| |
| 51 | + %li= point |
0 commit comments