changed some colors in modal scanning

This commit is contained in:
ilmedova 2023-05-05 04:18:40 +05:00
parent 38aad0b376
commit ef731b41d9
1 changed files with 7 additions and 7 deletions

View File

@ -59,9 +59,9 @@
<div class="modal-content py-8 text-left px-8">
<!--Title-->
<div class="pb-3">
<p id="attender_name" class="text-xl font-bold"></p>
<p id="attender_organization" class="text-xl font-bold"></p>
<p id="attender_consent" class="text-xl font-bold"></p>
<span class="text-gray-400">Name and surname: </span><span id="attender_name" class="text-xl font-bold"></span><br/><br/>
<span class="text-gray-400">Organization: </span><span id="attender_organization" class="text-xl font-bold"></span><br/><br/>
<span class="text-gray-400">Photo and video consent: </span><span id="attender_consent" class="text-xl font-bold"></span>
</div>
<!--Footer-->
@ -137,13 +137,13 @@ function onScanSuccess(decodedText, decodedResult) {
$('#attender_name').empty();
$('#attender_organization').empty();
$('#attender_consent').empty();
$('#attender_name').append("Name and surname: " + response.data.name);
$('#attender_organization').append("Organization: " + response.data.organization);
$('#attender_name').append(response.data.name);
$('#attender_organization').append(response.data.organization);
if(response.data.consent_form == 1){
$('#attender_consent').append("Photo and video consent: Allowed");
$('#attender_consent').append("Allowed");
}
else{
$('#attender_consent').append("Photo and video consent: Declined");
$('#attender_consent').append("Declined");
}
if(!$("body").hasClass("modal-active")) {
toggleModal();