diff --git a/public/js/components/searchbar/action.js b/public/js/components/searchbar/action.js deleted file mode 100644 index d13cd0551..000000000 --- a/public/js/components/searchbar/action.js +++ /dev/null @@ -1,43 +0,0 @@ -export default { - props: { - res: { - type: Object - }, - action: { - type: Object - }, - cssclass: { - type: String, - default: '' - } - }, - emits: [ 'actionexecuted' ], - template: ` - - - `, - methods: { - getactionhref: function() { - return (this.action.type === 'link') ? this.action.action(this.res) - : 'javascript:void(0);'; - }, - execaction: function() { - this.action.action(this.res); - this.$emit('actionexecuted'); - }, - renderif: function() { - if(this.action?.renderif === undefined) { - return true; - } - - return this.action.renderif(this.res); - } - } -}; diff --git a/public/js/components/searchbar/actions.js b/public/js/components/searchbar/actions.js deleted file mode 100644 index c4e99f2b9..000000000 --- a/public/js/components/searchbar/actions.js +++ /dev/null @@ -1,37 +0,0 @@ -import action from "./action.js"; - -export default { - props: [ "res", "actions" ], - components: { - action: action - }, - emits: [ 'actionexecuted' ], - template: ` - -
- `, - methods: { - hasicon: function(index) { - return (typeof this.actions[index].icon !== "undefined"); - }, - geticonclass: function(index) { - return this.actions[index].icon; - }, - renderif: function(action) { - if(action?.renderif === undefined) { - return true; - } - - return action.renderif(this.res); - } - } -}; diff --git a/public/js/components/searchbar/employee.js b/public/js/components/searchbar/employee.js deleted file mode 100644 index f1e6a67f6..000000000 --- a/public/js/components/searchbar/employee.js +++ /dev/null @@ -1,89 +0,0 @@ -import action from "./action.js"; -import actions from "./actions.js"; - -export default { - props: [ "res", "actions" ], - components: { - action: action, - actions: actions - }, - emits: [ 'actionexecuted' ], - template: ` -
- -
-
- - - - -
- -
- - {{ res.name }} - - -
- -
- -
-
Standard-Kostenstelle
-
-
    -
  • {{ stdkst }}
  • -
- keine -
-
- -
-
Organisations-Einheit
-
-
    -
  • {{ oe }}
  • -
- keine -
-
- -
-
EMail
- -
- -
-
Telefon
- -
- -
- - - -
-
- -
- `, - methods: { - }, - computed: { - mailtourl: function() { - return 'mailto:' + this.res.email; - }, - telurl: function() { - return 'tel:' + this.res.phone; - } - } -}; \ No newline at end of file diff --git a/public/js/components/searchbar/organisationunit.js b/public/js/components/searchbar/organisationunit.js deleted file mode 100644 index 09e2822a3..000000000 --- a/public/js/components/searchbar/organisationunit.js +++ /dev/null @@ -1,83 +0,0 @@ -import action from "./action.js"; -import actions from "./actions.js"; - -export default { - props: [ "res", "actions" ], - components: { - action: action, - actions: actions - }, - emits: [ 'actionexecuted' ], - template: ` -
- -
-
- - - -
- -
- - {{ res.name }} - - -
- -
- -
-
übergeordnete OrgEinheit
-
- {{ res.parentoe_name }} -
-
- -
-
Gruppen-EMail
- -
- -
-
Leiter
-
-
    -
  • {{ leader.name }}
  • -
- N.N. -
-
- -
-
Mitarbeiter-Anzahl
-
- {{ res.number_of_people }} -
-
- -
- - - -
-
- -
- `, - methods: { - }, - computed: { - mailtourl: function() { - return 'mailto:' + this.res.mailgroup; - }, - telurl: function() { - return 'tel:' + this.res.phone; - } - } -}; \ No newline at end of file diff --git a/public/js/components/searchbar/person.js b/public/js/components/searchbar/person.js deleted file mode 100644 index eeb476149..000000000 --- a/public/js/components/searchbar/person.js +++ /dev/null @@ -1,55 +0,0 @@ -import action from "./action.js"; -import actions from "./actions.js"; - -export default { - props: [ "res", "actions" ], - components: { - action: action, - actions: actions - }, - emits: [ 'actionexecuted' ], - template: ` -
- -
-
- - - - -
- -
- - {{ res.gn }} {{ res.sn }} - - -
- -
-
-
EMail
- -
-
- - - -
-
- -
- `, - methods: { - }, - computed: { - mailtourl: function() { - return 'mailto:' + this.res.mail; - } - } -}; \ No newline at end of file diff --git a/public/js/components/searchbar/prestudent.js b/public/js/components/searchbar/prestudent.js deleted file mode 100644 index 99837fe4b..000000000 --- a/public/js/components/searchbar/prestudent.js +++ /dev/null @@ -1,88 +0,0 @@ -import action from "./action.js"; -import actions from "./actions.js"; - -export default { - props: [ "res", "actions" ], - components: { - action: action, - actions: actions - }, - emits: [ 'actionexecuted' ], - template: ` -
- -
-
- - - - -
- -
- - {{ res.name }} - - -
- -
- -
-
Prestudent_id
-
- {{ res.prestudent_id }} -
-
- -
-
Student_uid
-
- {{ res.uid }} -
-
- -
-
Person_id
-
- {{ res.person_id }} -
-
- -
-
Studiengang
-
- {{ res.bezeichnung }} -
-
- -
-
EMail
- -
- - -
- - - -
-
- -
- `, - methods: { - }, - computed: { - mailtourl: function() { - return 'mailto:' + this.res.email; - } - } -}; \ No newline at end of file diff --git a/public/js/components/searchbar/raum.js b/public/js/components/searchbar/raum.js deleted file mode 100644 index 4a55b417a..000000000 --- a/public/js/components/searchbar/raum.js +++ /dev/null @@ -1,54 +0,0 @@ -import action from "./action.js"; -import actions from "./actions.js"; - -export default { - props: [ "res", "actions" ], - components: { - action: action, - actions: actions - }, - emits: [ 'actionexecuted' ], - template: /*html*/` -
-
-
- - - -
-
- - {{ res.ort_kurzbz }} - - -
- -
-
-
Standort
-
{{ res.standort }}
-
-
-
Sitzplätze
-
{{ res.sitzplaetze }}
-
-
-
Gebäude
-
{{ res.building }}
-
-
-
Zusatz Informationen
-
-
-
- - - -
-
- -
- `, - methods: { - } -}; \ No newline at end of file diff --git a/public/js/components/searchbar/student.js b/public/js/components/searchbar/student.js deleted file mode 100644 index ac7362d23..000000000 --- a/public/js/components/searchbar/student.js +++ /dev/null @@ -1,91 +0,0 @@ -import action from "./action.js"; -import actions from "./actions.js"; - -export default { - props: [ "res", "actions" ], - components: { - action: action, - actions: actions - }, - emits: [ 'actionexecuted' ], - template: ` -
- -
-
- - - - -
- -
- - {{ res.name }} - - -
- -
- -
-
Student UID
-
- {{ res.uid }} -
-
- -
-
{{$p.t('lehre','studiengang')}}
-
- {{ res.studiengang }} -
-
- -
-
Verband
-
- {{ res.verband }} -
-
- -
-
{{$p.t('person','personenkennzeichen')}}
-
- {{ res.matrikelnr }} -
-
- -
-
{{$p.t('person','email')}}
- -
- -
- - - -
-
- -
- `, - methods: { - }, - computed: { - mailtourl: function() { - return 'mailto:' + this.res.email; - }, - studentImage: function () { - if (!this.res.foto) return; - return 'data:image/jpeg;base64,'.concat(this.res.foto); - }, - } -}; \ No newline at end of file