cirandas.net

ref: master

plugins/custom_forms/lib/custom_forms_plugin.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class CustomFormsPlugin < Noosfero::Plugin

  def self.plugin_name
    "Custom Forms"
  end

  def self.plugin_description
    _("Enables the creation of forms.")
  end

  def stylesheet?
    true
  end

  def control_panel_buttons
    {title: _('Manage Forms'), icon: 'custom-forms', url: {profile: profile.identifier, controller: 'custom_forms_plugin_myprofile'}}
  end

end