Mehr Bilder, Arbeit am Backend

This commit is contained in:
2026-03-29 21:55:35 +02:00
parent 7c3da000f9
commit 44eb81e99a
18 changed files with 238 additions and 14 deletions

BIN
public/Bilder/kontakt.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@@ -24,6 +24,7 @@ select {
height: 3vh;
min-height: 24px;
flex-shrink: 0;
align-content: center;
}
.header {
@@ -108,6 +109,13 @@ select {
padding: 15px;
}
.content-img {
width: 33%;
height: 150px;
display: block;
margin: auto;
}
.navbar ul {
list-style-type: none;
padding: 10px;

View File

@@ -0,0 +1,57 @@
function addApplication(){
let data = {};
data.district_region = $('#region_new').val();
data.passport_type = $('#passport_type').val();
data.mail = $('#mail').val();
data.first_name = $('#firstname').val();
data.last_name = $('#lastname').val();
data.location = $('#location').val();
console.log(data);
$.ajax({
type: "POST",
url: "/intern/antraege/neu",
data: data,
dataType: "json",
success:function(r){
if(r.messageStatus === "success"){
$('#mail').val("");
$('#firstname').val("");
$('#lastname').val("");
$('#location').val("");
alert(r.errorMessage);
} else {
alert(r.errorMessage);
}
},
error:function(r, a, e){
alert(i18n.common.error_occurred + e);
}
});
}
function deleteApplication(applicationId){
let data = {};
data.id = applicationId;
console.log(data);
if(window.confirm(i18n.blog.confirm_delete)){
$.ajax({
type: "DELETE",
url: "/intern/antraege/loeschen",
data: data,
dataType: "json",
success:function(r){
if(r.messageStatus === "success"){
alert(r.errorMessage);
} else {
alert(r.errorMessage);
}
},
error:function(r, a, e){
alert(i18n.common.error_occurred + e);
}
});
}
}