Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 14 additions & 0 deletions resources/img/nl-to-process.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion resources/js/components/templates/ButtonCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
<div :class="{'d-flex': button.helperEnabled}">
<b-card no-body class="button-card" :class="{'col-6 p-0': button.helperEnabled}" @mouseenter="addHoverClass" @mouseleave="removeHoverClass" @click="$emit('card-button-clicked')">
<div class="card-body text-center d-flex justify-content-center flex-column">
<i class="icon mb-1 text-primary" :class="button.icon"></i>
<i v-if="button.icon" class="icon mb-2 text-primary" :class="button.icon" :style="button.iconStyle"></i>
<img v-if="button.svgIcon" :src="button.svgIcon" class="mb-2" :style="button.svgIconStyle">
<h5 class="m-0">{{ button.title }}</h5>
</div>
<div v-if="button.showAiSlogan" class="ai-slogan-container mb-2">
<div class="ai-slogan"><img src="/img/favicon.svg"> {{ $t("Powered by ProcessMaker AI") }}</div>
</div>
</b-card>

<div v-if="button.helperEnabled" class="helper-container col-6 p-0">
Expand Down Expand Up @@ -109,6 +113,20 @@ export default {
.button-card.card-helper .card-text {
color:#363A3E;
}
.ai-slogan-container {
position: absolute;
bottom: 0;
left: 0;
right: 0;
text-align: center;
}
.ai-slogan {
font-size: 70%;
font-weight: 600;
}
.ai-slogan > img {
height: 16px;
}

@media (min-width: 576px) {
.card-deck .card {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/templates/SelectTemplateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
computed: {
subtitle() {
return this.$t(`Create a new ${this.type}.`);
return this.$t(`Start a new process from a blank canvas, a text description, or a preset template.`);
},
createProcess() {
return this.$t('Create Process');
Expand Down
25 changes: 19 additions & 6 deletions resources/js/components/templates/TemplateSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
</div>
</div>
<template v-if="component !== 'template-details'">
<div class="d-flex justify-content-between align-items-center">
<b-pagination
v-model="currentPage"
v-if="templates.length > 0"
Expand All @@ -72,7 +73,16 @@
size="sm"
last-number
first-number
></b-pagination>
></b-pagination>
<div>
<a href="https://www.processmaker.com/resources/customer-success/templates/"
class="text-muted"
target="_blank">
{{ $t("Visit our Gallery for more Templates") }}
</a>
<i class="ml-1 fas fa-external-link-alt text-muted"></i>
</div>
</div>
</template>
</div>
</template>
Expand Down Expand Up @@ -100,15 +110,18 @@ export default {
perPage: 18,
limit: 7,
blankProcessButton: {
title: `Blank ${this.type}`,
title: this.$t("Build Your Own"),
icon: "fa fa-plus",
iconStyle: "font-size: 2em;",
},
aiProcessButton: {
title: `AI ${this.type}`,
title: this.$t("Generate from Text"),
helperEnabled: true,
helperTitle: this.$t("Your word is our command!"),
helperDescription: this.$t("Use Artificial Intelligence in any natural language to create complex Processes, just like writing to a person. Even describe your Process in one language, but output your model in another."),
icon: "fa fa-robot",
helperTitle: this.$t("Try our new Generative AI"),
helperDescription: this.$t("Describe your process. Our AI will build the model for you. Use it immediately or tweak it as needed."),
svgIcon: "../../../img/nl-to-process.svg",
svgIconStyle: "height: 2em;",
showAiSlogan: true,
},
};
},
Expand Down
8 changes: 6 additions & 2 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1721,8 +1721,10 @@
"Template Author": "Template Author",
"Create a new Process": "Create a new Process",
"Since there is no interface translation for this language, translations for these screens will only render for anonymous users in web entries.": "Since there is no interface translation for this language, translations for these screens will only render for anonymous users in web entries.",
"Your word is our command!": "Your word is our command!",
"Use Artificial Intelligence in any natural language to create complex Processes, just like writing to a person. Even describe your Process in one language, but output your model in another.":"Use Artificial Intelligence in any natural language to create complex Processes, just like writing to a person. Even describe your Process in one language, but output your model in another.",
"Generate from Text": "Generate from Text",
"Build Your Own": "Build Your Own",
"Try our new Generative AI": "Try our new Generative AI",
"Describe your process. Our AI will build the model for you. Use it immediately or tweak it as needed.":"Describe your process. Our AI will build the model for you. Use it immediately or tweak it as needed.",
"Publish Template": "Publish Template",
"This will create a re-usable template based on the :assetName :assetType": "This will create a re-usable template based on the :assetName :assetType",
"Template Name": "Template Name",
Expand Down Expand Up @@ -1753,6 +1755,8 @@
"The selected file is invalid or not supported for the Templates importer. Please verify that this file is a Template.":"The selected file is invalid or not supported for the Templates importer. Please verify that this file is a Template.",
"The selected file is invalid or not supported for the Process importer. Please verify that this file is a Process.":"The selected file is invalid or not supported for the Process importer. Please verify that this file is a Process.",
"Host URL": "Host URL",
"Visit our Gallery for more Templates": "Visit our Gallery for more Templates",
"Start a new process from a blank canvas, a text description, or a preset template.": "Start a new process from a blank canvas, a text description, or a preset template.",
"Enter the integration key from ProcessMaker IDP": "Enter the integration key from ProcessMaker IDP",
"Enter the secret key from ProcessMaker IDP": "Enter the secret key from ProcessMaker IDP",
"Host URL": "Host URL",
Expand Down