diff --git a/app/contrib/partners/admin.py b/app/contrib/partners/admin.py index 895e6502..4d34d4ad 100644 --- a/app/contrib/partners/admin.py +++ b/app/contrib/partners/admin.py @@ -6,4 +6,4 @@ @admin.register(Partner) class PartnerAdmin(SortableAdminMixin, admin.ModelAdmin): - list_display = ("name", "link") + list_display = ("name", "logo") diff --git a/app/contrib/partners/migrations/0004_remove_partner_link.py b/app/contrib/partners/migrations/0004_remove_partner_link.py new file mode 100644 index 00000000..57d29767 --- /dev/null +++ b/app/contrib/partners/migrations/0004_remove_partner_link.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2 on 2024-09-10 19:44 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('partners', '0003_alter_partner_position'), + ] + + operations = [ + migrations.RemoveField( + model_name='partner', + name='link', + ), + ] diff --git a/app/contrib/partners/models.py b/app/contrib/partners/models.py index ffeeba34..27a2dd7e 100644 --- a/app/contrib/partners/models.py +++ b/app/contrib/partners/models.py @@ -7,7 +7,6 @@ class Partner(models.Model): name = models.CharField(max_length=100, verbose_name="Nome da Parceria") logo = FilerFileField(verbose_name=_("Imagem"), on_delete=models.SET_NULL, null=True, blank=True) - link = models.URLField(blank=True, null=True, verbose_name="Link da Parceria") position = models.PositiveIntegerField( default=0, @@ -21,4 +20,4 @@ def __str__(self): class Meta: verbose_name = "Parceiro" - ordering = ["position"] \ No newline at end of file + ordering = ["position"] diff --git a/app/contrib/partners/templates/partners/partners_list.html b/app/contrib/partners/templates/partners/partners_list.html index a8382d82..fae3f278 100644 --- a/app/contrib/partners/templates/partners/partners_list.html +++ b/app/contrib/partners/templates/partners/partners_list.html @@ -1,5 +1,5 @@ {% for partner in partners %} - + {% endfor %} diff --git a/app/org_eleicoes/votepeloclima/static/scss/custom.scss b/app/org_eleicoes/votepeloclima/static/scss/custom.scss index 585aac2b..bb8428fd 100644 --- a/app/org_eleicoes/votepeloclima/static/scss/custom.scss +++ b/app/org_eleicoes/votepeloclima/static/scss/custom.scss @@ -213,7 +213,7 @@ legend.form-label { // Partner Tag .partners-list { - a { + div { display: flex; justify-content: center; align-items: center; @@ -225,4 +225,4 @@ legend.form-label { object-fit: contain; object-position: center; } -} \ No newline at end of file +} diff --git a/app/org_eleicoes/votepeloclima/templates/votepeloclima/base.html b/app/org_eleicoes/votepeloclima/templates/votepeloclima/base.html index 850b097d..afe95d3c 100644 --- a/app/org_eleicoes/votepeloclima/templates/votepeloclima/base.html +++ b/app/org_eleicoes/votepeloclima/templates/votepeloclima/base.html @@ -66,7 +66,7 @@ {% comment %}
  • ConheƧa as candidaturas
  • {% endcomment %}
  • Cadastre-se
  • Login
  • -
  • Contato
  • +
  • Contato