proxadmin/app/templates/uinvoice/profile.html

124 lines
3.7 KiB
HTML
Raw Normal View History

2017-03-08 13:53:09 -05:00
{% extends "base.html" %}
{% block title %}Edit Profile{% endblock %}
{% block page_content %}
<div class="page-header">
<h1>Edit Your Profile</h1>
</div>
<div class="container-fluid">
<br />
<div class="row">
{% block sidebar %}
{% include "uinvoice/_sidebar.html" %}
{% endblock %}
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">Данни на профила</div>
<div class="panel-body">
<form method="POST" action="{{ url_for('uinvoice.profile') }}">
<p>
{{ form.name.label }}<br />{{ form.name(size=42) }}<br />
{% for error in form.name.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.address.label }}<br /> {{ form.address(size=42) }}<br />
{% for error in form.address.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.city.label }}<br />{{ form.city(size=42) }}<br />
{% for error in form.city.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.postcode.label }}<br />{{ form.postcode(size=24) }}<br />
{% for error in form.postcode.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.country.label }}<br /> {{ form.country }}<br />
{% for error in form.country.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.phone.label }}<br /> {{ form.phone(size=42) }}<br />
{% for error in form.phone.errors %}
{{ error }}<br />
{% endfor %}
</p>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Данни за юридическо лице</div>
<div class="panel-body">
<p>
{{ form.org_responsible.label }}<br />{{ form.org_responsible(size=42) }}<br />
{% for error in form.org_responsible.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.org_bulstat.label }}<br />{{ form.org_bulstat(size=42) }}<br />
{% for error in form.org_bulstat.errors %}
{{ error }}<br />
{% endfor %}
<p>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Допълнителна защита на акаунта (2-Factor Authentication)</div>
<div class="panel-body">
<p>
<p>За да използвате тази функция изпълнете следните стъпки:<br />
1. Моля инсталирайте <a href="https://fedorahosted.org/freeotp/">FreeOTP</a> на вашият смартфон. <a href="https://itunes.apple.com/us/app/freeotp/id872559395">iTunes</a> | <a href="https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp">Google Play</a><br />
2. Сканирайте с помоща на приложението вашия QR код. Той е равносилен на допълнителна парола и не трябва да бъде показван или изгубван<br />
<input type="button" value="Покажи QR кода" onclick="window.open('{{ url_for('auth.qrcode') }}','popUpWindow','height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');"><br />
3. Маркирайте отметката и обновете профила. Не губете своя QR код. </p>
{{ form.twofactor }} {{ form.twofactor.label }}<br />
</p>
</div>
</div>
<p>
{{ form.csrf_token() }}
{{ form.submit }}
</p>
</div>
</div>
</div>
{% endblock %}