-
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 remote-tracking branch 'default-theme/main'
- Loading branch information
Showing
8 changed files
with
158 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$(document).ready(function () { | ||
$('.contacts_incident').on("click", function () { | ||
let $this = $(this); | ||
const contacts = $this.data('contacts'); | ||
if (contacts.contact_name == contacts.technical_name) { | ||
$('#technical-card').remove(); | ||
let both_subtitle = $('#translated-both-contact-text').text(); | ||
$('#card-subtitle-contact').text(both_subtitle); | ||
} | ||
|
||
$('#contact-name').text(contacts.contact_name); | ||
$('#contact-email').text(contacts.contact_email); | ||
$('#contact-telephone').text(contacts.contact_telephone); | ||
$('#technical-name').text(contacts.technical_name); | ||
$('#technical-email').text(contacts.technical_email); | ||
$('#technical-telephone').text(contacts.technical_telephone); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% load django_bootstrap5 %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
<div class="modal-content"> | ||
<div class="modal-header bg-primary text-white"> | ||
<h4 class="modal-title" id="contacts_incident_label"> | ||
{% translate "Contacts" %} | ||
</h4> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
<div class="modal-body text-center"> | ||
<div class="card" id="contact-card"> | ||
<div class="card-body text-center"> | ||
<h5 class="card-title" id="contact-name"></h5> | ||
<h6 class="card-subtitle text-muted" id="card-subtitle-contact">{% translate "Person in charge" %}</h6> | ||
<span id="translated-both-contact-text" class="d-none"> | ||
{% translate "Person in charge and technical contact" %} | ||
</span> | ||
</div> | ||
<ul class="list-group list-group-flush bg-white"> | ||
<li class="list-group-item"> | ||
<i class="bi bi-envelope me-2"></i> | ||
<span id="contact-email"></span> | ||
</li> | ||
<li class="list-group-item"> | ||
<i class="bi bi-phone me-2"></i> | ||
<span id="contact-telephone"></span> | ||
</li> | ||
</ul> | ||
</div> | ||
<div id="technical-card"> | ||
<hr /> | ||
<div class="card" > | ||
<div class="card-body text-center"> | ||
<h5 class="card-title" id="technical-name"></h5> | ||
<h6 class="card-subtitle mb-2 text-muted">{% translate "Technical contact" %}</h6> | ||
</div> | ||
<ul class="list-group list-group-flush bg-white"> | ||
<li class="list-group-item"> | ||
<i class="bi bi-envelope me-2"></i> | ||
<span id="technical-email"></span> | ||
</li> | ||
<li class="list-group-item"> | ||
<i class="bi bi-phone me-2"></i> | ||
<span id="technical-telephone"></span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% 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
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