-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate export user data into settings page
- Loading branch information
Showing
5 changed files
with
132 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@model SettingsModel | ||
@{ | ||
Layout = "_CardLayout"; | ||
ViewData["Title"] = CustomTranslator.Get("exportUserData.title"); | ||
} | ||
|
||
<h1 class="title has-text-centered">@CustomTranslator.Get("exportUserData.title")</h1> | ||
<div class="mb-2"> | ||
<div class="message is-info p-3"> | ||
@CustomTranslator.Get("exportUserData.info") | ||
</div> | ||
</div> | ||
<hr/> | ||
|
||
<form class="mb-3" action="/settings/[email protected]&[email protected]" method="post"> | ||
@Html.AntiForgeryToken() | ||
<div class="field"> | ||
<div class="columns is-mobile is-multiline"> | ||
<div class="column is-half"> | ||
<a class="button is-dark is-fullwidth" | ||
href="/[email protected]&[email protected]"> | ||
@CustomTranslator.Get("exportUserData.goBack") | ||
</a> | ||
</div> | ||
<div class="column is-half"> | ||
<button type="submit" class="button is-success is-fullwidth"> | ||
@CustomTranslator.Get("exportUserData.confirm") | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,23 @@ | |
</form> | ||
</div> | ||
} | ||
@if (Model.exportUserDataEnabled) { | ||
<div class="box p-5" id="export-data"> | ||
<h3 class="subtitle"> | ||
@CustomTranslator.Get("settings.exportData") | ||
</h3> | ||
<div class="mb-3"> | ||
<div class="field"> | ||
<div class="control"> | ||
<a href="settings/[email protected]&[email protected]" | ||
class="button is-info"> | ||
@CustomTranslator.Get("settings.exportDataButtonLabel") | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
<div class="box p-5" id="delete-account"> | ||
<h3 class="subtitle"> | ||
@CustomTranslator.Get("settings.deleteAccount") | ||
|