Skip to content

Commit

Permalink
Remove fields from invoice form
Browse files Browse the repository at this point in the history
  • Loading branch information
sarias-eb committed Jun 17, 2020
1 parent f0e35a2 commit 8944e17
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions templates/invoices_app/invoices_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ <h5 class="alert alert-danger">{{ err }}</h5>
<p class="text-center py-4 h3">{{taxpayer.business_name}} > {% trans "Upload Invoice" %}</p>
{% endif %}
</div>
</div>
<form id="invoiceForm" method="post" class="form-row" enctype="multipart/form-data">
<div class="col-md-2">
</div>
<div class="col-md-10 align-self-center">
<div class="row">
<div class="form-group col-md-6">
<div class="col">
<div class="d-flex justify-content-center">
<div class="form-group col-4">
{{ form.invoice_number.label_tag }}
{{ form.invoice_number }}
<small class="text-danger">
Expand All @@ -46,7 +45,7 @@ <h5 class="alert alert-danger">{{ err }}</h5>
<p class="help">{{ form.invoice_number.help_text|safe }}</p>
{% endif %}
</div>
<div class="form-group col-md-5">
<div class="form-group col-4">
{{ form.invoice_date.label_tag }} {{ form.invoice_date }}
<small class="text-danger">
{{ form.invoice_date.errors }}
Expand All @@ -56,8 +55,8 @@ <h5 class="alert alert-danger">{{ err }}</h5>
{% endif %}
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
<div class="d-flex justify-content-center">
<div class="form-group col-5">
{{ form.po_number.label_tag }}
<a data-toggle="tooltip" data-placement="right" title="{% trans 'Get the Purchase Order Number for your invoice from your contact/buyer at Eventbrite' %}">
<i class="fas fa-info-circle"></i>
Expand All @@ -67,7 +66,7 @@ <h5 class="alert alert-danger">{{ err }}</h5>
{{ form.po_number.errors }}
</small>
</div>
<div class="form-group col-md-6">
<div class="form-group col-3">
<label for="eb-entity">
{% trans "Eventbrite entity" %}
<a data-toggle="tooltip" data-placement="right" title="{% trans 'Eventbrite company to which you bill' %}">
Expand All @@ -81,7 +80,7 @@ <h5 class="alert alert-danger">{{ err }}</h5>
</select>
</div>
{% if user.is_AP%}
<div class="form-group col-md-5">
<div class="form-group col">
{{ form.workday_id.label_tag }} {{ form.workday_id }}
<small class="text-danger">
{{ form.workday_id.errors }}
Expand All @@ -92,8 +91,8 @@ <h5 class="alert alert-danger">{{ err }}</h5>
</div>
{% endif %}
</div>
<div class="row">
<div class="form-group col-md-2">
<div class="d-flex justify-content-center">
<div class="form-group col-4">
{{ form.currency.label_tag }} {{ form.currency }}
<small class="text-danger">
{{ form.currency.errors }}
Expand All @@ -102,7 +101,7 @@ <h5 class="alert alert-danger">{{ err }}</h5>
<p class="help">{{ form.currency.help_text|safe }}</p>
{% endif %}
</div>
<div class="form-group col-md-3">
<!--<div class="form-group col-md-3">
{{ form.net_amount.label_tag }}
{{ form.net_amount }}
<small class="text-danger">
Expand All @@ -120,8 +119,8 @@ <h5 class="alert alert-danger">{{ err }}</h5>
{% if form.vat.help_text %}
<p class="help">{{ form.vat.help_text|safe }}</p>
{% endif %}
</div>
<div class="form-group col-md-3">
</div> -->
<div class="form-group col-4">
{{ form.total_amount.label_tag }} {{ form.total_amount }}
<small class="text-danger">
{{ form.total_amount.errors }}
Expand Down

0 comments on commit 8944e17

Please sign in to comment.