Skip to content

Commit

Permalink
Merge pull request #49 from Voltz-Corp/main
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
viniciusdandrade authored Jun 10, 2024
2 parents 21b4c3a + 0322f66 commit 117c04c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app_client/templates/email/emailtemplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h2>Olá, {{name}}</h2>
{% endif %}
{% if budget %}
<div>Orçamento definido: <strong id="budget">R$ {{budget}},00</strong></div>
<a href="https://voltz-eceeltec.azurewebsites.net/cliente/visualizar/{order_id}/">Clique aqui para aceitar ou recusar o orçamento</a>
<a href="https://voltz-eceeltec.azurewebsites.net/cliente/visualizar/{{order_id}}/">Clique aqui para aceitar ou recusar o orçamento</a>
{% endif %}
</div>
<p class="footer">Eceel-Tec © 2024</p>
Expand Down
9 changes: 8 additions & 1 deletion app_company/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,20 @@ def post(self, request, pk):
class ServiceOrderDetailView(View):
def get(self, request, pk):
previous_url = request.META.get('HTTP_REFERER', '/')
current_url = request.build_absolute_uri()
employees = Users.objects.filter(role='F')
all_orders = OrderRequest.objects.all()

if current_url == previous_url:
request.session['previous_url'] = request.session['previous_url']
else:
request.session['previous_url'] = previous_url


ctx = {
"all_orders": all_orders,
"employees": employees,
"previous_url": previous_url
"previous_url": request.session['previous_url']
}

try:
Expand Down

0 comments on commit 117c04c

Please sign in to comment.