Commit c8a59dcf authored by MOREAU Ulysse's avatar MOREAU Ulysse
Browse files

Fix edit before payment

parent 4969c84a
......@@ -45,7 +45,8 @@ window.addEventListener("load", function (e) {
initChangeDetection(document.orderedit);
var edit_button = document.getElementById("edit_button"),
payment_button = document.getElementById("payment_button");
payment_button = document.getElementById("payment_button"),
payment_href = payment_button.getAttribute("href");
function checkChanges(e){
......@@ -53,11 +54,13 @@ window.addEventListener("load", function (e) {
{
edit_button.style.display="block";
payment_button.classList.toggle("disabled", true);
payment_button.setAttribute("href", "#");
}
else
{
edit_button.style.display="none";
payment_button.classList.toggle("disabled", false);
payment_button.setAttribute("href", payment_href);
}
}
......
@charset "UTF-8";
@font-face {
font-family: "Oxygen";
font-family: 'Oxygen';
src: url("../contrib/Oxygen/Oxygen-Regular.ttf");
font-weight: normal;
font-style: normal; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/base\.sass}line{font-family:\0000334}}
font-style: normal;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
font-family: "Oxygen";
outline: none; }
font-family: 'Oxygen';
outline: none;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/base\.sass}line{font-family:\0000339}}
html {
height: 100%;
color: #333; }
color: #333;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/base\.sass}line{font-family:\0000343}}
body {
margin: 0;
padding: 0;
......@@ -39,28 +40,35 @@ body {
-moz-align-items: stretch;
-ms-align-items: stretch;
-o-align-items: stretch;
align-items: stretch; }
align-items: stretch;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/base\.sass}line{font-family:\0000352}}
a {
text-decoration: none;
color: #df8a11;
transition: text-shadow 0.5s; }
transition: text-shadow 0.5s;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/base\.sass}line{font-family:\0000358}}
img {
max-width: 100%; }
max-width: 100%;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/base\.sass}line{font-family:\0000361}}
nav > ul {
padding: 0;
list-style: none; }
list-style: none;
}
@media screen and (max-width: 640px) {
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/base\.sass}line{font-family:\0000366}}
body {
flex-flow: column; } }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\000033}}
flex-flow: column;
}
}
.disabled {
cursor: not-allowed !important;
background-color: #c7b293 !important;
}
button, .button {
background-color: #df8a11;
cursor: pointer;
......@@ -74,41 +82,49 @@ button, .button {
margin: 5px 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
min-height: 40px !important;
border-radius: 20px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000321}}
button i, .button i {
vertical-align: middle;
margin: 0 0.5em; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000325}}
button:hover, .button:hover {
background-color: #FCCD76;
color: white !important; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000329}}
button[type=button], .button[type=button] {
border-radius: 0;
background-color: white;
color: #333;
border: 1px solid #bbb; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000335}}
button[type=button] + button, .button[type=button] + button {
border-left: none;
transition: background-color 0.5s; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000339}}
button[type=button]:first-child, .button[type=button]:first-child {
border-top-left-radius: 18px;
border-bottom-left-radius: 18px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000343}}
button[type=button]:last-child, .button[type=button]:last-child {
border-top-right-radius: 18px;
border-bottom-right-radius: 18px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000347}}
button[type=button]:hover, .button[type=button]:hover {
background-color: #eaeaea; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000350}}
button[type=button]:active, button[type=button].toggled, .button[type=button]:active, .button[type=button].toggled {
background-color: #ddd; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000354}}
border-radius: 20px;
}
button i, .button i {
vertical-align: middle;
margin: 0 0.5em;
}
button:hover, .button:hover {
background-color: #FCCD76;
color: white !important;
}
button[type=button], .button[type=button] {
border-radius: 0;
background-color: white;
color: #333;
border: 1px solid #bbb;
}
button[type=button] + button, .button[type=button] + button {
border-left: none;
transition: background-color 0.5s;
}
button[type=button]:first-child, .button[type=button]:first-child {
border-top-left-radius: 18px;
border-bottom-left-radius: 18px;
}
button[type=button]:last-child, .button[type=button]:last-child {
border-top-right-radius: 18px;
border-bottom-right-radius: 18px;
}
button[type=button]:hover, .button[type=button]:hover {
background-color: #eaeaea;
}
button[type=button]:active, button.toggled[type=button], .button[type=button]:active, .button.toggled[type=button] {
background-color: #ddd;
}
form p {
-webkit-display: flex;
-moz-display: flex;
......@@ -124,271 +140,309 @@ form p {
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
align-items: center; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000359}}
form p label {
-webkit-flex: 0 1 35%;
-moz-flex: 0 1 35%;
-ms-flex: 0 1 35%;
-o-flex: 0 1 35%;
flex: 0 1 35%;
min-width: 35%;
display: inline-block;
font-weight: bold;
padding-right: 0.5em; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000366}}
form p input, form p .button, form p textarea {
-webkit-flex: 1 1 auto;
-moz-flex: 1 1 auto;
-ms-flex: 1 1 auto;
-o-flex: 1 1 auto;
flex: 1 1 auto;
min-width: 0;
min-height: 30px;
display: inline-block; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000372}}
form p input:last-of-type, form p .button:last-of-type, form p textarea:last-of-type {
border-top-right-radius: 15px;
border-bottom-right-radius: 15px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000376}}
form p input:first-of-type, form p .button:first-of-type, form p textarea:first-of-type {
border-top-left-radius: 15px;
border-bottom-left-radius: 15px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000381}}
form p input + input, form p .button + input, form p textarea + input {
border-left: none; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000384}}
form p label + input {
border-top-left-radius: 15px;
border-bottom-left-radius: 15px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000388}}
form p button, form p .button {
padding: 0.25em 0.5em;
border-radius: 0; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000394}}
align-items: center;
}
form p label {
-webkit-flex: 0 1 35%;
-moz-flex: 0 1 35%;
-ms-flex: 0 1 35%;
-o-flex: 0 1 35%;
flex: 0 1 35%;
min-width: 35%;
display: inline-block;
font-weight: bold;
padding-right: 0.5em;
}
form p input, form p .button, form p textarea {
-webkit-flex: 1 1 auto;
-moz-flex: 1 1 auto;
-ms-flex: 1 1 auto;
-o-flex: 1 1 auto;
flex: 1 1 auto;
min-width: 0;
min-height: 30px;
display: inline-block;
}
form p input:last-of-type, form p .button:last-of-type, form p textarea:last-of-type {
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
form p input:first-of-type, form p .button:first-of-type, form p textarea:first-of-type {
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
}
form p input + input, form p .button + input, form p textarea + input {
border-left: none;
}
form p label + input {
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
}
form p button, form p .button {
padding: 0.25em 0.5em;
border-radius: 0;
}
form img {
border-radius: 15px;
box-shadow: darkgray 3px 3px 10px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\0000398}}
box-shadow: darkgray 3px 3px 10px;
}
form ul {
padding: 0;
list-style: none; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003102}}
form ul li {
display: -webkit-flex;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
align-items: center;
padding: 0; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003108}}
form ul li:hover {
background-color: #eee; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003111}}
form ul label {
-webkit-flex: 1 1 auto;
-moz-flex: 1 1 auto;
-ms-flex: 1 1 auto;
-o-flex: 1 1 auto;
flex: 1 1 auto;
padding: 0.5em;
display: block;
cursor: pointer;
border-radius: 5px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003118}}
form ul input[type=checkbox], form ul input[type=radio] {
width: auto;
text-align: center;
vertical-align: middle;
margin: 0 0.5em; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003124}}
form ul input[type=radio] {
margin-left: 1em; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003127}}
form ul input[type=radio] + label {
margin-left: 0; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003132}}
list-style: none;
}
form ul li {
display: -webkit-flex;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
align-items: center;
padding: 0;
}
form ul li:hover {
background-color: #eee;
}
form ul label {
-webkit-flex: 1 1 auto;
-moz-flex: 1 1 auto;
-ms-flex: 1 1 auto;
-o-flex: 1 1 auto;
flex: 1 1 auto;
padding: 0.5em;
display: block;
cursor: pointer;
border-radius: 5px;
}
form ul input[type=checkbox], form ul input[type=radio] {
width: auto;
text-align: center;
vertical-align: middle;
margin: 0 0.5em;
}
form ul input[type=radio] {
margin-left: 1em;
}
form ul input[type=radio] + label {
margin-left: 0;
}
input, textarea {
padding: 0.25em 0.5em;
border: 1px solid #ccc;
background-color: #eee;
width: 100%;
border-radius: 15px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003139}}
input[type=checkbox], textarea[type=checkbox] {
text-align: start; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003142}}
input:focus, textarea:focus {
border-color: #FCCD76; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003145}}
border-radius: 15px;
}
input[type=checkbox], textarea[type=checkbox] {
text-align: start;
}
input:focus, textarea:focus {
border-color: #FCCD76;
}
select {
padding: 0.25em 0.5em;
border-radius: 15px;
height: 30px; }
@supports (-moz-appearance: none) {
select {
background: transparent url("data:image/gif;base64,R0lGODlhBgAGAKEDAFVVVX9/f9TU1CgmNyH5BAEKAAMALAAAAAAGAAYAAAIODA4hCDKWxlhNvmCnGwUAOw==") right center no-repeat !important;
background-position: calc(100% - 5px) center !important; } }
height: 30px;
}
@supports (-moz-appearance: none) {
select {
background: transparent url("data:image/gif;base64,R0lGODlhBgAGAKEDAFVVVX9/f9TU1CgmNyH5BAEKAAMALAAAAAAGAAYAAAIODA4hCDKWxlhNvmCnGwUAOw==") right center no-repeat !important;
background-position: calc(100% - 5px) center !important;
}
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003154}}
legend {
padding: 1em;
margin: 0 0 0 2em;
font-size: 0.95em; }
font-size: 0.95em;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003159}}
fieldset {
border: none;
border-top: 1px solid #ccc;
padding: 1em 0;
margin: 1em 0; }
margin: 1em 0;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003165}}
.red_button {
background-color: #e55;
color: white; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003169}}
.red_button:hover {
background-color: #e99;
color: white; }
color: white;
}
.red_button:hover {
background-color: #e99;
color: white;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003175}}
.errorlist {
background-color: #e55;
font-weight: bold;
color: white;
list-style: none;
padding: 1em;
margin-bottom: 0; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003184}}
.errorlist li:hover {
background-color: #e55; }
margin-bottom: 0;
}
.errorlist li:hover {
background-color: #e55;
}
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003187}}
.errorlist + p {
background-color: #e99;
margin-top: 0;
color: white;
padding: 1em; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003193}}
.errorlist + p input {
background-color: #F9C3C3;
border-color: #CF8383; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003197}}
.errorlist + p input:focus {
border-color: red; }
padding: 1em;
}
.errorlist + p input {
background-color: #F9C3C3;
border-color: #CF8383;
}
.errorlist + p input:focus {
border-color: red;
}
@media screen and (max-width: 768px) {
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003202}}
form select {
width: 100%; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003204}}
width: 100%;
}
form input, form textarea {
width: 100%; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003206}}
width: 100%;
}
form p {
-webkit-flex-flow: column;
-moz-flex-flow: column;
-ms-flex-flow: column;
-o-flex-flow: column;
flex-flow: column; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003209}}
form p label, form p input {
width: 100%;
margin: 0.25em 0; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003213}}
form p input {
padding: 0.25em 0.5em;
border-radius: 3px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003217}}
form p input + input {
border-left: 1px solid #ccc; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003220}}
form p input, form p .button, form p label, form p textarea {
-webkit-flex: 1 1 auto;
-moz-flex: 1 1 auto;
-ms-flex: 1 1 auto;
-o-flex: 1 1 auto;
flex: 1 1 auto;
display: block;
border-radius: 3px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003225}}
form p input:last-child, form p .button:last-child, form p label:last-child, form p textarea:last-child {
border-radius: 15px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003228}}
form p input + input, form p .button + input, form p label + input, form p textarea + input {
border-left: 1px solid #ccc; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003231}}
form p label + input, form p label + textarea {
border-top-left-radius: 15px;
border-bottom-left-radius: 15px; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_forms\.sass}line{font-family:\00003235}}
form p button, form p .button {
padding: 0.25em 0.5em;
border-radius: 3px;
width: 100%;
margin: 0.25em 0; } }
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/fenwick\/PycharmProjects\/website\/static\/sass\/_tables\.sass}line{font-family:\000031}}
flex-flow: column;
}
form p label, form p input {
width: 100%;
margin: 0.25em 0;
}
form p input {
padding: 0.25em 0.5em;
border-radius: 3px;
}
form p input + input {
border-left: 1px solid #ccc;
}
form p input, form p .button, form p label, form p textarea {
-webkit-flex: 1 1 auto;
-moz-flex: 1 1 auto;
-ms-flex: 1 1 auto;
-o-flex: 1 1 auto;
flex: 1 1 auto;
display: block;
border-radius: 3px;
}