forked from DGNum/gestioCOF
tout plein de modif, toujours pas fini
This commit is contained in:
parent
6e314afd70
commit
f14ddef88a
|
@ -1,10 +1,64 @@
|
||||||
form#tokenform {text-align: center; font-size: 2em;}
|
form#tokenform {
|
||||||
label {margin-right: 10px; vertical-align: top;}
|
text-align: center;
|
||||||
form#tokenform textarea {font-size: 2em; width: 350px; height: 200px; font-family: 'Droif Serif', serif;}
|
font-size: 2em;
|
||||||
input {width: 400px; font-size: 2em;}
|
}
|
||||||
ul.losers {display: inline; margin: 0; padding: 0;}
|
|
||||||
ul.losers li {display: inline;}
|
label {
|
||||||
span.details {font-size: 0.7em;}
|
margin-right: 10px;
|
||||||
table {border: 1px solid black; border-collapse: collapse;}
|
vertical-align: top;
|
||||||
td {border: 1px solid black; padding: 2px;}
|
}
|
||||||
.attribresult {margin: 10px 0px;}
|
|
||||||
|
form#tokenform textarea {
|
||||||
|
font-size: 2em;
|
||||||
|
width: 350px;
|
||||||
|
height: 200px;
|
||||||
|
font-family: 'Droif Serif', serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* wft ?
|
||||||
|
input {
|
||||||
|
width: 400px;
|
||||||
|
font-size: 2em;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
ul.losers {
|
||||||
|
display: inline;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.losers li {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.details {
|
||||||
|
font-size: 0.7em;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
border: 0px solid black;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
.attribresult {
|
||||||
|
margin: 10px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inscription-bottom {
|
||||||
|
display: block;
|
||||||
|
padding: 0px 20px 20px 20px ;
|
||||||
|
margin-top : 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bda-prix {
|
||||||
|
font-weight: bold;
|
||||||
|
color:#DE826B;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-top {
|
||||||
|
background-color: #F0F0F0;
|
||||||
|
margin: -20px;
|
||||||
|
margin-top: 0px;
|
||||||
|
padding:20px;
|
||||||
|
padding-bottom: 28px;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
{% block extracontent %}
|
{% block extracontent %}
|
||||||
|
|
||||||
<h1>Attribution (détails)</h1>
|
<h2>Attribution (détails)</h2>
|
||||||
<h2>Token :</h2>
|
<h3 class="horizontal-title">Token :</h3>
|
||||||
<pre>{{ token }}</pre>
|
<pre>{{ token }}</pre>
|
||||||
<h2>Placés : {{ total_slots }} ; Déçus : {{ total_losers }}</h2>
|
<h3 class="horizontal-title">Placés : {{ total_slots }} ; Déçus : {{ total_losers }}</h3>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
{% for member, shows in members2 %}
|
{% for member, shows in members2 %}
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
|
|
||||||
{% block realcontent %}
|
{% block realcontent %}
|
||||||
|
|
||||||
<h1>Attribution</h1>
|
<h2>Attribution</h2>
|
||||||
<h2>Token :</h2>
|
<h3 class="horizontal-title">Token :</h3>
|
||||||
<pre>{{ token }}</pre>
|
<pre>{{ token }}</pre>
|
||||||
<h2>Placés : {{ total_slots }} ; Déçus : {{ total_losers }}</h2>
|
<h3 class="horizontal-title">Placés : {{ total_slots }} ; Déçus : {{ total_losers }}</h3>
|
||||||
{% if user.profile.is_buro %}<h2>Déficit total: {{ total_deficit }} €, Opéra: {{ opera_deficit }} €, Attribué: {{ total_sold }} €</h2>{% endif %}
|
{% if user.profile.is_buro %}<h3 class="horizontal-title">Déficit total: {{ total_deficit }} €, Opéra: {{ opera_deficit }} €, Attribué: {{ total_sold }} €</h3>{% endif %}
|
||||||
<h2>Temps de calcul : {{ duration|floatformat }}s</h2>
|
<h3 class="horizontal-title">Temps de calcul : {{ duration|floatformat }}s</h3>
|
||||||
|
|
||||||
{% for show, members, losers in results %}
|
{% for show, members, losers in results %}
|
||||||
<div class="attribresult">
|
<div class="attribresult">
|
||||||
<h2>{{ show.title }} - {{ show.date_no_seconds }} @ {{ show.location }}</h2>
|
<h3 class="horizontal-title">{{ show.title }} - {{ show.date_no_seconds }} @ {{ show.location }}</h3>
|
||||||
<p>
|
<p>
|
||||||
<strong>{{ show.nrequests }} demandes pour {{ show.slots }} places</strong>
|
<strong>{{ show.nrequests }} demandes pour {{ show.slots }} places</strong>
|
||||||
{{ show.price }}€ par place{% if user.profile.is_buro and show.nrequests < show.slots %}, {{ show.deficit }}€ de déficit{% endif %}
|
{{ show.price }}€ par place{% if user.profile.is_buro and show.nrequests < show.slots %}, {{ show.deficit }}€ de déficit{% endif %}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% extends "base_title.html" %}
|
{% extends "base_title.html" %}
|
||||||
|
{% load staticfiles %}
|
||||||
|
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
<link href="{{ STATIC_URL }}grappelli/jquery/ui/css/custom-theme/jquery-ui-1.8.custom.css" rel="stylesheet" type="text/css" media="screen" title="no title" charset="utf-8" />
|
<link href="{{ STATIC_URL }}grappelli/jquery/ui/css/custom-theme/jquery-ui-1.8.custom.css" rel="stylesheet" type="text/css" media="screen" title="no title" charset="utf-8" />
|
||||||
|
@ -6,6 +7,7 @@
|
||||||
<script src="{{ STATIC_URL }}grappelli/jquery/ui/js/jquery-ui-1.8.15.custom.min.js" type="text/javascript"></script>
|
<script src="{{ STATIC_URL }}grappelli/jquery/ui/js/jquery-ui-1.8.15.custom.min.js" type="text/javascript"></script>
|
||||||
<link href="{{ STATIC_URL }}grappelli/css/tools.css" rel="stylesheet" type="text/css" />
|
<link href="{{ STATIC_URL }}grappelli/css/tools.css" rel="stylesheet" type="text/css" />
|
||||||
<link href="{{ STATIC_URL }}grappelli/css/jquery-ui-grappelli-extensions.css" rel="stylesheet" type="text/css" />
|
<link href="{{ STATIC_URL }}grappelli/css/jquery-ui-grappelli-extensions.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="{% static "css/bda.css" %}" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block realcontent %}
|
{% block realcontent %}
|
||||||
|
@ -49,9 +51,9 @@ var django = {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
$(document).ready(function($) {
|
$(document).ready(function($) {
|
||||||
deleteButtonHandler($("table#bda_formset tbody.bda_formset_content").find("a.delete-handler"));
|
deleteButtonHandler($("table#bda_formset tbody.bda_formset_content").find("a.remove-btn"));
|
||||||
$("table#bda_formset tbody.bda_formset_content").sortable({
|
$("table#bda_formset tbody.bda_formset_content").sortable({
|
||||||
handle: "a.drag-handler",
|
handle: "a.drag-btn",
|
||||||
items: "tr",
|
items: "tr",
|
||||||
axis: "y",
|
axis: "y",
|
||||||
appendTo: 'body',
|
appendTo: 'body',
|
||||||
|
@ -91,28 +93,31 @@ var django = {
|
||||||
})(django.jQuery);
|
})(django.jQuery);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h2>Inscription au tirage au sort du BdA</h2>
|
<h2 class="no-bottom-margin">Inscription au tirage au sort du BdA</h2>
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p class="success">Votre inscription a été mise à jour avec succès !</p>
|
<p class="success table-top">Votre inscription a été mise à jour avec succès !</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if stateerror %}
|
{% if stateerror %}
|
||||||
<p class="error">Impossible d'enregistrer vos modifications: vous avez apporté d'autres modifications entre temps</p>
|
<p class="error table-top">Impossible d'enregistrer vos modifications: vous avez apporté d'autres modifications entre temps</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form id="bda_form" method="post" action="{% url 'bda-tirage-inscription' tirage.id %}">
|
<form id="bda_form" method="post" action="{% url 'bda-tirage-inscription' tirage.id %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include "inscription-formset.html" %}
|
{% include "inscription-formset.html" %}
|
||||||
<input type="button" class="btn-addmore" value="Ajouter un autre vœu" id="add_more">
|
<div class="inscription-bottom">
|
||||||
|
<span class="bda-prix">Prix total actuel : {{ total_price }}€</span>
|
||||||
|
<div class="pull-right">
|
||||||
|
<input type="button" class="btn btn-default" value="Ajouter un autre vœu" id="add_more">
|
||||||
<script>
|
<script>
|
||||||
django.jQuery('#add_more').click(function() {
|
django.jQuery('#add_more').click(function() {
|
||||||
cloneMore('tbody.bda_formset_content tr:last-child', 'choixspectacle_set');
|
cloneMore('tbody.bda_formset_content tr:last-child', 'choixspectacle_set');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<input type="hidden" name="dbstate" value="{{ dbstate }}" />
|
<input type="hidden" name="dbstate" value="{{ dbstate }}" />
|
||||||
<input type="submit" class="btn-submit" value="Enregistrer" />
|
<input type="submit" class="btn btn-primary" value="Enregistrer" />
|
||||||
Prix total actuel : {{ total_price }}€
|
</div>
|
||||||
<hr />
|
|
||||||
<p class="footnotes">
|
<p class="footnotes">
|
||||||
<sup>1</sup>: cette liste de vœu est ordonnée (du plus important au moins important), pour ajuster la priorité vous pouvez déplacer chaque vœu<br />
|
<sup>1</sup>: cette liste de vœu est ordonnée (du plus important au moins important), pour ajuster la priorité vous pouvez déplacer chaque vœu.<br />
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
{% load bootstrap %}
|
||||||
{{ formset.non_form_errors.as_ul }}
|
{{ formset.non_form_errors.as_ul }}
|
||||||
<table id="bda_formset" class="form">
|
<table id="bda_formset" class="form table">
|
||||||
{{ formset.management_form }}
|
{{ formset.management_form }}
|
||||||
{% for form in formset.forms %}
|
{% for form in formset.forms %}
|
||||||
{% if forloop.first %}
|
{% if forloop.first %}
|
||||||
|
@ -22,15 +23,15 @@
|
||||||
{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
|
{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ field.errors.as_ul }}
|
{{ field.errors.as_ul }}
|
||||||
{{ field }}
|
{{ field | bootstrap }}
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<td class="tools-cell"><div class="tools">
|
<td class="tools-cell"><div class="tools">
|
||||||
<a href="javascript://" class="icon drag-handler" title="Déplacer"></a>
|
<a href="javascript://" class="glyphicon glyphicon-th drag-btn" title="Déplacer"></a>
|
||||||
<input type="checkbox" name="{{ form.DELETE.html_name }}" style="display: none;" />
|
<input type="checkbox" name="{{ form.DELETE.html_name }}" style="display: none;" />
|
||||||
<input type="hidden" name="{{ form.priority.html_name }}" style="{{ form.priority.value }}" />
|
<input type="hidden" name="{{ form.priority.html_name }}" style="{{ form.priority.value }}" />
|
||||||
<a href="javascript://" class="icon delete-handler" title="Supprimer"></a>
|
<a href="javascript://" class="glyphicon glyphicon-remove remove-btn" title="Supprimer"></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -176,7 +176,6 @@ class UserProfileForm(forms.ModelForm):
|
||||||
super(UserProfileForm, self).__init__(*args, **kw)
|
super(UserProfileForm, self).__init__(*args, **kw)
|
||||||
self.fields['first_name'].initial = self.instance.user.first_name
|
self.fields['first_name'].initial = self.instance.user.first_name
|
||||||
self.fields['last_name'].initial = self.instance.user.last_name
|
self.fields['last_name'].initial = self.instance.user.last_name
|
||||||
|
|
||||||
self.fields.keyOrder = [
|
self.fields.keyOrder = [
|
||||||
'first_name',
|
'first_name',
|
||||||
'last_name',
|
'last_name',
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
html,body {
|
html,body {
|
||||||
background-color : #A7D4CD;
|
background-color : #A7D4CD;
|
||||||
font-family: 'Hind', sans-serif;
|
|
||||||
/*
|
/*
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Hind', sans-serif;
|
||||||
*/
|
*/
|
||||||
|
font-family: 'Roboto', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
#principal {
|
#principal {
|
||||||
|
@ -27,6 +27,10 @@ html,body {
|
||||||
min-height : 30px;
|
min-height : 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-bottom-margin {
|
||||||
|
margin-bottom: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.spacer {
|
.spacer {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
@ -77,6 +81,7 @@ table#bda_formset {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
.tools {
|
.tools {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
}
|
}
|
||||||
|
@ -87,12 +92,72 @@ table#bda_formset {
|
||||||
|
|
||||||
.tools a.icon.drag-handler {
|
.tools a.icon.drag-handler {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
.form-horizontal .form-group {
|
||||||
|
margin-right: 0px;
|
||||||
|
margin-left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
form .control-label {
|
||||||
|
color: #B56A59;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remove-btn {
|
||||||
|
color: #E6516A ;
|
||||||
|
font-size: x-large;
|
||||||
|
}
|
||||||
|
|
||||||
|
.drag-btn {
|
||||||
|
color :#4F504B;
|
||||||
|
font-size: x-large;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary,
|
||||||
|
.btn-primary:active,
|
||||||
|
.btn-primary:focus,
|
||||||
|
.btn-primary.focus {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #DE826B;
|
||||||
|
border-color: #4F504B;
|
||||||
|
}
|
||||||
|
.btn-primary:active:hover,
|
||||||
|
.btn-primary:hover {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #D89C8D;
|
||||||
|
border-color: #4F504B;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
form#bda_form {
|
||||||
|
margin-top:15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
form#bda_form p {
|
form#bda_form p {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
form#bda_form thead {
|
||||||
|
color : #B56A59
|
||||||
|
}
|
||||||
|
|
||||||
|
form#bda_form label.control-label {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
form#bda_form thead {
|
||||||
|
background-color: #F7F7F7;
|
||||||
|
}
|
||||||
|
|
||||||
|
form#bda_form {
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-left: -20px;
|
||||||
|
margin-right: -20px;
|
||||||
|
}
|
||||||
|
|
||||||
table#bda_formset {
|
table#bda_formset {
|
||||||
border-spacing: 0px 5px;
|
border-spacing: 0px 5px;
|
||||||
}
|
}
|
||||||
|
@ -100,6 +165,22 @@ table#bda_formset {
|
||||||
tbody.bda_formset_content {
|
tbody.bda_formset_content {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tr.dynamic-form td {
|
||||||
|
background: #F0F0F0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
tr.dynamic-form.predelete td {
|
||||||
|
background-color: #FFECEC;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
tr.ui-sortable-placeholder td, .placeholder-cell {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
tr.dynamic-form td {
|
tr.dynamic-form td {
|
||||||
border-width: 1px 1px 1px 0px;
|
border-width: 1px 1px 1px 0px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
|
@ -149,7 +230,7 @@ tr.ui-sortable-placeholder td:first-child {
|
||||||
tr.ui-sortable-placeholder td:last-child {
|
tr.ui-sortable-placeholder td:last-child {
|
||||||
border-top-right-radius: 10px;
|
border-top-right-radius: 10px;
|
||||||
border-bottom-right-radius: 10px;
|
border-bottom-right-radius: 10px;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
form {
|
form {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -177,7 +258,6 @@ form#profile table td, form#profile table th {
|
||||||
/* reset the text-align */
|
/* reset the text-align */
|
||||||
text-align:left;
|
text-align:left;
|
||||||
/* inline-block space fix */
|
/* inline-block space fix */
|
||||||
margin-right:-4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
form#profile table th {
|
form#profile table th {
|
||||||
|
@ -198,16 +278,21 @@ fieldset legend {
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-login-container {
|
#main-login-container {
|
||||||
width: 500px;
|
margin-top : 7em;
|
||||||
margin: 7em auto;
|
margin-bottom: 7em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main-login-container .banner {
|
||||||
|
padding-right: 15px;
|
||||||
|
padding-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-login {
|
#main-login {
|
||||||
width: 500px;
|
background-color: #DE826B;
|
||||||
border: 15px solid #333;
|
}
|
||||||
-webkit-border-radius: 20px;
|
|
||||||
-moz-border-radius: 20px;
|
#main-login .btn-primary {
|
||||||
border-radius: 20px;
|
background-color: #B56A59
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-content {
|
#main-content {
|
||||||
|
@ -215,20 +300,41 @@ fieldset legend {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-content h2 {
|
#main-content h2,
|
||||||
|
#main-content h3.horizontal-title {
|
||||||
display : block;
|
display : block;
|
||||||
padding : 12px;
|
padding : 12px;
|
||||||
margin: -20px -20px 10px -20px ;
|
margin: -20px -20px 10px -20px ;
|
||||||
font-family: 'Dosis', sans-serif;
|
font-family: 'Dosis', sans-serif;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: x-large;
|
|
||||||
color: white;
|
color: white;
|
||||||
background-color:#DE826B;
|
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 0px 0px 5px 0px;
|
|
||||||
border-color: #4F504B;
|
border-color: #4F504B;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#main-content h2 {
|
||||||
|
font-size: x-large;
|
||||||
|
background-color:#DE826B;
|
||||||
|
border-width: 0px 0px 5px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main-content h3.horizontal-title {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: large;
|
||||||
|
background-color:#EAA594;
|
||||||
|
border-width: 0px 0px 3px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#main-content > h2,
|
||||||
|
#main-content > h3.horizontal-title {
|
||||||
|
margin-top:-10px;
|
||||||
|
}
|
||||||
|
#main-content > h2:first-child,
|
||||||
|
#main-content > h3.horizontal-title:first-child {
|
||||||
|
margin-top:-20px;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
main-container {
|
main-container {
|
||||||
max-width: 95%;
|
max-width: 95%;
|
||||||
|
@ -363,19 +469,19 @@ h4.block-title {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main form li {
|
#main-content form li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.success {
|
.success {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #00B000;
|
color: #7AB85F;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #B00000;
|
color: #F6BEBE;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,39 +499,32 @@ form#bda_form ul.errorlist li {
|
||||||
|
|
||||||
#main-login.login_block {
|
#main-login.login_block {
|
||||||
padding: 2em;
|
padding: 2em;
|
||||||
box-shadow: 0 0 100px #AAA inset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a#login_clipper, a#login_outsider {
|
#login_clipper, #login_outsider {
|
||||||
float: left;
|
|
||||||
display: block;
|
|
||||||
width: 250px;
|
|
||||||
height: 200px;
|
height: 200px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: 'Droid Serif', serif;
|
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 190px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
|
padding: 70px 20px 40px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a#login_clipper {
|
#login_clipper {
|
||||||
background-color: #123E96;
|
background-color: #49A5E3;
|
||||||
box-shadow: 0 0 100px #040C78 inset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a#login_clipper:hover {
|
#login_clipper:hover {
|
||||||
background-color: #164BB6;
|
background-color: #71B5E3;
|
||||||
}
|
}
|
||||||
|
|
||||||
a#login_outsider {
|
#login_outsider {
|
||||||
background-color: #961221;
|
background-color: #E36748;
|
||||||
box-shadow: 0 0 100px #780411 inset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a#login_outsider:hover {
|
#login_outsider:hover {
|
||||||
background-color: #B31729;
|
background-color: #E38871;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-login label {
|
#main-login label {
|
||||||
|
@ -543,9 +642,6 @@ header a:active {
|
||||||
float: left;
|
float: left;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
#main-login #header h1 {
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-is-cof {
|
.user-is-cof {
|
||||||
color : #ADE297;
|
color : #ADE297;
|
||||||
|
@ -563,10 +659,6 @@ tt {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
|
||||||
color: #BB0000;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
header .member-status {
|
header .member-status {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -616,23 +708,6 @@ header .open > .dropdown-toggle.btn-default {
|
||||||
|
|
||||||
|
|
||||||
/* FORMS --------------------------------- */
|
/* FORMS --------------------------------- */
|
||||||
#main-login input {
|
|
||||||
border-width: 1px;
|
|
||||||
font-family: Verdana,sans-serif;
|
|
||||||
font-size: 1.1em;
|
|
||||||
color: #000;
|
|
||||||
padding: 3px;
|
|
||||||
min-height: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#main-login input[type="text"], #main-login input[type=password] {
|
|
||||||
border: 2px solid #888;
|
|
||||||
-webkit-border-radius: 8px;
|
|
||||||
-moz-border-radius: 8px;
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 0 12px #AAA inset;
|
|
||||||
min-height: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[disabled], input[readonly] {
|
input[disabled], input[readonly] {
|
||||||
color: #BBB;
|
color: #BBB;
|
||||||
|
@ -856,6 +931,11 @@ tr.awesome{
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title-foot {
|
||||||
|
padding-right:0px;
|
||||||
|
padding-left:0px;
|
||||||
|
}
|
||||||
|
|
||||||
.foot-banner {
|
.foot-banner {
|
||||||
font-family: 'Dosis', sans-serif;
|
font-family: 'Dosis', sans-serif;
|
||||||
background-color :#4F504B;
|
background-color :#4F504B;
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
<link type="text/css" rel="stylesheet" href="{% static "css/bootstrap.min.css" %}" />
|
<link type="text/css" rel="stylesheet" href="{% static "css/bootstrap.min.css" %}" />
|
||||||
<link type="text/css" rel="stylesheet" href="{% static "css/cof.css" %}" />
|
<link type="text/css" rel="stylesheet" href="{% static "css/cof.css" %}" />
|
||||||
|
|
||||||
<link href="https://fonts.googleapis.com/css?family=Dosis:700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Dosis|Dosis:700|Raleway|Roboto:300,300i,700" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Dosis|Hind:300|Raleway|Roboto:300" rel="stylesheet">
|
|
||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
{% block extra_head %}{% endblock %}
|
{% block extra_head %}{% endblock %}
|
||||||
|
|
|
@ -3,9 +3,18 @@
|
||||||
{% block interm_content %}
|
{% block interm_content %}
|
||||||
<div class="container hidden-xs espace"></div>
|
<div class="container hidden-xs espace"></div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row" id="main-content">
|
<div class="row row-centered">
|
||||||
|
<div class="col-xs-12 {%block page_size%}col-sm-12{%endblock%} col-centered" id="main-content">
|
||||||
{% block realcontent %}{% endblock %}
|
{% block realcontent %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="home-menu row row-centered">
|
||||||
|
<div class="visible-xs-block col-xs-12 title-foot">
|
||||||
|
<div class="foot-banner">
|
||||||
|
<h3>Pour tout problème : <tt>cof@ens.fr.</tt></h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.row.home-menu -->
|
||||||
|
</div>
|
||||||
<div class="container hidden-xs espace"></div>
|
<div class="container hidden-xs espace"></div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,32 +1,36 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% load bootstrap %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="main-login-container">
|
<div id="main-login-container" class="container">
|
||||||
<div id="main-login" class="login_block">
|
<div class="row row-centered">
|
||||||
<div id="header">
|
<div class="col-xs-10 col-sm-8 col-md-5 col-centered">
|
||||||
<h1>{{ site.name }} – Connexion</h1>
|
<header>
|
||||||
|
<div class="banner">
|
||||||
|
<h1>GestioCOF – Connexion</h1>
|
||||||
</div>
|
</div>
|
||||||
|
</header>
|
||||||
|
<div id="main-login" class="login_block">
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
<p class="error">Identifiants incorrects.</p>
|
<p class="error">Identifiants incorrects.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form method="post" action="{% url 'gestioncof.views.login_ext' %}">
|
<form class="form-horizontal" method="post" action="{% url 'gestioncof.views.login_ext' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
<div class="form-group">
|
||||||
<tr>
|
<input class="form-control" id="id_username" maxlength="254" name="username" type="text" placeholder="Nom d'utilisateur">
|
||||||
<td>{{ form.username.label_tag }}</td>
|
</div>
|
||||||
<td>{{ form.username }}</td>
|
<div class="form-group">
|
||||||
</tr>
|
<input class="form-control" id="id_password" name="password" type="password" placeholder="Mot de passe">
|
||||||
<tr>
|
</div>
|
||||||
<td>{{ form.password.label_tag }}</td>
|
<div class="form-actions">
|
||||||
<td>{{ form.password }}</td>
|
<input type="submit" name="submit" class="btn btn-primary " value="Se Connecter" />
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<input type="submit" name="submit" class="btn-submit" value="SE CONNECTER" />
|
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
<input type="hidden" name="next" value="{{ next }}" />
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div><!-- /.row -->
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,15 +1,29 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="main-login-container">
|
<div id="main-login-container" class="container">
|
||||||
<div id="main-login">
|
<div class="row row-centered">
|
||||||
<a id="login_clipper" href="{% url 'django_cas_ng.views.login' %}">
|
<div class="col-xs-10 col-sm-8 col-md-8 col-centered">
|
||||||
|
<header>
|
||||||
|
<div class="banner">
|
||||||
|
<h1>GestioCOF – Mode de connexion</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row" style="margin:0;">
|
||||||
|
<a aria-label="Compte clipper" href="{% url 'django_cas_ng.views.login' %}">
|
||||||
|
<div class="col-xs-12 col-sm-6" id="login_clipper">
|
||||||
Compte clipper
|
Compte clipper
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a id="login_outsider" href="{% url 'gestioncof.views.login_ext' %}">
|
<a aria-label="Extérieur" href="{% url 'gestioncof.views.login_ext' %}">
|
||||||
|
<div class="col-xs-12 col-sm-6" id="login_outsider">
|
||||||
Extérieur
|
Extérieur
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="spacer"></div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
{% extends "base_title.html" %}
|
{% extends "base_title.html" %}
|
||||||
|
{% load bootstrap %}
|
||||||
|
|
||||||
|
{% block page_size %}col-sm-8{%endblock%}
|
||||||
|
|
||||||
{% block realcontent %}
|
{% block realcontent %}
|
||||||
<h2>Modifier mon profil</h2>
|
<h2>Modifier mon profil</h2>
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p class="success">Votre profil a été mis à jour avec succès !</p>
|
<p class="success">Votre profil a été mis à jour avec succès !</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form id="profile" method="post" action="{% url 'gestioncof.views.profile' %}">
|
<form id="profile form-inline" method="post" action="{% url 'gestioncof.views.profile' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
<fieldset>
|
||||||
{{ form.as_table }}
|
{% for field in form %}
|
||||||
</table>
|
{{ field | bootstrap}}
|
||||||
<input type="submit" class="btn-submit" value="Enregistrer" />
|
{% endfor %}
|
||||||
|
</fieldset>
|
||||||
|
<input type="submit" class="btn btn-primary pull-right" value="Enregistrer" />
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{% extends "base_title.html" %}
|
{% extends "base_title.html" %}
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
|
|
||||||
|
{% block page_size %}col-sm-8{% endblock %}
|
||||||
|
|
||||||
{% block realcontent %}
|
{% block realcontent %}
|
||||||
<h2>Sondage: {{ survey.title }}</h2>
|
<h2>Sondage: {{ survey.title }}</h2>
|
||||||
{% if success %}
|
{% if success %}
|
||||||
|
@ -13,12 +15,15 @@
|
||||||
{% if survey.details %}
|
{% if survey.details %}
|
||||||
<p>{{ survey.details }}</p>
|
<p>{{ survey.details }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form method="post" action="{% url 'gestioncof.views.survey' survey.id %}">
|
<form class="form-horizontal" method="post" action="{% url 'gestioncof.views.survey' survey.id %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form | bootstrap}}
|
{{ form | bootstrap}}
|
||||||
<input type="submit" class="btn-submit" value="Enregistrer" />
|
|
||||||
|
<div class="pull-right">
|
||||||
{% if current_answer %}
|
{% if current_answer %}
|
||||||
<input type="submit" name="delete" class="btn-submit" value="Supprimer ma réponse" />
|
<input type="submit" name="delete" class="btn btn btn-default" value="Supprimer ma réponse" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<input type="submit" class="btn btn-primary" value="Enregistrer" />
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue