mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
Layout adaptation
This commit is contained in:
parent
a20f9b4f86
commit
ca05e3d979
@ -47,38 +47,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="footer-ticket-main">
|
<div class="footer-ticket-main">
|
||||||
<ul class="nav nav-tabs justify-content-end">
|
<ul class="nav nav-tabs justify-content-end">
|
||||||
<li class="nav-item">
|
<li class="nav-item p-2">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="m-2 btn btn-light"
|
:class="`btn ${
|
||||||
@click="
|
activeTab === 'set_motive'
|
||||||
activeTab === 'add_comment'
|
? 'btn-primary'
|
||||||
? (activeTab = '')
|
: 'btn-light'
|
||||||
: (activeTab = 'add_comment')
|
}`"
|
||||||
"
|
|
||||||
>
|
|
||||||
<i :class="actionIcons['add_comment']"></i>
|
|
||||||
{{ $t("add_comment.title") }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="m-2 btn btn-light"
|
|
||||||
@click="
|
|
||||||
activeTab === 'add_addressee'
|
|
||||||
? (activeTab = '')
|
|
||||||
: (activeTab = 'add_addressee')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<i :class="actionIcons['add_addressee']"></i>
|
|
||||||
{{ $t("add_addressee.title") }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="m-2 btn btn-light"
|
|
||||||
@click="
|
@click="
|
||||||
activeTab === 'set_motive'
|
activeTab === 'set_motive'
|
||||||
? (activeTab = '')
|
? (activeTab = '')
|
||||||
@ -89,10 +65,47 @@
|
|||||||
{{ $t("set_motive.title") }}
|
{{ $t("set_motive.title") }}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item p-2">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="m-2 btn btn-light"
|
:class="`btn ${
|
||||||
|
activeTab === 'add_comment'
|
||||||
|
? 'btn-primary'
|
||||||
|
: 'btn-light'
|
||||||
|
}`"
|
||||||
|
@click="
|
||||||
|
activeTab === 'add_comment'
|
||||||
|
? (activeTab = '')
|
||||||
|
: (activeTab = 'add_comment')
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<i :class="actionIcons['add_comment']"></i>
|
||||||
|
{{ $t("add_comment.title") }}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item p-2">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
:class="`btn ${
|
||||||
|
activeTab === 'add_addressee'
|
||||||
|
? 'btn-primary'
|
||||||
|
: 'btn-light'
|
||||||
|
}`"
|
||||||
|
@click="
|
||||||
|
activeTab === 'add_addressee'
|
||||||
|
? (activeTab = '')
|
||||||
|
: (activeTab = 'add_addressee')
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<i :class="actionIcons['add_addressee']"></i>
|
||||||
|
{{ $t("add_addressee.title") }}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="nav-item p-2">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-light"
|
||||||
@click="handleClick()"
|
@click="handleClick()"
|
||||||
>
|
>
|
||||||
<i class="fa fa-bolt"></i>
|
<i class="fa fa-bolt"></i>
|
||||||
@ -220,11 +233,8 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
ul.record_actions.sticky-form-buttons {
|
|
||||||
padding-left: 0px;
|
|
||||||
padding-right: 0px;
|
|
||||||
}
|
|
||||||
.sticky-form-buttons {
|
.sticky-form-buttons {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
background: none;
|
background: none;
|
||||||
@ -236,4 +246,9 @@ div.footer-ticket-main {
|
|||||||
div.footer-ticket-details {
|
div.footer-ticket-details {
|
||||||
background: none repeat scroll 0 0 #efe2ca;
|
background: none repeat scroll 0 0 #efe2ca;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed-bottom {
|
||||||
|
max-width: 1272px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -99,7 +99,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
setInterval(function () {
|
setInterval(function () {
|
||||||
today.value = new Date();
|
today.value = new Date();
|
||||||
}, 5000);
|
}, 1000);
|
||||||
|
|
||||||
const since = computed(() => {
|
const since = computed(() => {
|
||||||
const date = new Date(createdAt.value.date);
|
const date = new Date(createdAt.value.date);
|
||||||
@ -112,20 +112,21 @@ export default defineComponent({
|
|||||||
const minutesDiff = Math.floor(
|
const minutesDiff = Math.floor(
|
||||||
(timeDiff % (1000 * 3600)) / (1000 * 60)
|
(timeDiff % (1000 * 3600)) / (1000 * 60)
|
||||||
);
|
);
|
||||||
|
const secondsDiff = Math.floor((timeDiff % (1000 * 60)) / 1000);
|
||||||
|
|
||||||
if (daysDiff < 1) {
|
if (daysDiff < 1 && hoursDiff < 1 && minutesDiff < 1) {
|
||||||
return `${t("banner.hours", { count: hoursDiff })} ${t(
|
return `${t("banner.seconds", { count: secondsDiff })}`;
|
||||||
"banner.and"
|
} else if (daysDiff < 1) {
|
||||||
)} ${t("banner.minutes", {
|
return `${t("banner.hours", { count: hoursDiff })}
|
||||||
count: minutesDiff,
|
${t("banner.minutes", { count: minutesDiff })}
|
||||||
})}`;
|
${t("banner.seconds", { count: secondsDiff })}`;
|
||||||
} else {
|
} else {
|
||||||
return `${t("banner.days", { count: daysDiff })}, ${t(
|
return `${t("banner.days", { count: daysDiff })}, ${t(
|
||||||
"banner.hours",
|
"banner.hours",
|
||||||
{
|
{
|
||||||
count: hoursDiff,
|
count: hoursDiff,
|
||||||
}
|
}
|
||||||
)} ${t("banner.and")} ${t("banner.minutes", {
|
)} ${t("banner.minutes", {
|
||||||
count: minutesDiff,
|
count: minutesDiff,
|
||||||
})}`;
|
})}`;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-lg-4 col-md-6">
|
<div class="col-12">
|
||||||
<vue-multiselect
|
<vue-multiselect
|
||||||
name="selectMotive"
|
name="selectMotive"
|
||||||
id="selectMotive"
|
id="selectMotive"
|
||||||
@ -16,6 +16,7 @@
|
|||||||
:selected-label="$t('multiselect.selected_label')"
|
:selected-label="$t('multiselect.selected_label')"
|
||||||
:options="motives"
|
:options="motives"
|
||||||
v-model="motive"
|
v-model="motive"
|
||||||
|
class="mb-4"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -64,4 +65,8 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped>
|
||||||
|
#selectMotive {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { PropType, defineComponent, ref } from "vue";
|
import { PropType, defineComponent } from "vue";
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
import { UserGroupOrUser } from "../../../../../../../ChillMainBundle/Resources/public/types";
|
import { UserGroupOrUser } from "../../../../../../../ChillMainBundle/Resources/public/types";
|
||||||
@ -14,7 +14,7 @@ import { UserGroupOrUser } from "../../../../../../../ChillMainBundle/Resources/
|
|||||||
import AddresseeComponent from "./AddresseeComponent.vue";
|
import AddresseeComponent from "./AddresseeComponent.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "TicketHistoryAddresseeComponent",
|
name: "TicketHistoryAddresseeComponenvt",
|
||||||
props: {
|
props: {
|
||||||
addressees: {
|
addressees: {
|
||||||
type: Array as PropType<UserGroupOrUser[]>,
|
type: Array as PropType<UserGroupOrUser[]>,
|
||||||
@ -24,7 +24,7 @@ export default defineComponent({
|
|||||||
components: {
|
components: {
|
||||||
AddresseeComponent,
|
AddresseeComponent,
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div v-html="convertMarkdownToHtml(commentHistory.content)"></div>
|
<blockquote class="chill-user-quote">
|
||||||
|
<p v-html="convertMarkdownToHtml(commentHistory.content)"></p>
|
||||||
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="col-12">
|
<div class="col-12 fw-bolder">
|
||||||
{{ motiveHistory.motive.label.fr }}
|
{{ motiveHistory.motive.label.fr }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ import { PropType, defineComponent } from "vue";
|
|||||||
import PersonRenderBox from "../../../../../../../ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue";
|
import PersonRenderBox from "../../../../../../../ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue";
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
import { PersonHistory, Ticket } from "../../../types";
|
import { PersonHistory } from "../../../types";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "TicketHistoryPersonComponent",
|
name: "TicketHistoryPersonComponent",
|
||||||
|
@ -39,9 +39,10 @@ const messages = {
|
|||||||
open: "Ouvert",
|
open: "Ouvert",
|
||||||
since: "Depuis {time}",
|
since: "Depuis {time}",
|
||||||
and: "et",
|
and: "et",
|
||||||
days: "1 jour | {count} jours",
|
days: "|1 jour|{count} jours",
|
||||||
hours: "1 heure | {count} heures",
|
hours: "|1 heure et|{count} heures",
|
||||||
minutes: "1 minute | {count} minutes",
|
minutes: "|1 minute|{count} minutes",
|
||||||
|
seconds: "|1 seconde|{count} secondes",
|
||||||
no_motive: "Pas de motif",
|
no_motive: "Pas de motif",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user