Sha256: 038c19e5bf934baf714d9b239d8eff24b938c99134c86e62b715dfef6a574a04
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryDocuments class EditSuggestionNoteModalCell < Decidim::ViewModel include ActionView::Helpers::FormOptionsHelper include Decidim::ParticipatoryDocuments::AdminEngine.routes.url_helpers def show @suggestion = options[:suggestion] render if note end def note model end def note_body model.body end def modal_id options[:modal_id] || "editNoteModal" end def notes_form @notes_form = Decidim::ParticipatoryDocuments::Admin::SuggestionNoteForm.from_model(note) end def note_path document_suggestion_suggestion_note_path(suggestion_id: @suggestion.id, id: note) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems