Sha256: 979589a8f6e5769c8084645e29581341b1de3bf0913c5aa60a790d3beb99adf8

Contents?: true

Size: 1.29 KB

Versions: 10

Compression:

Stored size: 1.29 KB

Contents

<% add_decidim_page_title(t(".title")) %>
<div class="item_show__header">
  <h1 class="item_show__header-title">
    <%= t(".title") %>
  </h1>
</div>
<div class="item__edit item__edit-1col">
  <div class="item__edit-form">
    <%= decidim_form_for(@form, url: questionnaire_template_path, html: { class: "form form-defaults edit_questionnaire_template" }) do |f| %>
      <%= render partial: "form", object: f %>
      <div class="item__edit-sticky">
        <div class="item__edit-sticky-container">
          <%= f.submit t("save", scope: "decidim.templates.admin.block_user_templates.form"), class: "button button__sm button__secondary" %>
        </div>
      </div>
    <% end %>

    <div class="card mt-4">
      <div class="card-divider">
        <h2 class="card-title"><%= t(".questionnaire") %>
          <%= link_to t(".edit"), edit_questionnaire_path(template), class: "button button__sm button__secondary" %>
        </h2>
      </div>

      <div class="card-section questionnaire-template-preview">
        <% if template.templatable.questions.any? %>
          <%= render partial: "preview", locals: { questionnaire: template.templatable } %>
        <% else %>
          <div class="row columns pb-4">
            <%= t(".empty") %>
          </div>
        <% end %>
      </div>
    </div>
  </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

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