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.26.1 app/views/decidim/account/delete.html.erb
decidim-core-0.26.0 app/views/decidim/account/delete.html.erb
decidim-core-0.26.0.rc2 app/views/decidim/account/delete.html.erb
decidim-core-0.26.0.rc1 app/views/decidim/account/delete.html.erb
decidim-core-0.25.2 app/views/decidim/account/delete.html.erb
decidim-core-0.25.1 app/views/decidim/account/delete.html.erb
decidim-core-0.25.0 app/views/decidim/account/delete.html.erb
decidim-core-0.25.0.rc4 app/views/decidim/account/delete.html.erb
decidim-core-0.25.0.rc3 app/views/decidim/account/delete.html.erb
decidim-core-0.25.0.rc2 app/views/decidim/account/delete.html.erb
decidim-core-0.25.0.rc1 app/views/decidim/account/delete.html.erb
decidim-core-0.24.3 app/views/decidim/account/delete.html.erb
decidim-core-0.23.6 app/views/decidim/account/delete.html.erb
decidim-core-0.24.2 app/views/decidim/account/delete.html.erb
decidim-core-0.23.5 app/views/decidim/account/delete.html.erb
decidim-core-0.24.1 app/views/decidim/account/delete.html.erb
decidim-core-0.24.0 app/views/decidim/account/delete.html.erb
decidim-core-0.24.0.rc2 app/views/decidim/account/delete.html.erb
decidim-core-0.23.4 app/views/decidim/account/delete.html.erb
decidim-core-0.24.0.rc1 app/views/decidim/account/delete.html.erb