From e921e6a9e65c71c66563f88b865955eda9199720 Mon Sep 17 00:00:00 2001 From: Edwina Barbalan Date: Tue, 9 Apr 2019 14:03:55 +0200 Subject: [PATCH] Profil Edit-Funktion --- public/routes/profil.js | 15 +++++++++++++++ public/routes/profilCard.js | 33 ++++++++++++++++++++++++++++++++- public/style/style.css | 2 +- 3 files changed, 48 insertions(+), 2 deletions(-) diff --git a/public/routes/profil.js b/public/routes/profil.js index 0fcf8ff..a3a30a9 100644 --- a/public/routes/profil.js +++ b/public/routes/profil.js @@ -11,5 +11,20 @@ const ProfilRouter = { return { profilcard: _profilcard }; }, methods: { + }, }; + + +/* +$('#myModal').on('show.bs.modal', function (event) { + console.log("Modal Opened") + var button = $(event.relatedTarget) // Button that triggered the modal + var recipient = button.data('whatever') // Extract info from data-* attributes + // If necessary, you could initiate an AJAX request here (and then do the updating in a callback). + // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead. + var modal = $(this) + modal.find('.modal-title').text('New message to ' + recipient) + modal.find('.modal-body input').val(recipient) +}) +*/ diff --git a/public/routes/profilCard.js b/public/routes/profilCard.js index 3966be1..7a061d2 100644 --- a/public/routes/profilCard.js +++ b/public/routes/profilCard.js @@ -2,7 +2,7 @@ Vue.component('ProfilCard', { template: `
-
edit
+
edit
{{ profil.user }}

{{ profil.major }}

@@ -14,6 +14,37 @@ Vue.component('ProfilCard', {
+ +
`, props: ['profil'] }); diff --git a/public/style/style.css b/public/style/style.css index e4d6f26..d57dbe8 100644 --- a/public/style/style.css +++ b/public/style/style.css @@ -24,7 +24,7 @@ } .om-content { margin: 10px; - margin-top: 40px; + margin-top: 80px; margin-bottom: 80px; } .om-content a {