Skip to content

Commit

Permalink
adding links
Browse files Browse the repository at this point in the history
  • Loading branch information
paulorosadodev committed Jun 9, 2024
1 parent bcbf7b4 commit 117fdc6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion app_client/templates/session/sign-in.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
{% endfor %}
<section id="register">
<section class="left">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
<a href="{% url 'home' %}">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
</a>
</section>
<section class="right">
<div>
Expand Down
4 changes: 3 additions & 1 deletion app_client/templates/session/sign-up.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
{% endfor %}
<section id="register">
<section class="left">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
<a href="{% url 'home' %}">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
</a>
</section>
<section class="right">
<div>
Expand Down
4 changes: 3 additions & 1 deletion app_company/templates/app_company/sign.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
{% endfor %}
<section id="login">
<section class="left">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
<a href="{% url 'home' %}">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
</a>
</section>
<section class="right active" id="loginzao">
<div id="loginzinho" class="active">
Expand Down
4 changes: 3 additions & 1 deletion app_company/templates/app_company/signed.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
{% comment %} <img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec"> {% endcomment %}
</section>
<section class="right" id="loginzao">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eceel-tec">
<a href="{% url 'home' %}">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
</a>
<div id="loginzinho" class="active">
<h1>Você já está logado(a)</h1>
<a href="{% url 'company:list_employees' %}"><button id="enter">Entrar</button></a>
Expand Down
4 changes: 3 additions & 1 deletion app_company/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
class SignView(View):
def get(self, request):
user = request.user
if user.is_authenticated:
id = request.user.id
userobject = Users.objects.filter(id=id).first()
if user.is_authenticated and not userobject.role == 'C':
return render(request, 'app_company/signed.html')
else:
return render(request, 'app_company/sign.html')
Expand Down
4 changes: 3 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<main class="{% if app_name == 'app_company' %}mainCompany{% endif %}">
<button id="menuHamburguer">Menu</button>
<nav id="sidebarNav">
<img class="logo" src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
<a href="{% url 'home' %}">
<img src="https://i.imgur.com/FShMthn.png" alt="Logo Eccel-tec">
</a>
<ul>
<li class="drawers {% if app_name == 'app_company' %}active{% endif %}">
<a href="{% url 'company:order_request_list'%}">
Expand Down

0 comments on commit 117fdc6

Please sign in to comment.