Sha256: 9442cf09d2ccba9b67788fb12a483e21f9af3a01b9ba1b1aaaf6fd74771f9303
Contents?: true
Size: 707 Bytes
Versions: 7
Compression:
Stored size: 707 Bytes
Contents
<% templates = Decidim::Templates::Template.where( target: :proposal_answer, templatable: [current_organization, current_component] ).order(:templatable_id) %> <% if templates.any? %> <div class="row column"> <%= append_javascript_pack_tag "decidim_templates_admin" %> <select id="proposal_answer_template_chooser" data-locale="en" data-proposal="<%= proposal.id %>" data-url="<%= decidim_admin_templates.fetch_proposal_answer_templates_url %>"> <option value=""><%= t(".select_template") %></option> <% templates.each do |template| %> <option value="<%= template.id %>"><%= translated_attribute(template.name) %></option> <% end %> </select> </div> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems