- main_toolbar do |t|
  = t.edit resource

= main_informations attachment: true do
  = attributes_list do |l|
    - l.attribute :number
    - l.attribute :reference_number
    - l.attribute :sensor, url: true
    - l.attribute :product, url: true
    - l.attribute :sampler, url: true
    - l.attribute :sampled_at
    - l.attribute :analyser, url: true
    - l.attribute :analysed_at

  - if resource.geolocation
    :ruby
      data_product = []
      product = resource.product
      if product.shape
        data_product << {name: product.name, shape: product.shape}
      end
    = visualization do |v|
      - v.serie :data, [{name: resource.number, shape: resource.geolocation}]
      - if data_product.any?
        - v.serie :data_product, data_product
        - v.categories :activity, :data_product
      - v.path "#{resource.number}", :data
      - v.control :zoom
      - v.control :scale
      - v.control :fullscreen
      - v.control :layer_selector

= cobbles do |c|

  - c.cobble :items do
    = cobble_list :items


- main_toolbar do |t|
  = t.edit resource

= main_informations attachment: true do
  = attributes_list do |l|
    - l.attribute :number
    - l.attribute :reference_number
    - l.attribute :sensor, url: true
    - l.attribute :product, url: true
    - l.attribute :sampler, url: true
    - l.attribute :sampled_at
    - l.attribute :analyser, url: true
    - l.attribute :analysed_at

  - if resource.geolocation
    :ruby
      data_product = []
      product = resource.product
      if product && product.shape
        data_product << {name: product.name, shape: product.shape}
      end
    = visualization do |v|
      - v.serie :data, [{name: resource.number, shape: resource.geolocation}]
      - if data_product.any?
        - v.serie :data_product, data_product
        - v.categories :activity, :data_product
      - v.path "#{resource.number}", :data
      - v.control :zoom
      - v.control :scale
      - v.control :fullscreen
      - v.control :layer_selector

= cobbles do |c|

  - c.cobble :items do
    = cobble_list :items


Fix missing test on analysis view.
Fix missing test on analysis view.
