data_task = {
"fields": {
"Name": "Test task from python ",
"Status": "In progress",
"Start date": "2022-04-23",
"Deadline": "2022-04-28"
}
}
json_data_task = json.dumps(data_task)
r = requests.post(webhook_url, data=json_data_task, headers=headers)
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns = [
path('__debug__/',include(debug_toolbar.urls)),] + urlpatterns
document.querySelectorAll("select[multiple]").forEach((el,k)=>{
var div=newEl('div',{class:'multiselect-dropdown',style:{width:config.style?.width??el.clientWidth+'px',padding:config.style?.padding??''}});
<td data-bs-toggle="modal" data-bs-target="#ArendatorID{{arendator.id}}"
style="font-size 15px; color:#000000; ">{{arendator.city}}
</td>
<div class="modal fade" id="ArendatorID{{arendator.id}}" data-bs-backdrop="static" data-bs-keyboard="true"
tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Дополнительные требования</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
{{arendator.square}}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Закрыть
</button>
</div>
</div>
</div>
</div>
// Скрипт для изменения текста в зависимости от селкта
select.addEventListener("change", function () {
if (this.value == 'Город1') {
document.getElementById('street').innerHTML = street1;
} else {
document.getElementById('street').innerHTML = street2;
}
});
select.onchange = function() {
localStorage.setItem('chText', select.value);
};
window.onload= function(){
if (localStorage.getItem('chText') == 'Город1'){
select.value = localStorage['chText'];
document.getElementById('street').innerHTML = street1;
} else if (localStorage.getItem('chText') == 'Город 2'){
select.value = localStorage['chText'];
document.getElementById('street').innerHTML = street2;
chText = document.getElementById("myselect").addEventListener("change", function () {
document.getElementById('street').innerHTML = this.value;
});
localStorage.setItem('changingText', chText);
localStorage.getItem('changingText');