2019-12-02 03:32:03 +00:00
<!DOCTYPE html>
< html >
2023-02-02 21:19:15 +00:00
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< title > Register - {{ SITE_NAME }}< / title >
< link rel = "icon" href = "{{ url_for('static', filename='img/favicon.png') }}" >
<!-- Tell the browser to be responsive to screen width -->
< meta content = "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name = "viewport" >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css" >
{% assets "css_login" -%}
< link rel = "stylesheet" href = "{{ ASSET_URL }}" >
{%- endassets %}
< / head >
2019-12-02 03:32:03 +00:00
2023-02-02 21:19:15 +00:00
< body class = "hold-transition register-page" >
< div class = "register-box" >
< div class = "card card-outline card-primary" >
< div class = "card-header text-center" >
< a href = "{{ url_for('index.index') }}" class = "h3" >
{% if SETTING.get('site_name') %}
{{ SITE_NAME }}
{% else %}
< b > PowerDNS< / b > -Admin
{% endif %}
< / a >
2019-12-02 03:32:03 +00:00
< / div >
2023-02-02 21:19:15 +00:00
< div class = "card-body" >
{% if error %}
2023-02-13 03:57:21 +00:00
< div class = "alert alert-danger alert-dismissible" >
< button type = "button" class = "close" data-dismiss = "alert" aria-hidden = "true" > × < / button >
{{ error }}
< / div >
2023-02-02 21:19:15 +00:00
{% endif %}
< p class = "login-box-msg" > Enter your personal details below< / p >
2023-02-17 22:25:11 +00:00
< form action = "{{ url_for('index.register') }}" method = "post" validator >
2023-02-02 21:19:15 +00:00
< input type = "hidden" name = "_csrf_token" value = "{{ csrf_token() }}" >
2023-02-13 03:57:21 +00:00
< div class = "form-group" >
2023-02-17 22:25:11 +00:00
< div class = "input-group" >
2023-02-13 03:57:21 +00:00
< div class = "input-group-prepend" >
< span class = "input-group-text" >
< i class = "fas fa-user" > < / i >
< / span >
2023-02-02 21:19:15 +00:00
< / div >
2023-02-13 03:57:21 +00:00
< input type = "text" class = "form-control {{ 'is-invalid' if 'firstname' in error_messages else '' }}" placeholder = "First Name" name = "firstname" id = "firstname" value = "{{ request.form.firstname }}" required >
{% if 'firstname' in error_messages %}
< div class = "invalid-feedback" >
2023-02-14 02:11:13 +00:00
< i class = "fas fa-exclamation-triangle" > < / i >
2023-02-13 03:57:21 +00:00
{{ error_messages['firstname'] }}
< / div >
{% endif %}
2023-02-02 21:19:15 +00:00
< / div >
< / div >
2023-02-13 03:57:21 +00:00
< div class = "form-group" >
2023-02-17 22:25:11 +00:00
< div class = "input-group" >
2023-02-13 03:57:21 +00:00
< div class = "input-group-prepend" >
< span class = "input-group-text" >
< i class = "fas fa-user" > < / i >
< / span >
2023-02-02 21:19:15 +00:00
< / div >
2023-02-13 03:57:21 +00:00
< input type = "text" class = "form-control {{ 'is-invalid' if 'lastname' in error_messages else '' }}" placeholder = "Last name" name = "lastname" id = "lastname" value = "{{ request.form.lastname }}" required >
{% if 'lastname' in error_messages %}
< div class = "invalid-feedback" >
2023-02-14 02:11:13 +00:00
< i class = "fas fa-exclamation-triangle" > < / i >
2023-02-13 03:57:21 +00:00
{{ error_messages['lastname'] }}
< / div >
{% endif %}
2023-02-02 21:19:15 +00:00
< / div >
< / div >
2023-02-13 03:57:21 +00:00
< div class = "form-group" >
2023-02-17 22:25:11 +00:00
< div class = "input-group" >
2023-02-13 03:57:21 +00:00
< div class = "input-group-prepend" >
< span class = "input-group-text" >
< i class = "fas fa-envelope" > < / i >
< / span >
2023-02-02 21:19:15 +00:00
< / div >
2023-02-13 03:57:21 +00:00
< input type = "email" class = "form-control {{ 'is-invalid' if 'email' in error_messages else '' }}" placeholder = "Email" name = "email" id = "email" value = "{{ request.form.email }}" required >
{% if 'email' in error_messages %}
< div class = "invalid-feedback" >
< i class = "fas fa-exclamation-triangle" > < / i >
{{ error_messages['email'] }}
< / div >
{% endif %}
2023-02-02 21:19:15 +00:00
< / div >
< / div >
< p class = "login-box-msg" > Enter your account details below< / p >
2023-02-13 03:57:21 +00:00
< div class = "form-group" >
2023-02-17 22:25:11 +00:00
< div class = "input-group" >
2023-02-13 03:57:21 +00:00
< div class = "input-group-prepend" >
< span class = "input-group-text" >
< i class = "fas fa-user" > < / i >
< / span >
2023-02-02 21:19:15 +00:00
< / div >
2023-02-13 03:57:21 +00:00
< input type = "text" class = "form-control {{ 'is-invalid' if 'username' in error_messages else '' }}" placeholder = "Username" name = "username" id = "username" value = "{{ request.form.username }}" required >
2023-02-14 02:11:13 +00:00
{% if 'username' in error_messages %}
2023-02-13 03:57:21 +00:00
< div class = "invalid-feedback" >
2023-02-14 02:11:13 +00:00
< i class = "fas fa-exclamation-triangle" > < / i >
2023-02-13 03:57:21 +00:00
{{ error_messages['username'] }}
< / div >
{% endif %}
2023-02-02 21:19:15 +00:00
< / div >
< / div >
2023-02-13 03:57:21 +00:00
< div class = "form-group" >
2023-02-17 22:25:11 +00:00
< div class = "input-group" >
2023-02-13 03:57:21 +00:00
< div class = "input-group-prepend" >
< span class = "input-group-text" >
< i class = "fas fa-lock" > < / i >
< / span >
2023-02-02 21:19:15 +00:00
< / div >
2023-02-13 03:57:21 +00:00
< input type = "password" class = "form-control {{ 'is-invalid' if 'password' in error_messages else '' }}" placeholder = "Password" id = "password" name = "password" required >
2023-02-14 02:11:13 +00:00
{% if 'password' in error_messages %}
2023-02-13 03:57:21 +00:00
< div class = "invalid-feedback" >
2023-02-14 02:11:13 +00:00
< i class = "fas fa-exclamation-triangle" > < / i >
2023-02-13 03:57:21 +00:00
{{ error_messages['password'] }}
< / div >
{% endif %}
2023-02-02 21:19:15 +00:00
< / div >
< / div >
2023-02-13 03:57:21 +00:00
< div class = "form-group" >
2023-02-17 22:25:11 +00:00
< div class = "input-group" >
2023-02-13 03:57:21 +00:00
< div class = "input-group-prepend" >
< span class = "input-group-text" >
< i class = "fas fa-lock" > < / i >
< / span >
2023-02-06 15:45:13 +00:00
< / div >
2023-02-13 03:57:21 +00:00
< input type = "password" class = "form-control {{ 'is-invalid' if 'rpassword' in error_messages else '' }}" placeholder = "Retype password" id = "rpassword" name = "rpassword" required >
{% if 'rpassword' in error_messages %}
< div class = "invalid-feedback" >
2023-02-14 02:11:13 +00:00
< i class = "fas fa-exclamation-triangle" > < / i >
2023-02-13 03:57:21 +00:00
{{ error_messages['rpassword'] }}
< / div >
{% endif %}
2023-02-06 15:45:13 +00:00
< / div >
2023-02-02 21:19:15 +00:00
< / div >
2023-02-13 03:57:21 +00:00
{% if captcha_enable %}
< p class = "login-box-msg" > Please complete the CAPTCHA below< / p >
2023-02-14 02:11:13 +00:00
< div class = "form-group" >
2023-02-13 03:57:21 +00:00
{{ captcha() }}
2023-02-17 22:25:11 +00:00
< div class = "input-group" >
2023-02-14 02:11:13 +00:00
< div class = "input-group-prepend" >
< span class = "input-group-text" >
< i class = "fas fa-shield-alt" > < / i >
< / span >
< / div >
< input type = "text" class = "form-control {{ 'is-invalid' if 'captcha_result' in error_messages else '' }}" placeholder = "CAPTCHA" id = "captcha" name = "captcha" required >
{% if 'captcha_result' in error_messages %}
< div class = "invalid-feedback" >
< i class = "fas fa-exclamation-triangle" > < / i >
{{ error_messages['captcha_result'] }}
< / div >
{% endif %}
2023-02-13 03:57:21 +00:00
< / div >
2023-02-02 21:19:15 +00:00
{% endif %}
2023-02-06 15:45:13 +00:00
2023-02-02 21:19:15 +00:00
< div class = "row" >
2023-02-14 02:11:13 +00:00
< div class = "d-flex justify-content-between mx-auto mt-3" >
< button type = "button" class = "btn btn-secondary" id = "button_back" > Back< / button >
2023-02-17 22:25:11 +00:00
< button type = "submit" class = "btn btn-primary btn-block mx-3" > Register< / button >
2023-02-02 21:19:15 +00:00
< / div >
2019-12-02 03:32:03 +00:00
< / div >
2023-02-02 21:19:15 +00:00
< / form >
< / div >
2023-02-13 03:57:21 +00:00
< div class = "login-box-footer" >
2023-02-02 21:19:15 +00:00
< center >
< p > Powered by < a href = "https://github.com/PowerDNS-Admin/PowerDNS-Admin" > PowerDNS-Admin< / a > < / p >
< / center >
< / div >
2019-12-02 03:32:03 +00:00
< / div >
2023-02-02 21:19:15 +00:00
{% assets "js_login" -%}
< script type = "text/javascript" src = "{{ ASSET_URL }}" > < / script >
{%- endassets %}
{% assets "js_validation" -%}
< script type = "text/javascript" src = "{{ ASSET_URL }}" > < / script >
{%- endassets %}
< script >
$(function () {
$('#button_back').click(function () {
window.location.href = '{{ url_for('index.login') }}';
})
});
< / script >
< / body >
2019-12-02 03:32:03 +00:00
< / html >