This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
619 additions
and
244 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM sitdocker/geocity-base:v1.3.2.2021 | ||
FROM sitdocker/geocity-base:v2.1.5 | ||
|
||
ARG ENV | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
let update_form_value = function(item, userprofile) { | ||
|
||
if (document.getElementById(`self_contact_${parseInt(item) + 1}`).checked == true) { | ||
document.getElementById(`id_form-${item}-first_name`).value = userprofile.first_name; | ||
for (const [key, value] of Object.entries(userprofile)) { | ||
document.getElementById(`id_form-${item}-${key}`).value = value; | ||
document.getElementById(`id_form-${item}-${key}`).readOnly = true; | ||
} | ||
} else { | ||
for (const [key, value] of Object.entries(userprofile)) { | ||
document.getElementById(`id_form-${item}-${key}`).value = ''; | ||
document.getElementById(`id_form-${item}-${key}`).readOnly = false; | ||
} | ||
if (document.getElementById(`self_contact_${parseInt(item) + 1}`).checked == true) { | ||
document.getElementById(`id_form-${item}-first_name`).value = userprofile.first_name; | ||
for (const [key, value] of Object.entries(userprofile)) { | ||
document.getElementById(`id_form-${item}-${key}`).value = value; | ||
document.getElementById(`id_form-${item}-${key}`).readOnly = true; | ||
} | ||
|
||
} else { | ||
for (const [key, value] of Object.entries(userprofile)) { | ||
document.getElementById(`id_form-${item}-${key}`).value = ''; | ||
document.getElementById(`id_form-${item}-${key}`).readOnly = false; | ||
} | ||
} | ||
} | ||
|
||
// Create a label to replace "readonly hidden select" readonly | ||
window.addEventListener('load', function () { | ||
var selects = document.querySelectorAll("select[readonly][hidden]"); | ||
for (select of selects) { | ||
let elem = document.createElement('label'); | ||
let text = select.querySelector("option[selected]").text | ||
let div = select.closest('.col-md-9'); | ||
|
||
elem.innerHTML = text; | ||
elem.classList.add('col-form-label', 'bold'); | ||
div.appendChild(elem); | ||
} | ||
}); |
36 changes: 36 additions & 0 deletions
36
geocity/apps/forms/migrations/0018_alter_historicalprice_amount_alter_price_amount.py
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,36 @@ | ||
# Generated by Django 4.1.7 on 2023-03-10 16:03 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("forms", "0017_field_message_for_notified_services_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="historicalprice", | ||
name="amount", | ||
field=models.DecimalField( | ||
decimal_places=2, | ||
help_text="Un montant de 0 peut être utilisé pour avoir un tarif gratuit", | ||
max_digits=6, | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="Montant", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="price", | ||
name="amount", | ||
field=models.DecimalField( | ||
decimal_places=2, | ||
help_text="Un montant de 0 peut être utilisé pour avoir un tarif gratuit", | ||
max_digits=6, | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="Montant", | ||
), | ||
), | ||
] |
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
125 changes: 125 additions & 0 deletions
125
geocity/apps/reports/migrations/0021_remove_section_padding_top_and_more.py
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,125 @@ | ||
# Generated by Django 4.1.7 on 2023-03-20 07:35 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("reports", "0020_headerfooter_sectionrecipient_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="section", | ||
name="padding_top", | ||
), | ||
migrations.AddField( | ||
model_name="sectionamendproperty", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectionauthor", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectioncontact", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectioncreditor", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectiondetail", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectionmap", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectionparagraph", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectionplanning", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectionrecipient", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=40, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectionrecipient", | ||
name="uses_dynamic_recipient", | ||
field=models.BooleanField( | ||
default=True, | ||
help_text="Si le demande est saisie au nom d'une autre personne (requérant) celui-ci sera utilisé", | ||
verbose_name="Destinataire dynamique", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectionstatus", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="sectionvalidation", | ||
name="padding_top", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Espace vide au dessus afin de placer le texte au bon endroit (en pixels). Augmenter la valeur fait descendre le texte", | ||
verbose_name="Espace vide au dessus", | ||
), | ||
), | ||
] |
Oops, something went wrong.