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#32 from Decide-Part-Rota/Rota1-003
Rota1-003
- Loading branch information
Showing
5 changed files
with
320 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{% extends "base.html" %} | ||
{% load i18n static %} | ||
|
||
{% block extrahead %} | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script> | ||
|
||
<link type="text/css" rel="stylesheet" href="{% static 'style.css' %}" /> | ||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
<div class="row justify-content-md-center align-items-center"> | ||
<div class="col-sm-8 justify-content-center align-items-center"> | ||
<h2>Census Groups</h2> | ||
</div> | ||
</div> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<h4>Select which type of grouping you want to apply</h4> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
</div> | ||
|
||
<div class="row justify-content-center submit"> | ||
<div class="col col-lg-2"> | ||
<a href="maritialStatus"><button type="button" class="btn btn-primary group-button">Maritial Status</button></a> | ||
</div> | ||
<div class="col col-lg-2"> | ||
<a href="nationality"><button type="button" class="btn btn-primary group-button">Nationality</button></a> | ||
</div> | ||
<div class="col col-lg-2"> | ||
<a href="age"><button type="button" class="btn btn-primary group-button">Age</button></a> | ||
</div> | ||
<div class="col col-lg-2"> | ||
<a href="gender"><button type="button" class="btn btn-primary group-button">Gender</button></a> | ||
</div> | ||
</div> | ||
|
||
{% if messages %} | ||
<ul class="messages" style="margin-top:2%"> | ||
{% for message in messages %} | ||
{% if message.tags == 'error' %} | ||
<li class="{{ message.tags }} alert alert-danger" role="alert">{{ message }}</li> | ||
{% else %} | ||
<li class="{{ message.tags }} alert alert-{{message.tags}}" role="alert">{{ message }}</li> | ||
{% endif %} | ||
|
||
{% endfor %} | ||
</ul> | ||
|
||
{% endif %} | ||
|
||
|
||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{% extends "base.html" %} | ||
{% load i18n static %} | ||
|
||
{% block extrahead %} | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script> | ||
|
||
<link type="text/css" rel="stylesheet" href="{% static 'style.css' %}" /> | ||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
<div class="row justify-content-md-center align-items-center"> | ||
<div class="col-sm-8 justify-content-center align-items-center"> | ||
<h2 class ="justify-content-center align-items-center">Census Groups</h2> | ||
</div> | ||
</div> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<h3>Now you can add groups of voters to an specific voting</h3> | ||
<h6>for example, if you select Single, every user who satisfies that requirement will be added to the chosen voting</h6> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
</div> | ||
|
||
<form class="row gx-3 gy-2 align-items-center" action="maritialStatus/add_by_maritialStatus_to_census" method="POST"> | ||
{% csrf_token %} | ||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<label for="specificSizeSelect">Choose a voting</label> | ||
<select class="form-select" id="specificSizeSelect" name="voting-select"> | ||
{% for voting in votings %} | ||
<option value="{{voting.id}}">{{voting}}</option> | ||
{%endfor%} | ||
</select> | ||
|
||
</div> | ||
</div> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<label for="specificSizeSelect">Maritial Status</label> | ||
<select multiple class="form-select" id="specificSizeSelect" name="maritialStatus-select"> | ||
<!--{% for maritialstatus in maritialStatus %} | ||
<option value="{{maritialstatus}}">{{maritialstatus}}</option> | ||
{%endfor%}--> | ||
</select> | ||
</div> | ||
</div> | ||
<div class="row justify-content-center submit"> | ||
<div class="col col-lg-1"> | ||
<button type="submit" class="btn btn-primary">Submit</button> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
{% if messages %} | ||
<ul class="messages" style="margin-top:2%"> | ||
{% for message in messages %} | ||
{% if message.tags == 'error' %} | ||
<li class="{{ message.tags }} alert alert-danger" role="alert">{{ message }}</li> | ||
{% else %} | ||
<li class="{{ message.tags }} alert alert-{{message.tags}}" role="alert">{{ message }}</li> | ||
{% endif %} | ||
|
||
{% endfor %} | ||
</ul> | ||
|
||
{% endif %} | ||
|
||
|
||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{% extends "base.html" %} | ||
{% load i18n static %} | ||
|
||
{% block extrahead %} | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script> | ||
|
||
<link type="text/css" rel="stylesheet" href="{% static 'style.css' %}" /> | ||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
<div class="row justify-content-md-center align-items-center"> | ||
<div class="col-sm-8 justify-content-center align-items-center"> | ||
<h2 class ="justify-content-center align-items-center">Census Groups</h2> | ||
</div> | ||
</div> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<h3>Now you can add groups of voters to an specific voting</h3> | ||
<h6>for example, if you select Spain, every spanish user will be added to the chosen voting</h6> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
</div> | ||
|
||
<form class="row gx-3 gy-2 align-items-center" action="nationality/add_by_nationality_to_census" method="POST"> | ||
{% csrf_token %} | ||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<label for="specificSizeSelect">Choose a voting</label> | ||
<select class="form-select" id="specificSizeSelect" name="voting-select"> | ||
{% for voting in votings %} | ||
<option value="{{voting.id}}">{{voting}}</option> | ||
{%endfor%} | ||
</select> | ||
</div> | ||
</div> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<label for="specificSizeSelect">Nationality</label> | ||
<select multiple class="form-select" id="specificSizeSelect" name="nationality-select"> | ||
<select multiple class="form-select" id="specificSizeSelect" name="maritialStatus-select"> | ||
<!--{% for nation in nationality %} | ||
<option value="{{nation}}">{{nation}}</option> | ||
{%endfor%}--> | ||
</select> | ||
</div> | ||
</div> | ||
<div class="row justify-content-center submit"> | ||
<div class="col col-lg-1"> | ||
<button type="submit" class="btn btn-primary">Submit</button> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
{% if messages %} | ||
<ul class="messages" style="margin-top:2%"> | ||
{% for message in messages %} | ||
{% if message.tags == 'error' %} | ||
<li class="{{ message.tags }} alert alert-danger" role="alert">{{ message }}</li> | ||
{% else %} | ||
<li class="{{ message.tags }} alert alert-{{message.tags}}" role="alert">{{ message }}</li> | ||
{% endif %} | ||
|
||
{% endfor %} | ||
</ul> | ||
|
||
{% endif %} | ||
|
||
|
||
{% 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