Class: Decidim::NavigationMaps::AreaForm

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
app/forms/decidim/navigation_maps/area_form.rb

Overview

A form object used to configure the blueprint content block from the admin panel.

Instance Method Summary collapse

Instance Method Details

#colorObject



28
29
30
31
32
33
34
# File 'app/forms/decidim/navigation_maps/area_form.rb', line 28

def color
  return "#2262cc" if super.blank?

  return "##{super}" unless super.match?(/^#/)

  super
end

#no_popupObject



22
23
24
25
26
# File 'app/forms/decidim/navigation_maps/area_form.rb', line 22

def no_popup
  return link_type == "direct" unless super

  super.to_i.nonzero?
end