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

Version Path
decidim-templates-0.28.4 app/views/decidim/templates/admin/proposal_answer_templates/_template_chooser.html.erb
decidim-templates-0.28.3 app/views/decidim/templates/admin/proposal_answer_templates/_template_chooser.html.erb
decidim-templates-0.28.2 app/views/decidim/templates/admin/proposal_answer_templates/_template_chooser.html.erb
decidim-templates-0.28.1 app/views/decidim/templates/admin/proposal_answer_templates/_template_chooser.html.erb
decidim-templates-0.28.0 app/views/decidim/templates/admin/proposal_answer_templates/_template_chooser.html.erb
decidim-templates-0.28.0.rc5 app/views/decidim/templates/admin/proposal_answer_templates/_template_chooser.html.erb
decidim-templates-0.28.0.rc4 app/views/decidim/templates/admin/proposal_answer_templates/_template_chooser.html.erb