Sha256: 0e170b293e1d907c6896a545d0cbd3322e811545a0c6187afd3e7d367fc1eb4f
Contents?: true
Size: 777 Bytes
Versions: 6
Compression:
Stored size: 777 Bytes
Contents
# frozen_string_literal: true module Decidim module ReportingProposals class EditNoteModalCell < Decidim::ViewModel include ActionView::Helpers::FormOptionsHelper def show render if note end def note model end def proposal Decidim::Proposals::Proposal.find(model.decidim_proposal_id) end def note_body model.body end def modal_id options[:modal_id] || "editNoteModal" end def notes_form @notes_form = Decidim::Proposals::Admin::ProposalNoteForm.from_model(note) end def note_path Decidim::ReportingProposals::AdminEngine.routes.url_helpers.proposal_note_path(proposal_id: proposal.id, id: note) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems