* Replaced Settings::General.email_addresses with Forem.email * Removed Settings::General.email_addresses remainders * Fixed schema.rb * Remove Settings::General.email_addresses record * Fixed label for default email
23 lines
1.3 KiB
Text
23 lines
1.3 KiB
Text
<div class="crayons-card p-6">
|
|
<div>
|
|
<h2 class="d-inline">Data Export</h2>
|
|
<button type="button" data-toggle="collapse" data-target="#data-export-row" class="crayons-btn float-right">Toggle</button>
|
|
</div>
|
|
<div class="crayons-card__body collapse" id="data-export-row">
|
|
<p>
|
|
You can export a user's data here. Currently we only support exporting a user's posts and comments.
|
|
</p>
|
|
<p>
|
|
You have the option of exporting to your admin account to send to the user, or exporting to the user directly.
|
|
</p>
|
|
<p>
|
|
Exporting the data to your admin account will send it to your contact
|
|
admin email (<%= ForemInstance.email %>),
|
|
and exporting to the user will send it to their email (<%= @user.email %>).
|
|
</p>
|
|
<div style="display: flex;">
|
|
<%= button_to "Export to Admin", export_data_admin_user_path(@user.id), data: { confirm: "Are you sure you want to export this user's content to the ADMIN?" }, class: "crayons-btn", params: { send_to_admin: true }, style: "margin-right: 8px;" %>
|
|
<%= button_to "Export to User", export_data_admin_user_path(@user.id), data: { confirm: "Are you sure you want to export this user's content to the USER?" }, class: "crayons-btn", params: { send_to_admin: false } %>
|
|
</div>
|
|
</div>
|
|
</div>
|