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#26 from Decide-Part-Rota/Rota1-002
Rota1-002
- Loading branch information
Showing
4 changed files
with
239 additions
and
1 deletion.
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,71 @@ | ||
{% 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 minmun age 22 and maximum age 28, 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="age/create" 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>Choose age</label> | ||
<input type="number" name="minimum-age" max="100" min="0"> | ||
<input type="number" name="maximum-age" max="100" min="0"> | ||
</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 "Male", 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="gender/create" 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">Choose gender</label> | ||
<select multiple class="form-select" id="specificSizeSelect" name="gender-select"> | ||
<!--{% for gender in gender %} | ||
<option value="{{gender}}">{{gender}}</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