mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
81 lines
3.0 KiB
HTML
81 lines
3.0 KiB
HTML
{% extends 'default.html' %}
|
|
{% set active_page = "custom_domain" %}
|
|
|
|
{% block title %}
|
|
Custom Domains
|
|
{% endblock %}
|
|
|
|
{% block head %}
|
|
{% endblock %}
|
|
|
|
{% block default_content %}
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1 class="h3"> Custom Domains
|
|
<a class="ml-3 text-info" style="font-size: 12px" data-toggle="collapse" href="#howtouse" role="button"
|
|
aria-expanded="false" aria-controls="collapseExample">
|
|
How to use <i class="fe fe-chevrons-down"></i>
|
|
</a>
|
|
</h1>
|
|
|
|
{% if not current_user.is_premium() %}
|
|
<div class="alert alert-danger" role="alert">
|
|
This feature is only available in premium plan.
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="alert alert-primary collapse" id="howtouse" role="alert">
|
|
If you own a domain, let's say <b>example.com</b>, you will be able to create aliases with this domain, for
|
|
example
|
|
contact@example.com, help@example.com, etc with SimpleLogin. <br>
|
|
You could also enable <b>catch-all</b> feature that allows you to create aliases on-the-fly.
|
|
</div>
|
|
|
|
<div class="row">
|
|
{% for custom_domain in custom_domains %}
|
|
<div class="col-12 col-lg-6">
|
|
<div class="card" style="">
|
|
<div class="card-body">
|
|
<h5 class="card-title">
|
|
<a href="{{ url_for('dashboard.domain_detail', custom_domain_id=custom_domain.id) }}">{{ custom_domain.domain }}</a>
|
|
{% if custom_domain.verified %}
|
|
<span class="cursor" data-toggle="tooltip" data-original-title="Domain Verified">✅</span>
|
|
{% else %}
|
|
<span class="cursor" data-toggle="tooltip" data-original-title="DNS Setup Needed">
|
|
<a href="{{ url_for('dashboard.domain_detail_dns', custom_domain_id=custom_domain.id) }}"
|
|
class="text-decoration-none">🚫
|
|
</a>
|
|
</span>
|
|
{% endif %}
|
|
</h5>
|
|
<h6 class="card-subtitle mb-2 text-muted">
|
|
Created {{ custom_domain.created_at | dt }} <br>
|
|
<span class="font-weight-bold">{{ custom_domain.nb_alias() }}</span> aliases.
|
|
</h6>
|
|
|
|
<a href="{{ url_for('dashboard.domain_detail', custom_domain_id=custom_domain.id) }}">Details ➡</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<form method="post">
|
|
{{ new_custom_domain_form.csrf_token }}
|
|
<input type="hidden" name="form-name" value="create">
|
|
|
|
<h2 class="h4">New Domain</h2>
|
|
|
|
{{ new_custom_domain_form.domain(class="form-control", placeholder="my-domain.com") }}
|
|
{{ render_field_errors(new_custom_domain_form.domain) }}
|
|
<div class="small-text">Please use full path domain, for ex <em>my-subdomain.my-domain.com</em></div>
|
|
|
|
<button class="btn btn-lg btn-success mt-2">Create</button>
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|