Mehr Bilder, Arbeit am Backend
This commit is contained in:
BIN
public/Bilder/kontakt.jpg
Normal file
BIN
public/Bilder/kontakt.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
BIN
public/Bilder/neuigkeiten.jpg
Normal file
BIN
public/Bilder/neuigkeiten.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
@@ -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;
|
||||
|
||||
57
public/js/preapplication/edit.js
Normal file
57
public/js/preapplication/edit.js
Normal 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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user