Sha256: ed5d5c4a94816c0ba76be2f450abdfc386e64bde3d85b1a64f1ee31e47d4ed51
Contents?: true
Size: 1.27 KB
Versions: 3
Compression:
Stored size: 1.27 KB
Contents
<%= decidim_form_for @form, url: question_path(current_question), html: { class: "form edit_question" } do |f| %> <%= render partial: "form", object: f %> <div class="button--double form-general-submit"> <%= f.submit t("questions.edit.update", scope: "decidim.admin"), class: "button", data: { disable_with: true } %> <% if can? :publish, current_question %> <% if current_question.published? %> <%= link_to t("actions.unpublish", scope: "decidim.admin"), question_publish_path(current_question), method: :delete, class: "button muted" %> <% else %> <%= link_to t("actions.publish", scope: "decidim.admin"), question_publish_path(current_question), method: :post, class: "button hollow" %> <% end %> <% end %> <% if can? :destroy, current_question %> <%= link_to t("decidim.admin.actions.destroy"), question_path(current_question), method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %> <% end %> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems