Sha256: 40ea88a72f13e5c7de13b0fa02518f52623d98eb3a51cbe5d17ad435145fd3cb

Contents?: true

Size: 1.9 KB

Versions: 10

Compression:

Stored size: 1.9 KB

Contents

<% add_decidim_page_title(t("decidim.forms.admin.questionnaires.edit.title")) %>

<% if templates_defined? && choose_template? %>
  <%= render partial: "decidim/templates/admin/questionnaire_templates/choose", locals: { target: questionnaire, form_title: t("decidim.forms.admin.questionnaires.edit.title") } %>
<% else %>

<div class="item_show__header">
  <h1 class="item_show__header-title">
    <%= edit_questionnaire_title %>

    <% unless template? questionnaire.questionnaire_for %>
      <% if allowed_to? :preview, :questionnaire %>
        <%= link_to t("preview", scope: "decidim.forms.admin.questionnaires.form"), public_url, class: "button button__sm button__secondary", target: :_blank, data: { "external-link": false } %>
      <% end %>
      <% if questionnaire.answers.any? %>
        <%= export_dropdown(current_component, questionnaire.id) if allowed_to? :export_answers, :questionnaire %>
        <% if allowed_to? :show, :questionnaire_answers %>
          <%= link_to t("actions.show", scope: "decidim.forms.admin.questionnaires"), questionnaire_participants_url, class: "button button__sm button__secondary new whitespace-nowrap" %>
        <% end %>
      <% else %>
        <button class="button button__sm button__secondary whitespace-nowrap" disabled><%= t("empty", scope: "decidim.forms.admin.questionnaires.answers") %></button>
      <% end %>
    <% end %>
  </h1>
</div>

<div class="item__edit item__edit-1col">
  <div class="item__edit-form">
    <%= decidim_form_for(@form, url: update_url, method: :put, html: { class: "form-defaults form edit_questionnaire" }) do |form| %>
        <%= render partial: "decidim/forms/admin/questionnaires/form", object: form %>
      <div class="item__edit-sticky">
        <div class="item__edit-sticky-container">
          <%= form.submit t(".save"), class: "button button__sm button__secondary" %>
        </div>
      </div>
    <% end %>
  </div>
</div>

<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-forms-0.29.1 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.28.4 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.29.0 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.28.3 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.29.0.rc4 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.29.0.rc3 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.29.0.rc2 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.29.0.rc1 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.28.2 app/views/decidim/forms/admin/questionnaires/edit.html.erb
decidim-forms-0.28.1 app/views/decidim/forms/admin/questionnaires/edit.html.erb