-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from ResidenciaTICBrisa/recuperacao-de-senha
Refatoracao do Frontend
- Loading branch information
Showing
32 changed files
with
844 additions
and
703 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
from django.contrib import admin | ||
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin | ||
from django.contrib.auth.models import User | ||
|
||
# Register your models here. | ||
from .models import Employee | ||
|
||
|
||
# Define an inline admin descriptor for Employee model | ||
# which acts a bit like a singleton | ||
class EmployeeInline(admin.StackedInline): | ||
model = Employee | ||
can_delete = False | ||
verbose_name_plural = "employee" | ||
|
||
|
||
# Define a new User admin | ||
class UserAdmin(BaseUserAdmin): | ||
inlines = [EmployeeInline] | ||
|
||
|
||
# Re-register UserAdmin | ||
admin.site.unregister(User) | ||
admin.site.register(User, UserAdmin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 4.2.4 on 2024-02-08 14:22 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('app', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Employee', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('cpf', models.CharField(max_length=11)), | ||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
17 changes: 0 additions & 17 deletions
17
project/app/migrations/0002_rename_agencia_bancaria_mapeamento_agencia_bancaria_and_more.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
* { | ||
font-family: 'Montserrat', sans-serif; | ||
} | ||
|
||
html, body { | ||
background-image: linear-gradient(#021842 50%, #253e6c); | ||
background-size: contain; /* Added */ | ||
background-repeat: no-repeat; /* Added */ | ||
height: 100vh; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
nav { | ||
background-color: #021842; | ||
padding-block: 25px; | ||
box-shadow: 10px 5px 5px #021233; | ||
} | ||
|
||
.link-primary { | ||
text-decoration: none; | ||
color: aliceblue; | ||
padding-inline: 10px; | ||
} | ||
|
||
.link-primary:hover { | ||
color: rgb(185, 200, 212); | ||
} | ||
|
||
body { | ||
justify-content: space-between; | ||
flex-direction: column; | ||
display: flex; | ||
margin: 0; | ||
} | ||
|
||
footer { | ||
color: aliceblue; | ||
bottom: 0; | ||
height: 2.5rem; | ||
} | ||
|
||
/* tentativa de deixar a tela responsiva | ||
se o content passa da margem da tela | ||
a cor de fundo nao acompanha */ | ||
/* @media (min-height: 100vh) { | ||
html, body { | ||
height: fit-content; | ||
} | ||
} | ||
@media (max-height: 100vh) { | ||
html, body { | ||
height: 100vh; | ||
} | ||
} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
:root { | ||
--btn-hover: #F39B00; | ||
--text-color: aliceblue; | ||
} | ||
|
||
.btn { | ||
padding: 15px 50px 15px 50px; | ||
background-color: var(--text-color); | ||
border-radius: 20px; | ||
} | ||
|
||
.btn:hover { | ||
transition: 300ms; | ||
background-color: var(--btn-hover); | ||
} | ||
|
||
h5 { | ||
color: rgb(212, 212, 212); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends 'base_reset.html' %} | ||
{% block conteudo %} | ||
{% load static %} | ||
|
||
<div class="row justify-content-center"> | ||
<div class="col-4"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<h5 class="card-title">Erro 404 - Página não encontrada</h5> | ||
<img class="img img-fluid" style="height: 300px;" src="http://edgecats.net/0.32412984014182733" alt=""> | ||
<hr> | ||
|
||
<div class="row justify-content-center"> | ||
<div class="col-6"> | ||
<a class="btn btn-success" href="/">Voltar para Home</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
Oops, something went wrong.