Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/FOUR-12607 #5704

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions resources/js/processes-catalogue/components/Breadcrumbs.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<template>
<nav aria-label="breadcrumb">
<ol class="breadcrumb bg-transparent p-0 mb-3">
<li class="breadcrumb-item">
<a href="/" :aria-label="$t('Home')">
<i class="fas fa-home" />
</a>
</li>

<li class="breadcrumb-item">
<a href="/processes-catalogue" :aria-label="$t('Home')">
{{ $t('Processes') }}
</a>
</li>

<li v-if="category" class="breadcrumb-item">
<a :href="caegoryRoute" :aria-label="category">
{{ category }}
</a>
</li>

<li v-if="process" class="breadcrumb-item">
{{ process }}
</li>
</ol>
</nav>
</template>

<script>
export default {
router: window.ProcessMaker.Router,
props: ["process", "caegoryRoute", "category"],
luNunezProcessmaker marked this conversation as resolved.
Show resolved Hide resolved
data() {
return {
list: [],
loading: false,
};
},
mounted() {
this.list = this.transform(this.routes);
},
methods: {
isActive(index) {
return index == (this.list.length - 1);
},
updateRoutes(routes) {
this.list = routes;
},
transform(routes) {
let list = [];
Object.entries(routes).forEach(([title, link]) => {
list.push({
title: title,
link: link,
router: false
});
});
return list;
}
},
};
</script>
61 changes: 34 additions & 27 deletions resources/js/processes-catalogue/components/ProcessesCatalogue.vue
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
<template>
<div class="d-flex w-100">
<div class="w-25">
<h4> {{ $t('Processes Browser') }} </h4>
<div>
<div>
luNunezProcessmaker marked this conversation as resolved.
Show resolved Hide resolved
<breadcrumbs />
</div>
<div class="w-100">
<div v-if="!fields.length" class="d-flex justify-content-center py-5 w-100">
<div>
<div class="d-flex justify-content-center my-5">
<img
class="image d-flex"
src="/img/processes-catalogue-empty.svg"
alt="recent projects"
>
<div class="d-flex w-100">
<div class="w-25">
<h4> {{ $t('Processes Browser') }} </h4>
</div>
<div class="w-100">
<div v-if="!fields.length" class="d-flex justify-content-center py-5 w-100">
<div>
<div class="d-flex justify-content-center my-5">
<img
class="image d-flex"
src="/img/processes-catalogue-empty.svg"
alt="recent projects"
>
</div>
<h4 class="text-center">
{{ $t('Currently you dont have processes created') }}
</h4>
<p class="text-center">
{{ $t('We encourage you to create new processes using our templates') }}
</p>
<p class="text-center my-4">
<button
type="button"
class="btn btn-primary text-capitalize"
>
{{ $t("Show Me The Templates") }}
</button>
</p>
</div>
<h4 class="text-center">
{{ $t('Currently you dont have processes created') }}
</h4>
<p class="text-center">
{{ $t('We encourage you to create new processes using our templates') }}
</p>
<p class="text-center my-4">
<button
type="button"
class="btn btn-primary text-capitalize"
>
{{ $t("Show Me The Templates") }}
</button>
</p>
</div>
</div>
</div>
Expand All @@ -35,7 +40,10 @@

<script>

import Breadcrumbs from "./Breadcrumbs.vue";

export default {
components: { Breadcrumbs },
data() {
return {
fields: [],
Expand All @@ -45,4 +53,3 @@ export default {
},
};
</script>

Loading