2022-06-29 11:28:26 +02:00
{% extends "default.html" %}
2020-06-07 00:07:46 +02:00
{% set active_page = "dashboard" %}
2022-06-29 11:28:26 +02:00
{% block title %}Contact {{ contact.email }} - Alias {{ alias.email }}{% endblock %}
2020-06-07 00:07:46 +02:00
{% block default_content %}
< div class = "row" >
< div class = "col" >
2020-06-07 12:11:00 +02:00
< h1 class = "h3" >
< nav aria-label = "breadcrumb" >
< ol class = "breadcrumb" >
2022-06-29 11:28:26 +02:00
< li class = "breadcrumb-item" >
< a href = "{{ url_for('dashboard.alias_contact_manager', alias_id=alias.id) }}" > {{ alias.email }}< / a >
< / li >
< li class = "breadcrumb-item active" aria-current = "page" >
{{ contact.email }}
2020-06-07 12:11:00 +02:00
{% if contact.pgp_finger_print %}
2022-06-29 11:28:26 +02:00
< span class = "cursor"
data-toggle="tooltip"
data-original-title="PGP Enabled">🗝< / span >
2020-06-07 12:11:00 +02:00
{% endif %}
< / li >
< / ol >
< / nav >
2020-06-07 00:07:46 +02:00
< / h1 >
< div class = "card" >
< form method = "post" >
2022-12-02 15:13:38 +01:00
{{ pgp_form.csrf_token }}
2020-06-07 00:07:46 +02:00
< input type = "hidden" name = "form-name" value = "pgp" >
< div class = "card-body" >
< div class = "card-title" >
Pretty Good Privacy (PGP)
< div class = "small-text" >
By importing your contact PGP Public Key into SimpleLogin, all emails sent to
< b > {{ contact.email }}< / b > from your alias < b > {{ alias.email }}< / b >
are < b > encrypted< / b > .
< / div >
< / div >
{% if not current_user.is_premium() %}
2022-06-29 11:28:26 +02:00
< div class = "alert alert-danger" role = "alert" > This feature is only available in premium plan.< / div >
{% endif %}
2020-06-07 00:07:46 +02:00
< div class = "form-group" >
< label class = "form-label" > PGP Public Key< / label >
2022-06-29 11:28:26 +02:00
< textarea name = "pgp" { % if not current_user . is_premium ( ) % } disabled { % endif % } class = "form-control" rows = 10 id = "pgp-public-key" placeholder = "-----BEGIN PGP PUBLIC KEY BLOCK-----" > {{ contact.pgp_public_key or "" }}< / textarea >
2020-06-07 00:07:46 +02:00
< / div >
2022-06-29 11:28:26 +02:00
< button class = "btn btn-primary" name = "action" { % if not current_user . is_premium ( ) % }
disabled {% endif %} value="save">
Save
2020-06-07 00:07:46 +02:00
< / button >
{% if contact.pgp_finger_print %}
2022-06-29 11:28:26 +02:00
2020-06-07 00:07:46 +02:00
< button class = "btn btn-danger float-right" name = "action" value = "remove" > Remove< / button >
{% endif %}
< / div >
< / form >
< / div >
< / div >
< / div >
{% endblock %}
2022-02-24 18:28:30 +01:00
{% block script %}
2022-06-29 11:28:26 +02:00
< script src = "/static/js/utils/drag-drop-into-text.js" > < / script >
< script > enableDragDropForPGPKeys ( '#pgp-public-key' ) ; < / script >
2022-02-24 18:28:30 +01:00
{% endblock %}