Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to delete account for users #95

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions resources/lang/nl/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'update_success' => 'Uw profiel is bijgewerkt.',
'avatar_delete_success' => 'Uw profielfoto is verwijderd.',
'avatar_delete_fail' => 'Er is iets misgegaan.',
'delete_account' => 'Account verwijderen',
'delete_account_text' => 'Druk op de knop hieronder om je account te verwijderen. We zullen alle data gekoppeld aan je account verwijderen. Acties die je hebt aangemeld blijven staan.',
],
'security' => [
'incorrect_current_password' => 'Het huidige wachtwoord is incorrect.',
Expand Down
3 changes: 3 additions & 0 deletions resources/views/assets/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@
&.gray {
@apply flex justify-center px-4 py-2 text-sm font-medium cursor-pointer text-gray-600 transition duration-150 ease-in-out border border-transparent rounded-md bg-gray-200 hover:bg-gray-300;
}
&.danger {
@apply flex justify-center px-4 py-2 text-sm font-medium cursor-pointer text-white transition duration-150 ease-in-out border border-transparent rounded-md bg-red-600 hover:bg-red-500;
}
}
}

Expand Down
7 changes: 7 additions & 0 deletions resources/views/settings/partials/profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
{{ csrf_field() }}
</template>
</Profile>
<div class="relative flex flex-col p-6 text-gray-800">
<h5>{{__('settings.profile.delete_account')}}</h5>
<p>{{__('settings.profile.delete_account_text')}}</p>
<a class="mt-5" href="/acties">
<button class="danger">{{__('settings.profile.delete_account')}}</button>
</a>
</div>
</div>

@push('scripts')
Expand Down