remove org settings form

This commit is contained in:
deflax 2024-04-05 12:50:57 +03:00
parent 98a57fabcd
commit 291fa5a1b5

View file

@ -2,28 +2,6 @@
{% block title %}Edit Profile{% endblock %}
{% block scripts %}
{{ super() }}
<script type="text/javascript">
$(document).ready(function() {
$("#firm").hide();
var chkbox = document.getElementById("{{ form.org_account.id }}");
if (chkbox.checked) {
$("#firm").show();
} else {
$("#firm)").hide();
}
});
$("#{{ form.org_account.id }}").click(function() {
if ($('#{{ form.org_account.id }}').is(':checked')) {
$("#firm").show(); }
else {
$("#firm").hide(); }
});
</script>
{% endblock %}
{% block page_content %}
<div class="row">
{% block sidebar %}
@ -86,43 +64,9 @@ $("#{{ form.org_account.id }}").click(function() {
{% endfor %}
</p>
<p>
{{ form.org_account }} {{ form.org_account.label }}<br />
</p>
</div>
</div>
<div id="firm">
<div class="panel panel-default">
<div class="panel-heading">Данни за юридическо лице</div>
<div class="panel-body">
<p>
{{ form.org_companyname.label }}<br />{{ form.org_companyname(style="width: 80%;") }}<br />
{% for error in form.org_companyname.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.org_regaddress.label }}<br />{{ form.org_regaddress(style="width: 80%;") }}<br />
{% for error in form.org_regaddress.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.org_responsible.label }}<br />{{ form.org_responsible(style="width: 80%;") }}<br />
{% for error in form.org_responsible.errors %}
{{ error }}<br />
{% endfor %}
</p>
<p>
{{ form.org_vatnum.label }}<br />{{ form.org_vatnum }}<br />
{% for error in form.org_vatnum.errors %}
{{ error }}<br />
{% endfor %}
</p>
</div>
</div>
</div>