change image data format
This commit is contained in:
parent
27bf4f4269
commit
cdb9a3466a
@ -5,7 +5,7 @@ module Merged
|
|||||||
belongs_to :section , class_name: "Merged::Section"
|
belongs_to :section , class_name: "Merged::Section"
|
||||||
|
|
||||||
fields :id , :index , :section_id
|
fields :id , :index , :section_id
|
||||||
fields :text , :header, :image
|
fields :text , :header, :image_name
|
||||||
|
|
||||||
def move_up
|
def move_up
|
||||||
swap_index_with(next_card)
|
swap_index_with(next_card)
|
||||||
|
@ -5,7 +5,7 @@ module Merged
|
|||||||
|
|
||||||
fields :id , :page_id , :index
|
fields :id , :page_id , :index
|
||||||
fields :template , :card_template
|
fields :template , :card_template
|
||||||
fields :header, :text , :image
|
fields :header, :text , :image_name
|
||||||
|
|
||||||
def cards
|
def cards
|
||||||
Card.where(section_id: id).order(index: :asc)
|
Card.where(section_id: id).order(index: :asc)
|
||||||
|
@ -62,7 +62,7 @@ module Merged
|
|||||||
end
|
end
|
||||||
|
|
||||||
def image
|
def image
|
||||||
Image.find_by_name(@attributes[:image])
|
Image.find_by_name(self.image_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
:text: This is the standard two patient room. They are mostly towards the south,
|
:text: This is the standard two patient room. They are mostly towards the south,
|
||||||
so may have great, or too much light, depending on how you see it. The size is
|
so may have great, or too much light, depending on how you see it. The size is
|
||||||
about 3x5, cost 120e.
|
about 3x5, cost 120e.
|
||||||
:image: standard
|
:image_name: standard
|
||||||
:id: 6
|
:id: 6
|
||||||
:options:
|
:options:
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
@ -16,7 +16,7 @@
|
|||||||
:text: The old four patient rooms are basically twice the size as the small. They
|
:text: The old four patient rooms are basically twice the size as the small. They
|
||||||
are large enough to be shared. The size is about 30m2 and the cost 240e. Like
|
are large enough to be shared. The size is about 30m2 and the cost 240e. Like
|
||||||
the small rooms these are south facing, very light.
|
the small rooms these are south facing, very light.
|
||||||
:image: large
|
:image_name: large
|
||||||
:id: 7
|
:id: 7
|
||||||
:options:
|
:options:
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
@ -30,7 +30,7 @@
|
|||||||
:text: There are smaller, rooms, and some connected rooms. If your needs are small,
|
:text: There are smaller, rooms, and some connected rooms. If your needs are small,
|
||||||
of you rather have 2 small rooms than one, talk to us. These are mostly old admin
|
of you rather have 2 small rooms than one, talk to us. These are mostly old admin
|
||||||
rooms facing north, starting at 100e.
|
rooms facing north, starting at 100e.
|
||||||
:image: non_standard_room
|
:image_name: non_standard_room
|
||||||
:options:
|
:options:
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
color: white
|
color: white
|
||||||
@ -47,7 +47,7 @@
|
|||||||
background: solid_blue
|
background: solid_blue
|
||||||
color: white
|
color: white
|
||||||
align: left
|
align: left
|
||||||
:image: wet_space_room
|
:image_name: wet_space_room
|
||||||
:updated_at: *1
|
:updated_at: *1
|
||||||
:section_id: 11
|
:section_id: 11
|
||||||
:index: 4
|
:index: 4
|
||||||
@ -55,7 +55,7 @@
|
|||||||
:header: Common spaces
|
:header: Common spaces
|
||||||
:text: Each floor has it's own large common space. Also, Hub Feenix offers great
|
:text: Each floor has it's own large common space. Also, Hub Feenix offers great
|
||||||
public spaces, terraces, a cafe, co-working and maker spaces.
|
public spaces, terraces, a cafe, co-working and maker spaces.
|
||||||
:image: common_spaces
|
:image_name: common_spaces
|
||||||
:options:
|
:options:
|
||||||
background: solid_red
|
background: solid_red
|
||||||
align: center
|
align: center
|
||||||
@ -66,7 +66,7 @@
|
|||||||
:header: En suite and fold out
|
:header: En suite and fold out
|
||||||
:text: "Some rooms have attached (or shared) bathrooms. Also, you have the option
|
:text: "Some rooms have attached (or shared) bathrooms. Also, you have the option
|
||||||
of a fold-out bed to stay overnight.\r\nIt's like a home away from home."
|
of a fold-out bed to stay overnight.\r\nIt's like a home away from home."
|
||||||
:image: en_suite_studio
|
:image_name: en_suite_studio
|
||||||
:options:
|
:options:
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
align: center
|
align: center
|
||||||
@ -81,7 +81,7 @@
|
|||||||
:options:
|
:options:
|
||||||
background: solid_indigo
|
background: solid_indigo
|
||||||
align: center
|
align: center
|
||||||
:image: studio_kitchen
|
:image_name: studio_kitchen
|
||||||
:updated_at: *1
|
:updated_at: *1
|
||||||
:section_id: 12
|
:section_id: 12
|
||||||
:index: 3
|
:index: 3
|
||||||
@ -130,7 +130,7 @@
|
|||||||
- :id: 39
|
- :id: 39
|
||||||
:header: Cafe
|
:header: Cafe
|
||||||
:text: Our cafe serves vegan and vegetarian light food and great tea and coffee.
|
:text: Our cafe serves vegan and vegetarian light food and great tea and coffee.
|
||||||
:image: service_cafe
|
:image_name: service_cafe
|
||||||
:options:
|
:options:
|
||||||
background: light_gray
|
background: light_gray
|
||||||
color: solid_blue
|
color: solid_blue
|
||||||
@ -143,7 +143,7 @@
|
|||||||
:header: Treatments
|
:header: Treatments
|
||||||
:text: In our healery you can get professional help from osteopathy, shiatsu, acupuncture
|
:text: In our healery you can get professional help from osteopathy, shiatsu, acupuncture
|
||||||
and more.
|
and more.
|
||||||
:image: service_treatments
|
:image_name: service_treatments
|
||||||
:options:
|
:options:
|
||||||
background: light_gray
|
background: light_gray
|
||||||
color: solid_blue
|
color: solid_blue
|
||||||
@ -156,7 +156,7 @@
|
|||||||
:header: Boutique and Gallery
|
:header: Boutique and Gallery
|
||||||
:text: In our Boutique, you can find organic cosmetics, buy our great hub feenix
|
:text: In our Boutique, you can find organic cosmetics, buy our great hub feenix
|
||||||
teas to take home and find inspirational art from our artists.
|
teas to take home and find inspirational art from our artists.
|
||||||
:image: service_boutique
|
:image_name: service_boutique
|
||||||
:options:
|
:options:
|
||||||
background: light_gray
|
background: light_gray
|
||||||
color: solid_blue
|
color: solid_blue
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Several floors of the building are reserved for artist studios. Some creative
|
Several floors of the building are reserved for artist studios. Some creative
|
||||||
activities that require large equipment (presses, ovens) overlap strongly with
|
activities that require large equipment (presses, ovens) overlap strongly with
|
||||||
the Makers idea. Have a look at the rooms available and tell us what you need.
|
the Makers idea. Have a look at the rooms available and tell us what you need.
|
||||||
:image: studios
|
:image_name: studios
|
||||||
:options:
|
:options:
|
||||||
button_link: ''
|
button_link: ''
|
||||||
button_text: ''
|
button_text: ''
|
||||||
@ -22,7 +22,7 @@
|
|||||||
The rooms are in the old hospital wings, so most are old patient rooms, but there
|
The rooms are in the old hospital wings, so most are old patient rooms, but there
|
||||||
are plenty of others too. Prices do not include electricity or vat, but do include
|
are plenty of others too. Prices do not include electricity or vat, but do include
|
||||||
the use of common spaces, see below.
|
the use of common spaces, see below.
|
||||||
:image:
|
:image_name:
|
||||||
:id: 11
|
:id: 11
|
||||||
:card_template: card_full_image
|
:card_template: card_full_image
|
||||||
:options:
|
:options:
|
||||||
@ -66,7 +66,7 @@
|
|||||||
:header: HUB FEENIX
|
:header: HUB FEENIX
|
||||||
:text: Only an hour west of Helsinki, the Feenix rises from an old sanatorium. The
|
:text: Only an hour west of Helsinki, the Feenix rises from an old sanatorium. The
|
||||||
Hub is a place to create, learn and regenerate.
|
Hub is a place to create, learn and regenerate.
|
||||||
:image: house
|
:image_name: house
|
||||||
:id: 31
|
:id: 31
|
||||||
:options:
|
:options:
|
||||||
fixed: 'on'
|
fixed: 'on'
|
||||||
@ -91,7 +91,7 @@
|
|||||||
button_link: retreats
|
button_link: retreats
|
||||||
order: left
|
order: left
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
:image: retreats
|
:image_name: retreats
|
||||||
:id: 33
|
:id: 33
|
||||||
:updated_at: *2
|
:updated_at: *2
|
||||||
:page_id: 6
|
:page_id: 6
|
||||||
@ -106,7 +106,7 @@
|
|||||||
button_link: ''
|
button_link: ''
|
||||||
button_text: ''
|
button_text: ''
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
:image: studios
|
:image_name: studios
|
||||||
:id: 34
|
:id: 34
|
||||||
:updated_at: *2
|
:updated_at: *2
|
||||||
:page_id: 6
|
:page_id: 6
|
||||||
@ -121,7 +121,7 @@
|
|||||||
button_link: makerspace
|
button_link: makerspace
|
||||||
order: left
|
order: left
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
:image: makerspace
|
:image_name: makerspace
|
||||||
:id: 35
|
:id: 35
|
||||||
:updated_at: *2
|
:updated_at: *2
|
||||||
:page_id: 6
|
:page_id: 6
|
||||||
@ -132,7 +132,7 @@
|
|||||||
:text: We have various spaces for co-working and office rent. You can just come
|
:text: We have various spaces for co-working and office rent. You can just come
|
||||||
for the odd afternoon and work in a shared environment. Or rent your own office
|
for the odd afternoon and work in a shared environment. Or rent your own office
|
||||||
or even wing, from 15 to 500 m2.
|
or even wing, from 15 to 500 m2.
|
||||||
:image: coworking_office
|
:image_name: coworking_office
|
||||||
:options:
|
:options:
|
||||||
order: right
|
order: right
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
@ -151,7 +151,7 @@
|
|||||||
:text: We offer meeting rooms from 20-80 people, with breakout rooms for work-group
|
:text: We offer meeting rooms from 20-80 people, with breakout rooms for work-group
|
||||||
discussions. High-speed internet, video projectors, break-out rooms, all you need
|
discussions. High-speed internet, video projectors, break-out rooms, all you need
|
||||||
to organise your event. The cafe and surrounding nature make for ideal breaks.
|
to organise your event. The cafe and surrounding nature make for ideal breaks.
|
||||||
:image: conferences
|
:image_name: conferences
|
||||||
:options:
|
:options:
|
||||||
order: left
|
order: left
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
@ -171,7 +171,7 @@
|
|||||||
rooms are generally of a corridor, either with or without own toilet and shower.
|
rooms are generally of a corridor, either with or without own toilet and shower.
|
||||||
This can suit artists who either rent a studio or use co-working facilities. But
|
This can suit artists who either rent a studio or use co-working facilities. But
|
||||||
we also accept applications from people who are just between things.
|
we also accept applications from people who are just between things.
|
||||||
:image: residency_accomodation
|
:image_name: residency_accomodation
|
||||||
:options:
|
:options:
|
||||||
order: right
|
order: right
|
||||||
background: solid_blue
|
background: solid_blue
|
||||||
|
Loading…
Reference in New Issue
Block a user