Sha256: 7f0adb5c876e5db6958d29adeb63df106d7dcf3098525045540ae45e0a0e63d4

Contents?: true

Size: 1.41 KB

Versions: 46

Compression:

Stored size: 1.41 KB

Contents

<% add_decidim_page_title(t("delete_my_account", scope: "layouts.decidim.user_profile")) %>
<% content_for(:subtitle) { t("delete_my_account", scope: "layouts.decidim.user_profile") } %>

<div class="row">
  <div class="columns large-8 end">
    <div class="callout alert">
      <p><%= t(".alert") %></p>
    </div>
    <p><%= t(".explanation") %></p>
    <%= decidim_form_for(@form, url: account_path, method: :delete, namespace: "delete_user", html: { class: "user-form delete-account" }) do |f| %>
      <div>
        <label>
          <span class="user-form__label"><%= t("activemodel.attributes.account.delete_reason") %></span>
          <%= f.text_area :delete_reason, rows: 2, label: false %>
        </label>
      </div>
      <button class="button open-modal-button"><%= t(".confirm.title") %></button>
    <% end %>
    <div class="tiny reveal" id="deleteConfirm" data-reveal>
      <%= decidim_form_for(@form, url: account_path, method: :delete, namespace: "delete_user_confirm", html: { class: "user-form delete-account-modal" }) do |f| %>
        <%= f.hidden_field :delete_reason %>

        <p><%= t(".confirm.question") %></p>

        <input type="submit" class="button expanded" value="<%= t(".confirm.ok") %>">

        <button class="close-button" data-close aria-label="<%= t(".confirm.close") %>" type="button">
          <span aria-hidden="true">&times;</span>
        </button>
      <% end %>
    </div>
  </div>
</div>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/views/decidim/account/delete.html.erb
decidim-core-0.27.8 app/views/decidim/account/delete.html.erb
decidim-core-0.27.7 app/views/decidim/account/delete.html.erb
decidim-core-0.27.6 app/views/decidim/account/delete.html.erb
decidim-core-0.26.10 app/views/decidim/account/delete.html.erb
decidim-core-0.26.9 app/views/decidim/account/delete.html.erb
decidim-core-0.27.5 app/views/decidim/account/delete.html.erb
decidim-core-0.26.8 app/views/decidim/account/delete.html.erb
decidim-core-0.27.4 app/views/decidim/account/delete.html.erb
decidim-core-0.27.3 app/views/decidim/account/delete.html.erb
decidim-core-0.26.7 app/views/decidim/account/delete.html.erb
decidim-core-0.26.5 app/views/decidim/account/delete.html.erb
decidim-core-0.27.2 app/views/decidim/account/delete.html.erb
decidim-core-0.27.1 app/views/decidim/account/delete.html.erb
decidim-core-0.26.4 app/views/decidim/account/delete.html.erb
decidim-core-0.27.0 app/views/decidim/account/delete.html.erb
decidim-core-0.26.3 app/views/decidim/account/delete.html.erb
decidim-core-0.27.0.rc2 app/views/decidim/account/delete.html.erb
decidim-core-0.27.0.rc1 app/views/decidim/account/delete.html.erb
decidim-core-0.26.2 app/views/decidim/account/delete.html.erb