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#27 from Decide-Part-Rota/Rota1-013
Rota1-013
- Loading branch information
Showing
7 changed files
with
363 additions
and
7 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,4 @@ | ||
Export Folder | ||
================================ | ||
|
||
Este directorio incluirá todos los censos que exportes. |
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,62 @@ | ||
{% 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="title"> | ||
<h2>Export Census</h2> | ||
</div> | ||
|
||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<h4>In this view you can manage the census by exporting the users participating in a voting</h4> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
</div> | ||
|
||
<form class="row gx-3 gy-2 align-items-center" action="exporting_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-center submit"> | ||
<div class="col col-lg-1"> | ||
<button type="submit" class="btn btn-primary">Export</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,69 @@ | ||
{% 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="title"> | ||
<h2>Import Census</h2> | ||
</div> | ||
|
||
<div class="row justify-content-md-center"> | ||
<div class="col-sm-8"> | ||
<h4>In this view you can manage the census by importing users participating in a voting</h4> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
</div> | ||
|
||
<form class="row gx-3 gy-2 align-items-center" action="importing_census/" method="POST" enctype="multipart/form-data"> | ||
{% 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="file" class="form-label">Upload a csv file</label> | ||
<input class="form-control" type="file" id="formFile" name="csv-file" required> | ||
|
||
</div> | ||
</div> | ||
<div class="row justify-content-center submit"> | ||
<div class="col col-lg-1"> | ||
<button type="submit" class="btn btn-primary">Import</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
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
Oops, something went wrong.