mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
name for searchbar components
This commit is contained in:
@@ -135,13 +135,13 @@
|
||||
|
||||
/* new variant with template/frame */
|
||||
|
||||
.searchbar-result {
|
||||
.searchbar-result-template-frame {
|
||||
border-bottom: 1px solid lightgrey;
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.searchbar-actions {
|
||||
.searchbar-result-template-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: .5rem;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import TemplateFrame from "./template/frame.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultCms',
|
||||
components: {
|
||||
TemplateFrame
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import TemplateFrame from "./template/frame.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultDms',
|
||||
components: {
|
||||
TemplateFrame
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import TemplateFrame from "./template/frame.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultEmployee',
|
||||
components: {
|
||||
TemplateFrame
|
||||
},
|
||||
|
||||
@@ -2,6 +2,7 @@ import TemplateFrame from "./template/frame.js";
|
||||
import TemplateAction from "./template/action.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultMergedperson',
|
||||
components: {
|
||||
TemplateFrame,
|
||||
TemplateAction
|
||||
|
||||
@@ -2,7 +2,8 @@ import ResultPrestudent from "./prestudent.js";
|
||||
import ResultStudent from "./student.js";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
name: 'SearchbarResultMergedstudent',
|
||||
components: {
|
||||
ResultPrestudent,
|
||||
ResultStudent
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import TemplateFrame from "./template/frame.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultOrganistationunit',
|
||||
components: {
|
||||
TemplateFrame
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import TemplateFrame from "./template/frame.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultPerson',
|
||||
components: {
|
||||
TemplateFrame
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import TemplateFrame from "./template/frame.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultPrestudent',
|
||||
components: {
|
||||
TemplateFrame
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import TemplateFrame from "./template/frame.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultRoom',
|
||||
components: {
|
||||
TemplateFrame
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import TemplateFrame from "./template/frame.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultStudent',
|
||||
components: {
|
||||
TemplateFrame
|
||||
},
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export default {
|
||||
name: 'SearchbarResultTemplateAction',
|
||||
emits: [ 'actionexecuted' ],
|
||||
props: {
|
||||
res: Object,
|
||||
@@ -22,7 +23,7 @@ export default {
|
||||
}
|
||||
},
|
||||
template: `
|
||||
<a :href="actionHref" @click="actionFunc">
|
||||
<a class="searchbar-result-template-action" :href="actionHref" @click="actionFunc">
|
||||
<slot>{{ $p.t('search/action_default_label') }}</slot>
|
||||
</a>`
|
||||
};
|
||||
@@ -1,6 +1,7 @@
|
||||
import ResultAction from "./action.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultTemplateActions',
|
||||
components: {
|
||||
ResultAction
|
||||
},
|
||||
@@ -10,7 +11,7 @@ export default {
|
||||
actions: Array
|
||||
},
|
||||
template: `
|
||||
<div v-if="actions.length" class="searchbar-actions">
|
||||
<div v-if="actions.length" class="searchbar-result-template-actions">
|
||||
<result-action
|
||||
v-for="(action, index) in actions"
|
||||
:key="action.label"
|
||||
|
||||
@@ -2,6 +2,7 @@ import ResultAction from "./action.js";
|
||||
import ResultActions from "./actions.js";
|
||||
|
||||
export default {
|
||||
name: 'SearchbarResultTemplateFrame',
|
||||
components: {
|
||||
ResultAction,
|
||||
ResultActions
|
||||
@@ -15,7 +16,7 @@ export default {
|
||||
imageFallback: String
|
||||
},
|
||||
template: `
|
||||
<div class="searchbar-result">
|
||||
<div class="searchbar-result-template-frame">
|
||||
<div class="searchbar_grid">
|
||||
<div class="searchbar_icon">
|
||||
<result-action
|
||||
|
||||
@@ -10,6 +10,7 @@ import mergedStudent from "./result/mergedstudent.js";
|
||||
import mergedPerson from "./result/mergedperson.js";
|
||||
|
||||
export default {
|
||||
name: "FhcSearchbar",
|
||||
components: {
|
||||
person,
|
||||
room,
|
||||
|
||||
Reference in New Issue
Block a user