forked from Decide-Part-Rota/decide
-
Notifications
You must be signed in to change notification settings - Fork 0
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 EGCETSII#23 from Decide-Part-Rota/Rota1-005
Rota1-005
- Loading branch information
Showing
10 changed files
with
152 additions
and
3 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
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
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,18 @@ | ||
# Generated by Django 2.0 on 2022-11-22 18:37 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('voting', '0003_auto_20180605_0842'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='voting', | ||
name='visibility', | ||
field=models.BooleanField(default=True), | ||
), | ||
] |
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,18 @@ | ||
# Generated by Django 2.0 on 2022-11-22 19:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('voting', '0004_voting_visibility'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='voting', | ||
name='visibility', | ||
field=models.BooleanField(), | ||
), | ||
] |
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,17 @@ | ||
.boton-personalizado { | ||
text-decoration: none; | ||
font-weight: 600; | ||
font-size: 20px; | ||
color: #333; | ||
padding: 5px 20px; | ||
background-color: #ffd27d; | ||
border-color: #d8d8d8; | ||
border-width: 3px; | ||
border-style: solid; | ||
border-radius: 35px; | ||
} | ||
|
||
/* Este es el estilo al poner el cursor encima del boton */ | ||
.boton-personalizado:hover { | ||
background-color: #000; | ||
} |
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,76 @@ | ||
<!DOCTYPE html> | ||
|
||
{% load i18n static %} | ||
|
||
{% block extrahead %} | ||
<link type="text/css" rel="stylesheet" | ||
href="https://unpkg.com/bootstrap/dist/css/bootstrap.min.css" /> | ||
<link type="text/css" rel="stylesheet" | ||
href="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.css" /> | ||
<link type="text/css" rel="stylesheet" href="{% static "voting/style.css" %}" /> | ||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
|
||
<h1 style="text-align:center">Listado de Votaciones</h1> | ||
|
||
<body> | ||
|
||
<table class="table table-bordered"> | ||
|
||
<thead> | ||
|
||
<tr> | ||
|
||
<td>ID</td> | ||
<td>Name</td> | ||
<td>Description</td> | ||
<td>Visibility</td> | ||
<td></td> | ||
|
||
</tr> | ||
|
||
</thead> | ||
|
||
<tbody> | ||
|
||
{% if votaciones %} | ||
|
||
<!-- Cojo la colección votaciones que le paso en views.py --> | ||
{% for votacion in votaciones %} | ||
|
||
<tr> | ||
|
||
<td>{{votacion.id}}</td> | ||
<td>{{votacion.name}}</td> | ||
<td>{{votacion.desc}}</td> | ||
<td>{{votacion.visibility}}</td> | ||
|
||
<td> | ||
|
||
<a class="boton-personalizado" href="http://127.0.0.1:8000/booth/{{votacion.id}}"> | ||
|
||
Go Vote | ||
|
||
</a> | ||
|
||
</td> | ||
|
||
</tr> | ||
|
||
{% endfor %} | ||
|
||
{% else %} | ||
|
||
<h3 style="text-align:center">Listado de Votaciones</h3> | ||
|
||
{% endif %} | ||
|
||
</tbody> | ||
|
||
</table> | ||
|
||
</body> | ||
|
||
{% endblock %} |
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