Module: Decidim::ExtraUserFields::Admin::ApplicationHelper
- Defined in:
- app/helpers/decidim/extra_user_fields/admin/application_helper.rb
Overview
Custom helpers, scoped to the meetings admin engine.
Instance Method Summary collapse
Instance Method Details
#extra_user_fields_export_users_dropdown ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/helpers/decidim/extra_user_fields/admin/application_helper.rb', line 9 def extra_user_fields_export_users_dropdown content_tag(:ul, class: "vertical menu add-components") do Decidim::ExtraUserFields::AdminEngine::DEFAULT_EXPORT_FORMATS.map do |format| content_tag(:li, class: "exports--format--#{format.downcase} export--users") do link_to( t("decidim.admin.exports.export_as", name: t("decidim.extra_user_fields.admin.exports.users"), export_format: format.upcase), AdminEngine.routes.url_helpers.extra_user_fields_export_users_path(format: format) ) end end.join.html_safe end end |