Change for showing the attachment for issues
This commit is contained in:
parent
2f73d454bb
commit
c1fb9cfa50
@ -2,38 +2,61 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<div class="information-bar" @click="gotoMessages"
|
<div
|
||||||
:class="{ active: activePath == 'message', unread: unreadConversationCount > 0 }">
|
class="information-bar"
|
||||||
|
@click="gotoMessages"
|
||||||
|
:class="{ active: activePath == 'message', unread: unreadConversationCount > 0 }"
|
||||||
|
>
|
||||||
<img alt="freeleaps message" src="@/assets/message.png" />
|
<img alt="freeleaps message" src="@/assets/message.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="navigation-container" role="navigation">
|
<div class="navigation-container" role="navigation">
|
||||||
<button class="navigation-item" @click="gotoWorkspace"
|
<button
|
||||||
:class="{ active: activePath == 'Workspace', badge: unreadWorkspace }">
|
class="navigation-item"
|
||||||
|
@click="gotoWorkspace"
|
||||||
|
:class="{ active: activePath == 'Workspace', badge: unreadWorkspace }"
|
||||||
|
>
|
||||||
<svg-icon icon="workspace" class-name="icon" />
|
<svg-icon icon="workspace" class-name="icon" />
|
||||||
{{ $t('My Work') }}
|
{{ $t('My Work') }}
|
||||||
<div v-if="unreadWorkspace" class="navigation-item-tip">
|
<div v-if="unreadWorkspace" class="navigation-item-tip">
|
||||||
{{ $t('Some update in your work') }}
|
{{ $t('Some update in your work') }}
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="navigation-item" @click="gotoRequests"
|
<button
|
||||||
:class="{ active: activePath == 'Requests', badge: unreadRequest }">
|
class="navigation-item"
|
||||||
|
@click="gotoRequests"
|
||||||
|
:class="{ active: activePath == 'Requests', badge: unreadRequest }"
|
||||||
|
>
|
||||||
<svg-icon icon="requests" class-name="icon" />
|
<svg-icon icon="requests" class-name="icon" />
|
||||||
{{ $t('Jobs') }}
|
{{ $t('Jobs') }}
|
||||||
<div v-if="unreadRequest" class="navigation-item-tip">
|
<div v-if="unreadRequest" class="navigation-item-tip">
|
||||||
{{ $t('Some update in your request') }}
|
{{ $t('Some update in your request') }}
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="navigation-item" @click="gotoProviders" :class="activePath == 'Providers' ? 'active' : ''">
|
<button
|
||||||
|
class="navigation-item"
|
||||||
|
@click="gotoProviders"
|
||||||
|
:class="activePath == 'Providers' ? 'active' : ''"
|
||||||
|
>
|
||||||
<svg-icon icon="providers" class-name="icon" />
|
<svg-icon icon="providers" class-name="icon" />
|
||||||
{{ $t('Workers') }}
|
{{ $t('Workers') }}
|
||||||
</button>
|
</button>
|
||||||
<button class="navigation-item" @click="gotoIssueRequest" :class="activePath == 'Post' ? 'active' : ''">
|
<button
|
||||||
|
class="navigation-item"
|
||||||
|
@click="gotoIssueRequest"
|
||||||
|
:class="activePath == 'Post' ? 'active' : ''"
|
||||||
|
>
|
||||||
<svg-icon icon="post" class-name="icon" />
|
<svg-icon icon="post" class-name="icon" />
|
||||||
{{ $t('Post a Job') }}
|
{{ $t('Post a Job') }}
|
||||||
</button>
|
</button>
|
||||||
<div class="form-check form-switch header-switch-container" @click="gotoProfile">
|
<div class="form-check form-switch header-switch-container" @click="gotoProfile">
|
||||||
<input class="form-check-input" type="checkbox" role="switch"
|
<input
|
||||||
:checked="userProfile?.account?.provider?.accepting_request" id="personal-earning-now-checkbox" disabled />
|
class="form-check-input"
|
||||||
|
type="checkbox"
|
||||||
|
role="switch"
|
||||||
|
:checked="userProfile?.account?.provider?.accepting_request"
|
||||||
|
id="personal-earning-now-checkbox"
|
||||||
|
disabled
|
||||||
|
/>
|
||||||
<label class="form-check-label" for="personal-earning-now-checkbox">
|
<label class="form-check-label" for="personal-earning-now-checkbox">
|
||||||
<span>{{ $t('Providing service') }}</span>
|
<span>{{ $t('Providing service') }}</span>
|
||||||
</label>
|
</label>
|
||||||
@ -44,10 +67,17 @@
|
|||||||
<laguage-switch class="laguage-switch" />
|
<laguage-switch class="laguage-switch" />
|
||||||
</div>
|
</div>
|
||||||
<div class="profile-container">
|
<div class="profile-container">
|
||||||
<img alt="freeleaps logo" data-bs-toggle="dropdown" aria-expanded="false" id="accountButton" :src="userProfile?.account?.basic?.photo?.base64
|
<img
|
||||||
|
alt="freeleaps logo"
|
||||||
|
data-bs-toggle="dropdown"
|
||||||
|
aria-expanded="false"
|
||||||
|
id="accountButton"
|
||||||
|
:src="
|
||||||
|
userProfile?.account?.basic?.photo?.base64
|
||||||
? userProfile?.account?.basic?.photo?.base64
|
? userProfile?.account?.basic?.photo?.base64
|
||||||
: profileUrl
|
: profileUrl
|
||||||
" />
|
"
|
||||||
|
/>
|
||||||
<ul class="dropdown-menu" aria-labelledby="accountButton">
|
<ul class="dropdown-menu" aria-labelledby="accountButton">
|
||||||
<li>
|
<li>
|
||||||
<button class="account-menu-button" @click="gotoProfile">{{ $t('Profile') }}</button>
|
<button class="account-menu-button" @click="gotoProfile">{{ $t('Profile') }}</button>
|
||||||
|
|||||||
@ -8,7 +8,13 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group-container">
|
<div class="input-group-container">
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input class="input-email" id="inputEmail" type="text" placeholder="name@example.com" v-model="email" />
|
<input
|
||||||
|
class="input-email"
|
||||||
|
id="inputEmail"
|
||||||
|
type="text"
|
||||||
|
placeholder="name@example.com"
|
||||||
|
v-model="email"
|
||||||
|
/>
|
||||||
<label for="inputEmail">{{ $t('Enter email address to start') }}</label>
|
<label for="inputEmail">{{ $t('Enter email address to start') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-start" ref="submitButton" @click="trySigninWithEmail()">
|
<button class="btn-start" ref="submitButton" @click="trySigninWithEmail()">
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="directories_containter">
|
<div class="directories_containter">
|
||||||
<div class="directory_container" v-for="(directory, index) in directories" :key="index">
|
<div class="directory_container" v-for="(directory, index) in directories" :key="index">
|
||||||
<div class="directory_cover_image" :style="{ 'background-image': `url(${directory.cover_picture})` }" />
|
<div
|
||||||
|
class="directory_cover_image"
|
||||||
|
:style="{ 'background-image': `url(${directory.cover_picture})` }"
|
||||||
|
/>
|
||||||
<p class="directory-title">{{ directory.title_text }}</p>
|
<p class="directory-title">{{ directory.title_text }}</p>
|
||||||
<p class="directory-subtitle">{{ directory.summary_text }}</p>
|
<p class="directory-subtitle">{{ directory.summary_text }}</p>
|
||||||
<button class="btn btn-link directory-btn" @click="view_link(directory)">
|
<button class="btn btn-link directory-btn" @click="view_link(directory)">
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="blogs" class="blogs_containter">
|
<div v-if="blogs" class="blogs_containter">
|
||||||
<div class="blog_containter" v-for="(blog, index) in blogs" :key="index" @click="view_blog(blog)">
|
<div
|
||||||
|
class="blog_containter"
|
||||||
|
v-for="(blog, index) in blogs"
|
||||||
|
:key="index"
|
||||||
|
@click="view_blog(blog)"
|
||||||
|
>
|
||||||
<h2>{{ blog.blog_name }}</h2>
|
<h2>{{ blog.blog_name }}</h2>
|
||||||
<div class="blog_cover_image" :style="{ 'background-image': `url(${blog.cover_picture})` }" />
|
<div class="blog_cover_image" :style="{ 'background-image': `url(${blog.cover_picture})` }" />
|
||||||
<p v-text="retrieve_summary(blog)"></p>
|
<p v-text="retrieve_summary(blog)"></p>
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="career_containter">
|
<div class="career_containter">
|
||||||
<div class="career-item" v-for="(directory, index) in directories" :key="index" @click="view_link(directory)">
|
<div
|
||||||
|
class="career-item"
|
||||||
|
v-for="(directory, index) in directories"
|
||||||
|
:key="index"
|
||||||
|
@click="view_link(directory)"
|
||||||
|
>
|
||||||
<p class="career-title">
|
<p class="career-title">
|
||||||
{{ directory.title_text }}
|
{{ directory.title_text }}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@ -7,8 +7,13 @@
|
|||||||
<span v-if="accountNeedAttention">!</span>
|
<span v-if="accountNeedAttention">!</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-content-container" id="account-summary">
|
<div class="panel-content-container" id="account-summary">
|
||||||
<button class="panel-item-container" data-bs-toggle="collapse" data-bs-target="#collapse-user-id"
|
<button
|
||||||
aria-expanded="false" aria-controls="collapse-user-id">
|
class="panel-item-container"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#collapse-user-id"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="collapse-user-id"
|
||||||
|
>
|
||||||
<div class="profile-item-container">
|
<div class="profile-item-container">
|
||||||
<label class="profile-item-label" for="account-summary-user-id">{{
|
<label class="profile-item-label" for="account-summary-user-id">{{
|
||||||
$t('User ID')
|
$t('User ID')
|
||||||
@ -18,8 +23,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="panel-item-container" data-bs-toggle="collapse" data-bs-target="#collapse-password"
|
<button
|
||||||
aria-expanded="false" aria-controls="collapse-password">
|
class="panel-item-container"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#collapse-password"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="collapse-password"
|
||||||
|
>
|
||||||
<div class="profile-item-container">
|
<div class="profile-item-container">
|
||||||
<label class="profile-item-label" for="account-summary-password">{{
|
<label class="profile-item-label" for="account-summary-password">{{
|
||||||
$t('Password')
|
$t('Password')
|
||||||
@ -27,8 +37,13 @@
|
|||||||
<span class="profile-item-span" id="account-summary-password"> ******** </span>
|
<span class="profile-item-span" id="account-summary-password"> ******** </span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="panel-item-container" data-bs-toggle="collapse" data-bs-target="#collapse-user-email"
|
<button
|
||||||
aria-expanded="false" aria-controls="collapse-user-email">
|
class="panel-item-container"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#collapse-user-email"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="collapse-user-email"
|
||||||
|
>
|
||||||
<div class="profile-item-container">
|
<div class="profile-item-container">
|
||||||
<label class="profile-item-label" for="account-summary-email">{{
|
<label class="profile-item-label" for="account-summary-email">{{
|
||||||
$t('Email')
|
$t('Email')
|
||||||
@ -38,8 +53,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="panel-item-container" data-bs-toggle="collapse" data-bs-target="#collapse-user-mobile"
|
<button
|
||||||
aria-expanded="false" aria-controls="collapse-user-mobile">
|
class="panel-item-container"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#collapse-user-mobile"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="collapse-user-mobile"
|
||||||
|
>
|
||||||
<div class="profile-item-container">
|
<div class="profile-item-container">
|
||||||
<label class="profile-item-label" for="account-summary-mobile">{{
|
<label class="profile-item-label" for="account-summary-mobile">{{
|
||||||
$t('Mobile')
|
$t('Mobile')
|
||||||
@ -51,29 +71,61 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse collapse-content-container" id="collapse-user-id" aria-labelledby="account-summary"
|
<div
|
||||||
data-bs-parent="#account-panel">
|
class="collapse collapse-content-container"
|
||||||
|
id="collapse-user-id"
|
||||||
|
aria-labelledby="account-summary"
|
||||||
|
data-bs-parent="#account-panel"
|
||||||
|
>
|
||||||
<div class="collapse-item-container">
|
<div class="collapse-item-container">
|
||||||
<div class="collapse-item-input">
|
<div class="collapse-item-input">
|
||||||
<input type="text" v-model="userProfile.account.basic.FLID.identity" readonly="true" v-tooltip
|
<input
|
||||||
title="Generated automatically" delay='{"show":"500", "hide":"100"}' />
|
type="text"
|
||||||
|
v-model="userProfile.account.basic.FLID.identity"
|
||||||
|
readonly="true"
|
||||||
|
v-tooltip
|
||||||
|
title="Generated automatically"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse collapse-content-container" id="collapse-password" aria-labelledby="account-summary"
|
<div
|
||||||
data-bs-parent="#account-panel">
|
class="collapse collapse-content-container"
|
||||||
|
id="collapse-password"
|
||||||
|
aria-labelledby="account-summary"
|
||||||
|
data-bs-parent="#account-panel"
|
||||||
|
>
|
||||||
<div class="collapse-item-container">
|
<div class="collapse-item-container">
|
||||||
<div class="collapse-item-input">
|
<div class="collapse-item-input">
|
||||||
<input type="password" v-model="passwordOperation.password" :placeholder="passwordOperation.placeholder"
|
<input
|
||||||
readonly="true" v-tooltip title="Click to edit" delay='{"show":"500", "hide":"100"}'
|
type="password"
|
||||||
@click="edittingPassword($event)" @blur="stopEdittingPassword($event)" @keyup.enter="blurInput($event)" />
|
v-model="passwordOperation.password"
|
||||||
|
:placeholder="passwordOperation.placeholder"
|
||||||
|
readonly="true"
|
||||||
|
v-tooltip
|
||||||
|
title="Click to edit"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
@click="edittingPassword($event)"
|
||||||
|
@blur="stopEdittingPassword($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
/>
|
||||||
<svg-icon icon="msg-enter" class-name="enter-icon" />
|
<svg-icon icon="msg-enter" class-name="enter-icon" />
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse-item-input">
|
<div class="collapse-item-input">
|
||||||
<input type="password" v-model="passwordOperation.password2" :placeholder="passwordOperation.placeholder2"
|
<input
|
||||||
readonly=" true" v-tooltip title="Click to edit" delay='{"show":"500", "hide":"100"}'
|
type="password"
|
||||||
@click="edittingPassword2($event)" @blur="stopEdittingPassword2($event)" @keyup.enter="blurInput($event)"
|
v-model="passwordOperation.password2"
|
||||||
ref="password2Input" />
|
:placeholder="passwordOperation.placeholder2"
|
||||||
|
readonly=" true"
|
||||||
|
v-tooltip
|
||||||
|
title="Click to edit"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
@click="edittingPassword2($event)"
|
||||||
|
@blur="stopEdittingPassword2($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
ref="password2Input"
|
||||||
|
/>
|
||||||
<svg-icon icon="msg-enter" class-name="enter-icon" />
|
<svg-icon icon="msg-enter" class-name="enter-icon" />
|
||||||
<p v-if="passwordOperation.message" class="error-message">
|
<p v-if="passwordOperation.message" class="error-message">
|
||||||
{{ passwordOperation.message }}
|
{{ passwordOperation.message }}
|
||||||
@ -81,51 +133,104 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse collapse-content-container" id="collapse-user-email" aria-labelledby="account-summary"
|
<div
|
||||||
data-bs-parent="#account-panel">
|
class="collapse collapse-content-container"
|
||||||
|
id="collapse-user-email"
|
||||||
|
aria-labelledby="account-summary"
|
||||||
|
data-bs-parent="#account-panel"
|
||||||
|
>
|
||||||
<div class="collapse-item-container">
|
<div class="collapse-item-container">
|
||||||
<div class="collapse-item-input">
|
<div class="collapse-item-input">
|
||||||
<input type="text" v-model="emailOperation.email.address" readonly="true" v-tooltip title="Click to update"
|
<input
|
||||||
delay='{"show":"500", "hide":"100"}' @click="edittingEmail($event)" @blur="stopEdittingEmail($event)"
|
type="text"
|
||||||
@keyup.enter="blurInput($event)" />
|
v-model="emailOperation.email.address"
|
||||||
|
readonly="true"
|
||||||
|
v-tooltip
|
||||||
|
title="Click to update"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
@click="edittingEmail($event)"
|
||||||
|
@blur="stopEdittingEmail($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="emailOperation.verifyingMode" class="collapse-item-input">
|
<div v-if="emailOperation.verifyingMode" class="collapse-item-input">
|
||||||
<input type="text" v-model="emailOperation.verificationCode" placeholder="verification code" v-tooltip
|
<input
|
||||||
title="Put the verification code received in the email" delay='{"show":"500", "hide":"100"}'
|
type="text"
|
||||||
@blur="stopEdittingEmailVerificationCode($event)" @keyup.enter="blurInput($event)" />
|
v-model="emailOperation.verificationCode"
|
||||||
|
placeholder="verification code"
|
||||||
|
v-tooltip
|
||||||
|
title="Put the verification code received in the email"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
@blur="stopEdittingEmailVerificationCode($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
/>
|
||||||
<svg-icon icon="msg-enter" class-name="enter-icon" />
|
<svg-icon icon="msg-enter" class-name="enter-icon" />
|
||||||
<p v-if="emailOperation.message" class="error-message">{{ emailOperation.message }}</p>
|
<p v-if="emailOperation.message" class="error-message">{{ emailOperation.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button v-if="!emailOperation.verifyingMode" class="btn btn-link" :disabled="emailOperation.email.verified"
|
<button
|
||||||
@click="startVerifyingEmail()" v-tooltip :title="emailOperation.email.verified
|
v-if="!emailOperation.verifyingMode"
|
||||||
|
class="btn btn-link"
|
||||||
|
:disabled="emailOperation.email.verified"
|
||||||
|
@click="startVerifyingEmail()"
|
||||||
|
v-tooltip
|
||||||
|
:title="
|
||||||
|
emailOperation.email.verified
|
||||||
? 'The email has been verified'
|
? 'The email has been verified'
|
||||||
: 'The email needs to be verify'
|
: 'The email needs to be verify'
|
||||||
" delay='{"show":"500", "hide":"100"}'>
|
"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
>
|
||||||
{{ emailOperation.email.verified ? 'Verified' : 'Verify' }}
|
{{ emailOperation.email.verified ? 'Verified' : 'Verify' }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse collapse-content-container" id="collapse-user-mobile" aria-labelledby="account-summary"
|
<div
|
||||||
data-bs-parent="#account-panel">
|
class="collapse collapse-content-container"
|
||||||
|
id="collapse-user-mobile"
|
||||||
|
aria-labelledby="account-summary"
|
||||||
|
data-bs-parent="#account-panel"
|
||||||
|
>
|
||||||
<div class="collapse-item-container">
|
<div class="collapse-item-container">
|
||||||
<div class="collapse-item-input">
|
<div class="collapse-item-input">
|
||||||
<input type="text" v-model="mobileOperation.mobile.number" readonly="true" v-tooltip
|
<input
|
||||||
|
type="text"
|
||||||
|
v-model="mobileOperation.mobile.number"
|
||||||
|
readonly="true"
|
||||||
|
v-tooltip
|
||||||
title="Click to update, be sure to prepend country code, i.e. +86 for China"
|
title="Click to update, be sure to prepend country code, i.e. +86 for China"
|
||||||
@click="edittingMobile($event)" @blur="stopEdittingMobile($event)" @keyup.enter="blurInput($event)" />
|
@click="edittingMobile($event)"
|
||||||
|
@blur="stopEdittingMobile($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="mobileOperation.verifyingMode" class="collapse-item-input">
|
<div v-if="mobileOperation.verifyingMode" class="collapse-item-input">
|
||||||
<input type="text" v-model="mobileOperation.verificationCode" placeholder="verification code" v-tooltip
|
<input
|
||||||
title="Put the verification code received in the mobile number" delay='{"show":"500", "hide":"100"}'
|
type="text"
|
||||||
@blur="stopEdittingMobileVerificationCode($event)" @keyup.enter="blurInput($event)" />
|
v-model="mobileOperation.verificationCode"
|
||||||
|
placeholder="verification code"
|
||||||
|
v-tooltip
|
||||||
|
title="Put the verification code received in the mobile number"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
@blur="stopEdittingMobileVerificationCode($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
/>
|
||||||
<svg-icon icon="msg-enter" class-name="enter-icon" />
|
<svg-icon icon="msg-enter" class-name="enter-icon" />
|
||||||
<p v-if="mobileOperation.message" class="error-input">{{ mobileOperation.message }}</p>
|
<p v-if="mobileOperation.message" class="error-input">{{ mobileOperation.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
<button v-if="!mobileOperation.verifyingMode" class="btn btn-link" :disabled="mobileOperation.mobile.verified"
|
<button
|
||||||
@click="startVerifyingMobile()" v-tooltip :title="mobileOperation.mobile.verified
|
v-if="!mobileOperation.verifyingMode"
|
||||||
|
class="btn btn-link"
|
||||||
|
:disabled="mobileOperation.mobile.verified"
|
||||||
|
@click="startVerifyingMobile()"
|
||||||
|
v-tooltip
|
||||||
|
:title="
|
||||||
|
mobileOperation.mobile.verified
|
||||||
? 'The mobile number has been verified'
|
? 'The mobile number has been verified'
|
||||||
: 'The mobile number needs to be verify'
|
: 'The mobile number needs to be verify'
|
||||||
" delay='{"show":"500", "hide":"100"}'>
|
"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
>
|
||||||
{{ mobileOperation.mobile.verified ? 'Verified' : 'Verify' }}
|
{{ mobileOperation.mobile.verified ? 'Verified' : 'Verify' }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -137,8 +242,13 @@
|
|||||||
<label for="personal-summary">{{ $t('Personal') }}</label>
|
<label for="personal-summary">{{ $t('Personal') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-content-container" id="personal-summary">
|
<div class="panel-content-container" id="personal-summary">
|
||||||
<button class="panel-item-container" data-bs-toggle="collapse" data-bs-target="#collapse-user-identity"
|
<button
|
||||||
aria-expanded="false" aria-controls="collapse-user-identity">
|
class="panel-item-container"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#collapse-user-identity"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="collapse-user-identity"
|
||||||
|
>
|
||||||
<div class="profile-item-container">
|
<div class="profile-item-container">
|
||||||
<label class="profile-item-label" for="account-summary-user-fullname">{{
|
<label class="profile-item-label" for="account-summary-user-fullname">{{
|
||||||
$t('Full name')
|
$t('Full name')
|
||||||
@ -149,20 +259,36 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="panel-item-container" data-bs-toggle="collapse" data-bs-target="#collapse-personal-user-photo"
|
<button
|
||||||
aria-expanded="false" aria-controls="collapse-personal-user-photo">
|
class="panel-item-container"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#collapse-personal-user-photo"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="collapse-personal-user-photo"
|
||||||
|
>
|
||||||
<div class="profile-item-container profile-photo-container">
|
<div class="profile-item-container profile-photo-container">
|
||||||
<img class="profile-photo" alt="user portrait" id="personal-photo-operation-image" :src="userProfile.account.basic.photo.base64
|
<img
|
||||||
|
class="profile-photo"
|
||||||
|
alt="user portrait"
|
||||||
|
id="personal-photo-operation-image"
|
||||||
|
:src="
|
||||||
|
userProfile.account.basic.photo.base64
|
||||||
? userProfile.account.basic.photo.base64
|
? userProfile.account.basic.photo.base64
|
||||||
: profileUrl
|
: profileUrl
|
||||||
" />
|
"
|
||||||
|
/>
|
||||||
<label class="profile-item-label" for="personal-photo-operation-image">{{
|
<label class="profile-item-label" for="personal-photo-operation-image">{{
|
||||||
$t('Portrait')
|
$t('Portrait')
|
||||||
}}</label>
|
}}</label>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="panel-item-container" data-bs-toggle="collapse" data-bs-target="#collapse-personal-user-intro"
|
<button
|
||||||
aria-expanded="false" aria-controls="collapse-personal-user-intro">
|
class="panel-item-container"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#collapse-personal-user-intro"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="collapse-personal-user-intro"
|
||||||
|
>
|
||||||
<div class="profile-item-container">
|
<div class="profile-item-container">
|
||||||
<label class="profile-item-label" for="personal-summary-self-intro">{{
|
<label class="profile-item-label" for="personal-summary-self-intro">{{
|
||||||
$t('Self-intro')
|
$t('Self-intro')
|
||||||
@ -172,8 +298,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="panel-item-container" data-bs-toggle="collapse" data-bs-target="#collapse-personal-earning-now"
|
<button
|
||||||
aria-expanded="false" aria-controls="collapse-personal-earning-now">
|
class="panel-item-container"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#collapse-personal-earning-now"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="collapse-personal-earning-now"
|
||||||
|
>
|
||||||
<div class="profile-item-container">
|
<div class="profile-item-container">
|
||||||
<label class="profile-item-label" for="personal-summary-earning-now">{{
|
<label class="profile-item-label" for="personal-summary-earning-now">{{
|
||||||
$t('Earning now')
|
$t('Earning now')
|
||||||
@ -185,95 +316,185 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse collapse-content-container" id="collapse-user-identity" aria-labelledby="personal-summary"
|
<div
|
||||||
data-bs-parent="#personal-panel">
|
class="collapse collapse-content-container"
|
||||||
|
id="collapse-user-identity"
|
||||||
|
aria-labelledby="personal-summary"
|
||||||
|
data-bs-parent="#personal-panel"
|
||||||
|
>
|
||||||
<div class="collapse-item-container">
|
<div class="collapse-item-container">
|
||||||
<div class="collapse-item-input">
|
<div class="collapse-item-input">
|
||||||
<input type="text" v-model="identityOperation.first_name" placeholder="First Name" v-tooltip
|
<input
|
||||||
title="Click to edit" delay='{"show":"500", "hide":"100"}' readonly="true"
|
type="text"
|
||||||
@click="edittingFirstname($event)" @blur="stopEdittingFirstname($event)"
|
v-model="identityOperation.first_name"
|
||||||
@keyup.enter="blurInput($event)" />
|
placeholder="First Name"
|
||||||
|
v-tooltip
|
||||||
|
title="Click to edit"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
readonly="true"
|
||||||
|
@click="edittingFirstname($event)"
|
||||||
|
@blur="stopEdittingFirstname($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse-item-input">
|
<div class="collapse-item-input">
|
||||||
<input type="text" v-model="identityOperation.last_name" placeholder="Last Name" readonly="true"
|
<input
|
||||||
@click="edittingLastname($event)" @blur="stopEdittingLastname($event)" @keyup.enter="blurInput($event)"
|
type="text"
|
||||||
v-tooltip title="Click to edit" delay='{"show":"500", "hide":"100"}' />
|
v-model="identityOperation.last_name"
|
||||||
|
placeholder="Last Name"
|
||||||
|
readonly="true"
|
||||||
|
@click="edittingLastname($event)"
|
||||||
|
@blur="stopEdittingLastname($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
v-tooltip
|
||||||
|
title="Click to edit"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="collapse collapse-content-container" id="collapse-personal-user-photo"
|
<div
|
||||||
aria-labelledby="personal-summary" data-bs-parent="#personal-panel">
|
class="collapse collapse-content-container"
|
||||||
|
id="collapse-personal-user-photo"
|
||||||
|
aria-labelledby="personal-summary"
|
||||||
|
data-bs-parent="#personal-panel"
|
||||||
|
>
|
||||||
<div class="collapse-item-container column-flex">
|
<div class="collapse-item-container column-flex">
|
||||||
<label class="btn btn-link" for="personal-photo-operation-image">
|
<label class="btn btn-link" for="personal-photo-operation-image">
|
||||||
<img class="user-portrait-img" id="personal-photo-operation-image" alt="user portrait" :src="userProfile.account.basic.photo.base64
|
<img
|
||||||
|
class="user-portrait-img"
|
||||||
|
id="personal-photo-operation-image"
|
||||||
|
alt="user portrait"
|
||||||
|
:src="
|
||||||
|
userProfile.account.basic.photo.base64
|
||||||
? userProfile.account.basic.photo.base64
|
? userProfile.account.basic.photo.base64
|
||||||
: profileUrl
|
: profileUrl
|
||||||
" v-tooltip title="Click to update" @click="selectUserPhoto()" />
|
"
|
||||||
|
v-tooltip
|
||||||
|
title="Click to update"
|
||||||
|
@click="selectUserPhoto()"
|
||||||
|
/>
|
||||||
<div v-if="photoLoading" class="spinner-container">
|
<div v-if="photoLoading" class="spinner-container">
|
||||||
<div class="spinner-border text-primary" role="status" />
|
<div class="spinner-border text-primary" role="status" />
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
<input ref="uploadUserPhotoInput" type="file" :accept="identityOperation.photo.acceptableType" hidden
|
<input
|
||||||
@change="onUserPhotoChange($event)" />
|
ref="uploadUserPhotoInput"
|
||||||
|
type="file"
|
||||||
|
:accept="identityOperation.photo.acceptableType"
|
||||||
|
hidden
|
||||||
|
@change="onUserPhotoChange($event)"
|
||||||
|
/>
|
||||||
<p v-if="message">{{ message }}</p>
|
<p v-if="message">{{ message }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse collapse-content-container" id="collapse-personal-user-intro"
|
<div
|
||||||
aria-labelledby="personal-summary" data-bs-parent="#personal-panel">
|
class="collapse collapse-content-container"
|
||||||
|
id="collapse-personal-user-intro"
|
||||||
|
aria-labelledby="personal-summary"
|
||||||
|
data-bs-parent="#personal-panel"
|
||||||
|
>
|
||||||
<div class="collapse-item-container">
|
<div class="collapse-item-container">
|
||||||
<div class="collapse-item-editor">
|
<div class="collapse-item-editor">
|
||||||
<freeleaps-editor v-model:content="personalOperation.self_intro.content_html"
|
<freeleaps-editor
|
||||||
:disabled="!personalOperation.self_intro.is_editing" />
|
v-model:content="personalOperation.self_intro.content_html"
|
||||||
|
:disabled="!personalOperation.self_intro.is_editing"
|
||||||
|
/>
|
||||||
<div class="btn-group-container">
|
<div class="btn-group-container">
|
||||||
<button v-if="!personalOperation.self_intro.is_editing" class="btn btn-link"
|
<button
|
||||||
@click="personalOperation.self_intro.is_editing = true">
|
v-if="!personalOperation.self_intro.is_editing"
|
||||||
|
class="btn btn-link"
|
||||||
|
@click="personalOperation.self_intro.is_editing = true"
|
||||||
|
>
|
||||||
{{ $t('Edit') }}
|
{{ $t('Edit') }}
|
||||||
</button>
|
</button>
|
||||||
<button v-if="personalOperation.self_intro.is_editing" class="btn btn-link" type="button"
|
<button
|
||||||
data-bs-toggle="offcanvas" data-bs-target="#offcanvas-template" aria-controls="offcanvas-template">
|
v-if="personalOperation.self_intro.is_editing"
|
||||||
|
class="btn btn-link"
|
||||||
|
type="button"
|
||||||
|
data-bs-toggle="offcanvas"
|
||||||
|
data-bs-target="#offcanvas-template"
|
||||||
|
aria-controls="offcanvas-template"
|
||||||
|
>
|
||||||
{{ $t('Templates') }}
|
{{ $t('Templates') }}
|
||||||
</button>
|
</button>
|
||||||
<button v-if="personalOperation.self_intro.is_editing" @click="updateSelfIntro()" class="btn btn-link">
|
<button
|
||||||
|
v-if="personalOperation.self_intro.is_editing"
|
||||||
|
@click="updateSelfIntro()"
|
||||||
|
class="btn btn-link"
|
||||||
|
>
|
||||||
{{ $t('Update') }}
|
{{ $t('Update') }}
|
||||||
</button>
|
</button>
|
||||||
<button v-if="personalOperation.self_intro.is_editing" @click="stopEdittingSelfintro($event)"
|
<button
|
||||||
class="btn btn-link">
|
v-if="personalOperation.self_intro.is_editing"
|
||||||
|
@click="stopEdittingSelfintro($event)"
|
||||||
|
class="btn btn-link"
|
||||||
|
>
|
||||||
{{ $t('Cancel') }}
|
{{ $t('Cancel') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse collapse-content-container" id="collapse-personal-earning-now"
|
<div
|
||||||
aria-labelledby="personal-summary" data-bs-parent="#personal-panel">
|
class="collapse collapse-content-container"
|
||||||
|
id="collapse-personal-earning-now"
|
||||||
|
aria-labelledby="personal-summary"
|
||||||
|
data-bs-parent="#personal-panel"
|
||||||
|
>
|
||||||
<div class="collapse-checkbox-container">
|
<div class="collapse-checkbox-container">
|
||||||
<div class="form-check form-switch">
|
<div class="form-check form-switch">
|
||||||
<input class="form-check-input" type="checkbox" role="switch" id="personal-earning-now-checkbox"
|
<input
|
||||||
v-model="personalOperation.accepting_request" @click="updateAcceptingRequest($event)"
|
class="form-check-input"
|
||||||
:disabled="!paymentOperation.ready_to_receive_money" />
|
type="checkbox"
|
||||||
|
role="switch"
|
||||||
|
id="personal-earning-now-checkbox"
|
||||||
|
v-model="personalOperation.accepting_request"
|
||||||
|
@click="updateAcceptingRequest($event)"
|
||||||
|
:disabled="!paymentOperation.ready_to_receive_money"
|
||||||
|
/>
|
||||||
<label class="form-check-label" for="personal-earning-now-checkbox">
|
<label class="form-check-label" for="personal-earning-now-checkbox">
|
||||||
<span>{{ $t('I want to be a service provider and earn money') }}</span>
|
<span>{{ $t('I want to be a service provider and earn money') }}</span>
|
||||||
<span v-if="personalOperation.show_stripe_status" style="color: red">* {{ $t('Stripe account' +
|
<span v-if="personalOperation.show_stripe_status" style="color: red"
|
||||||
'onboarding is not completed.') }}</span>
|
>* {{ $t('Stripe account' + 'onboarding is not completed.') }}</span
|
||||||
|
>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1" />
|
<div class="flex-1" />
|
||||||
<div class="collapse-item-input">
|
<div class="collapse-item-input">
|
||||||
<input id="personal-expected-salary" v-tooltip title="Click to edit" delay='{"show":"500", "hide":"100"}'
|
<input
|
||||||
readonly="true" @click="edittingExpectedSalary($event)" @blur="stopedittingExpectedSalary($event)"
|
id="personal-expected-salary"
|
||||||
@keyup.enter="blurInput($event)" v-model="personalOperation.expected_salary.hourly" />
|
v-tooltip
|
||||||
|
title="Click to edit"
|
||||||
|
delay='{"show":"500", "hide":"100"}'
|
||||||
|
readonly="true"
|
||||||
|
@click="edittingExpectedSalary($event)"
|
||||||
|
@blur="stopedittingExpectedSalary($event)"
|
||||||
|
@keyup.enter="blurInput($event)"
|
||||||
|
v-model="personalOperation.expected_salary.hourly"
|
||||||
|
/>
|
||||||
<span class="collapse-item-currency">{{
|
<span class="collapse-item-currency">{{
|
||||||
userProfile.account.provider.expected_salary.currency
|
userProfile.account.provider.expected_salary.currency
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse-item-container column-flex">
|
<div class="collapse-item-container column-flex">
|
||||||
<label v-if="Is_Wechat_QR_Code_Payment()" class="collapse-item-uploader" for="qr-uploader">
|
<label
|
||||||
<img v-if="paymentOperation.wechat_qr_code_img.data" class="uploader-img-show"
|
v-if="Is_Wechat_QR_Code_Payment()"
|
||||||
:src="paymentOperation.wechat_qr_code_img.data" />
|
class="collapse-item-uploader"
|
||||||
<img v-if="!paymentOperation.wechat_qr_code_img.data" class="uploader-img-btn"
|
for="qr-uploader"
|
||||||
src="@/assets/images/qr-code.png" />
|
>
|
||||||
|
<img
|
||||||
|
v-if="paymentOperation.wechat_qr_code_img.data"
|
||||||
|
class="uploader-img-show"
|
||||||
|
:src="paymentOperation.wechat_qr_code_img.data"
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
v-if="!paymentOperation.wechat_qr_code_img.data"
|
||||||
|
class="uploader-img-btn"
|
||||||
|
src="@/assets/images/qr-code.png"
|
||||||
|
/>
|
||||||
<span v-if="!paymentOperation.wechat_qr_code_img.data" class="upload-text-btn">{{
|
<span v-if="!paymentOperation.wechat_qr_code_img.data" class="upload-text-btn">{{
|
||||||
$t('Upload QR code to receive payment')
|
$t('Upload QR code to receive payment')
|
||||||
}}</span>
|
}}</span>
|
||||||
@ -281,14 +502,20 @@
|
|||||||
<div class="spinner-border text-primary" role="status" />
|
<div class="spinner-border text-primary" role="status" />
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
<input v-if="Is_Wechat_QR_Code_Payment()" ref="uploadWechatQRCodePhotoInput" type="file" id="qr-uploader"
|
<input
|
||||||
:accept="paymentOperation.wechat_qr_code_img.acceptableType" hidden
|
v-if="Is_Wechat_QR_Code_Payment()"
|
||||||
@change="onUploadWechatQRCodePhoto($event)" />
|
ref="uploadWechatQRCodePhotoInput"
|
||||||
|
type="file"
|
||||||
|
id="qr-uploader"
|
||||||
|
:accept="paymentOperation.wechat_qr_code_img.acceptableType"
|
||||||
|
hidden
|
||||||
|
@change="onUploadWechatQRCodePhoto($event)"
|
||||||
|
/>
|
||||||
<p v-if="message">{{ message }}</p>
|
<p v-if="message">{{ message }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="Is_Stripe_Payment()" class="collapse-item-container">
|
<div v-if="Is_Stripe_Payment()" class="collapse-item-container">
|
||||||
<span>{{ $t('Have you linked your strip account?') }}</span><button class="btn btn-link"
|
<span>{{ $t('Have you linked your strip account?') }}</span
|
||||||
@click="visitStripe()">{{ $t('Visit Stripe') }}</button>
|
><button class="btn btn-link" @click="visitStripe()">{{ $t('Visit Stripe') }}</button>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="personalOperation.accepting_request" class="collapse-item-container">
|
<div v-if="personalOperation.accepting_request" class="collapse-item-container">
|
||||||
<span>{{
|
<span>{{
|
||||||
@ -453,26 +680,49 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="offcanvas offcanvas-end offcanvas-container" tabindex="-1" id="offcanvas-template"
|
<div
|
||||||
aria-labelledby="offcanvas-template">
|
class="offcanvas offcanvas-end offcanvas-container"
|
||||||
|
tabindex="-1"
|
||||||
|
id="offcanvas-template"
|
||||||
|
aria-labelledby="offcanvas-template"
|
||||||
|
>
|
||||||
<div class="offcanvas-header">
|
<div class="offcanvas-header">
|
||||||
<h5 class="offcanvas-title" id="offcanvas-template">
|
<h5 class="offcanvas-title" id="offcanvas-template">
|
||||||
{{ $t('Apply self-intro template') }}
|
{{ $t('Apply self-intro template') }}
|
||||||
</h5>
|
</h5>
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn-close"
|
||||||
|
data-bs-dismiss="offcanvas"
|
||||||
|
aria-label="Close"
|
||||||
|
></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="offcanvas-body">
|
<div class="offcanvas-body">
|
||||||
<div class="accordion" id="template-item-container">
|
<div class="accordion" id="template-item-container">
|
||||||
<div v-for="(template, index) in availableTemplates" :key="index" :id="'template' + index"
|
<div
|
||||||
class="accordion-item">
|
v-for="(template, index) in availableTemplates"
|
||||||
|
:key="index"
|
||||||
|
:id="'template' + index"
|
||||||
|
class="accordion-item"
|
||||||
|
>
|
||||||
<h2 class="accordion-header" :id="'heading' + index">
|
<h2 class="accordion-header" :id="'heading' + index">
|
||||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
|
<button
|
||||||
:data-bs-target="'#' + 'collapse' + index" aria-expanded="false" :aria-controls="'collapse' + index">
|
class="accordion-button collapsed"
|
||||||
|
type="button"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
:data-bs-target="'#' + 'collapse' + index"
|
||||||
|
aria-expanded="false"
|
||||||
|
:aria-controls="'collapse' + index"
|
||||||
|
>
|
||||||
<span class="dashed-container">{{ template.title }}</span>
|
<span class="dashed-container">{{ template.title }}</span>
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
<div :id="'collapse' + index" class="accordion-collapse collapse" :aria-labelledby="'heading' + index"
|
<div
|
||||||
data-bs-parent="#template-item-container">
|
:id="'collapse' + index"
|
||||||
|
class="accordion-collapse collapse"
|
||||||
|
:aria-labelledby="'heading' + index"
|
||||||
|
data-bs-parent="#template-item-container"
|
||||||
|
>
|
||||||
<div class="accordion-body">
|
<div class="accordion-body">
|
||||||
<button class="select-template-button" @click="selectTemplate(template)">
|
<button class="select-template-button" @click="selectTemplate(template)">
|
||||||
{{ $t('Choose') }}
|
{{ $t('Choose') }}
|
||||||
|
|||||||
@ -3,11 +3,20 @@
|
|||||||
<div class="message-hub-conainter">
|
<div class="message-hub-conainter">
|
||||||
<template v-if="!receiver_id">
|
<template v-if="!receiver_id">
|
||||||
<div v-if="conversations && conversations.length > 0" class="conversation-list-container">
|
<div v-if="conversations && conversations.length > 0" class="conversation-list-container">
|
||||||
<div v-for="(conversation, index) in conversations" :key="index" class="conversation-container" :class="{
|
<div
|
||||||
|
v-for="(conversation, index) in conversations"
|
||||||
|
:key="index"
|
||||||
|
class="conversation-container"
|
||||||
|
:class="{
|
||||||
selected: selConversation?.id === conversation?.id
|
selected: selConversation?.id === conversation?.id
|
||||||
}" @click="selectConversation(conversation)">
|
}"
|
||||||
<img class="participant-portrait" alt="user portrait"
|
@click="selectConversation(conversation)"
|
||||||
:src="conversation?.photo?.base64 ? conversation.photo.base64 : profileUrl" />
|
>
|
||||||
|
<img
|
||||||
|
class="participant-portrait"
|
||||||
|
alt="user portrait"
|
||||||
|
:src="conversation?.photo?.base64 ? conversation.photo.base64 : profileUrl"
|
||||||
|
/>
|
||||||
<div class="conversation-summary-container">
|
<div class="conversation-summary-container">
|
||||||
<div class="conversation-summary-header-container">
|
<div class="conversation-summary-header-container">
|
||||||
<span class="participant-fullname">
|
<span class="participant-fullname">
|
||||||
@ -24,23 +33,40 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!conversations || conversations.length == 0" class="conversation-list-empty-container">
|
<div
|
||||||
|
v-if="!conversations || conversations.length == 0"
|
||||||
|
class="conversation-list-empty-container"
|
||||||
|
>
|
||||||
{{ $t('Empty conversation') }}
|
{{ $t('Empty conversation') }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="message-panel-container">
|
<div class="message-panel-container">
|
||||||
<div v-if="messages && messages.length > 0" class="message-thread-container" ref="messageThreadContainer">
|
<div
|
||||||
<div v-for="(item, index) in messages" :key="index" class="message-item-container"
|
v-if="messages && messages.length > 0"
|
||||||
:class="item.sender_id == userIdentityNote ? 'me' : ''">
|
class="message-thread-container"
|
||||||
|
ref="messageThreadContainer"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
v-for="(item, index) in messages"
|
||||||
|
:key="index"
|
||||||
|
class="message-item-container"
|
||||||
|
:class="item.sender_id == userIdentityNote ? 'me' : ''"
|
||||||
|
>
|
||||||
<div class="message-item-header-container">
|
<div class="message-item-header-container">
|
||||||
<img class="message-item-sender-portrait" alt="user portrait" :src="conversation?.sender_photo?.base64 ? conversation.sender_photo.base64 : profileUrl
|
<img
|
||||||
" />
|
class="message-item-sender-portrait"
|
||||||
|
alt="user portrait"
|
||||||
|
:src="
|
||||||
|
conversation?.sender_photo?.base64 ? conversation.sender_photo.base64 : profileUrl
|
||||||
|
"
|
||||||
|
/>
|
||||||
<span class="message-item-sender-fullname">
|
<span class="message-item-sender-fullname">
|
||||||
{{ item.sender_firstname }}
|
{{ item.sender_firstname }}
|
||||||
{{ item.sender_lastname }}
|
{{ item.sender_lastname }}
|
||||||
</span>
|
</span>
|
||||||
<span class="message-item-create-time">
|
<span class="message-item-create-time">
|
||||||
{{ getDateFromFulltimeString(item.create_time) }}</span>
|
{{ getDateFromFulltimeString(item.create_time) }}</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="message-item-message-body">{{ item.message_body }}</div>
|
<div class="message-item-message-body">{{ item.message_body }}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -50,8 +76,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="message-writing-panel-container">
|
<div class="message-writing-panel-container">
|
||||||
<svg-icon icon="msg-enter" class-name="writing-message-enter" />
|
<svg-icon icon="msg-enter" class-name="writing-message-enter" />
|
||||||
<input class="writing-message-input" type="text" v-model="writtenMessage"
|
<input
|
||||||
@keypress.enter="sendMessage(selConversation?.id)" />
|
class="writing-message-input"
|
||||||
|
type="text"
|
||||||
|
v-model="writtenMessage"
|
||||||
|
@keypress.enter="sendMessage(selConversation?.id)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -2,11 +2,21 @@
|
|||||||
<empty-content :loading="loading" :empty="recommendedProviders?.length === 0" />
|
<empty-content :loading="loading" :empty="recommendedProviders?.length === 0" />
|
||||||
<div class="provider-hub-container" id="provider-accordion-container">
|
<div class="provider-hub-container" id="provider-accordion-container">
|
||||||
<template v-if="recommendedProviders">
|
<template v-if="recommendedProviders">
|
||||||
<div class="accordion accordion-list" v-for="(provider, index) in recommendedProviders" :key="index">
|
<div
|
||||||
|
class="accordion accordion-list"
|
||||||
|
v-for="(provider, index) in recommendedProviders"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
<div class="accordion-item my-3">
|
<div class="accordion-item my-3">
|
||||||
<h2 class="accordion-header">
|
<h2 class="accordion-header">
|
||||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
|
<button
|
||||||
:data-bs-target="'#collapse' + index" aria-expanded="false" :aria-controls="'collapse' + index">
|
class="accordion-button collapsed"
|
||||||
|
type="button"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
:data-bs-target="'#collapse' + index"
|
||||||
|
aria-expanded="false"
|
||||||
|
:aria-controls="'collapse' + index"
|
||||||
|
>
|
||||||
<div class="provider-summary-containter dashed-container">
|
<div class="provider-summary-containter dashed-container">
|
||||||
<div class="provider-portrait-containter">
|
<div class="provider-portrait-containter">
|
||||||
<img class="provider-portrait" alt="user portrait" src="@/assets/profile.png" />
|
<img class="provider-portrait" alt="user portrait" src="@/assets/profile.png" />
|
||||||
@ -15,7 +25,8 @@
|
|||||||
<label class="provider-name-label" for="provider-name">{{ $t('Name') }}</label>
|
<label class="provider-name-label" for="provider-name">{{ $t('Name') }}</label>
|
||||||
<span class="provider-name-span" id="provider-name">
|
<span class="provider-name-span" id="provider-name">
|
||||||
{{ provider.user_profile.first_name }}
|
{{ provider.user_profile.first_name }}
|
||||||
{{ provider.user_profile.last_name }}</span>
|
{{ provider.user_profile.last_name }}</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="provider-stay-on-freeleaps-container">
|
<div class="provider-stay-on-freeleaps-container">
|
||||||
<label class="provider-stay-on-freeleaps-label" for="provider-stay-on-freeleaps">
|
<label class="provider-stay-on-freeleaps-label" for="provider-stay-on-freeleaps">
|
||||||
@ -23,11 +34,16 @@
|
|||||||
</label>
|
</label>
|
||||||
<span class="provider-stay-on-freeleaps-span" id="provider-stay-on-freeleaps">
|
<span class="provider-stay-on-freeleaps-span" id="provider-stay-on-freeleaps">
|
||||||
{{ provider.activeness_achievement.days_of_staying_on }}
|
{{ provider.activeness_achievement.days_of_staying_on }}
|
||||||
{{ $t('day(s)') }}</span>
|
{{ $t('day(s)') }}</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="provider-delivered-projects-container">
|
<div class="provider-delivered-projects-container">
|
||||||
<label class="provider-delivered-projects-label" for="provider-delivered-projects">
|
<label
|
||||||
{{ $t('Delivered projects') }}</label>
|
class="provider-delivered-projects-label"
|
||||||
|
for="provider-delivered-projects"
|
||||||
|
>
|
||||||
|
{{ $t('Delivered projects') }}</label
|
||||||
|
>
|
||||||
<span class="provider-delivered-projects-span" id="provider-delivered-projects">
|
<span class="provider-delivered-projects-span" id="provider-delivered-projects">
|
||||||
{{ provider.provider_achievement.delivered_projects }}
|
{{ provider.provider_achievement.delivered_projects }}
|
||||||
</span>
|
</span>
|
||||||
@ -48,20 +64,27 @@
|
|||||||
$t('Credit score')
|
$t('Credit score')
|
||||||
}}</label>
|
}}</label>
|
||||||
<span class="provider-credit-score-span" id="provider-credit-score">
|
<span class="provider-credit-score-span" id="provider-credit-score">
|
||||||
{{ provider.provider_achievement.credit }}</span>
|
{{ provider.provider_achievement.credit }}</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
<div :id="'collapse' + index" class="accordion-collapse collapse"
|
<div
|
||||||
data-bs-parent="#provider-accordion-container">
|
:id="'collapse' + index"
|
||||||
|
class="accordion-collapse collapse"
|
||||||
|
data-bs-parent="#provider-accordion-container"
|
||||||
|
>
|
||||||
<div class="accordion-body">
|
<div class="accordion-body">
|
||||||
<div class="self-intro-container">
|
<div class="self-intro-container">
|
||||||
<label class="self-intro-content-label" for="self-intro-content">{{
|
<label class="self-intro-content-label" for="self-intro-content">{{
|
||||||
$t('Self intro')
|
$t('Self intro')
|
||||||
}}</label>
|
}}</label>
|
||||||
<div class="self-intro-content-container" id="self-intro-content"
|
<div
|
||||||
v-html="provider.user_profile.self_intro.content_html"></div>
|
class="self-intro-content-container"
|
||||||
|
id="self-intro-content"
|
||||||
|
v-html="provider.user_profile.self_intro.content_html"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="statistics-container">
|
<div class="statistics-container">
|
||||||
<label class="self-intro-content-label" for="statistics-content">{{
|
<label class="self-intro-content-label" for="statistics-content">{{
|
||||||
@ -90,10 +113,16 @@
|
|||||||
<label class="dd-project-label" for="delivery-top-programming-language">{{
|
<label class="dd-project-label" for="delivery-top-programming-language">{{
|
||||||
$t('Top programming languages')
|
$t('Top programming languages')
|
||||||
}}</label>
|
}}</label>
|
||||||
<div class="delivery-top-programming-language-content-container"
|
<div
|
||||||
id="delivery-top-programming-language">
|
class="delivery-top-programming-language-content-container"
|
||||||
<span v-for="(lang, index) in provider.provider_deliveries
|
id="delivery-top-programming-language"
|
||||||
.top_programming_languages" :key="index" class="dd-project-span">
|
>
|
||||||
|
<span
|
||||||
|
v-for="(lang, index) in provider.provider_deliveries
|
||||||
|
.top_programming_languages"
|
||||||
|
:key="index"
|
||||||
|
class="dd-project-span"
|
||||||
|
>
|
||||||
#{{ lang }}
|
#{{ lang }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -185,24 +214,35 @@
|
|||||||
$t('Action panel')
|
$t('Action panel')
|
||||||
}}</label>
|
}}</label>
|
||||||
<div class="invite-to-request-container">
|
<div class="invite-to-request-container">
|
||||||
<label class="invite-to-request-content-label" for="invite-to-request-content">{{ $t('Invite') }}
|
<label class="invite-to-request-content-label" for="invite-to-request-content"
|
||||||
<span class="invite-to-request-name-span">{{ provider.user_profile.first_name }}
|
>{{ $t('Invite') }}
|
||||||
{{ provider.user_profile.last_name }}</span>
|
<span class="invite-to-request-name-span"
|
||||||
{{ $t('to my open requests') }}</label>
|
>{{ provider.user_profile.first_name }}
|
||||||
|
{{ provider.user_profile.last_name }}</span
|
||||||
|
>
|
||||||
|
{{ $t('to my open requests') }}</label
|
||||||
|
>
|
||||||
<div class="invite-to-request-content-container" id="invite-to-request-content">
|
<div class="invite-to-request-content-container" id="invite-to-request-content">
|
||||||
<div class="form-check" v-for="(request, index) in requests" :key="index">
|
<div class="form-check" v-for="(request, index) in requests" :key="index">
|
||||||
<input class="form-check-input" type="checkbox" :value="request.id" :id="'check' + request.id"
|
<input
|
||||||
|
class="form-check-input"
|
||||||
|
type="checkbox"
|
||||||
|
:value="request.id"
|
||||||
|
:id="'check' + request.id"
|
||||||
v-model="checkedRequests"
|
v-model="checkedRequests"
|
||||||
@change="checkRequest($event, request.id, provider.user_profile.user_id)" />
|
@change="checkRequest($event, request.id, provider.user_profile.user_id)"
|
||||||
|
/>
|
||||||
<label class="form-check-label" :for="'check' + request.id">{{
|
<label class="form-check-label" :for="'check' + request.id">{{
|
||||||
request.title
|
request.title
|
||||||
}}</label>
|
}}</label>
|
||||||
</div>
|
</div>
|
||||||
<span class="invite-to-request-note-text">*{{
|
<span class="invite-to-request-note-text"
|
||||||
|
>*{{
|
||||||
$t(
|
$t(
|
||||||
'Once the request is selected, the provider will be invited to see the request.'
|
'Once the request is selected, the provider will be invited to see the request.'
|
||||||
)
|
)
|
||||||
}}</span>
|
}}</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -669,8 +669,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// To be called with initiating zoom call
|
// To be called with initiating zoom call
|
||||||
redirectToZoomOAuth() {
|
redirectToZoomOAuth() {
|
||||||
const clientId = "YwetcrCFTzS_fHELZjkhPw"
|
const clientId = 'YwetcrCFTzS_fHELZjkhPw'
|
||||||
const redirectUri = "http://localhost:5173/api/messages/oauth/zoom/callback"
|
const redirectUri = 'http://localhost:5173/api/messages/oauth/zoom/callback'
|
||||||
const zoomOAuthUrl = `https://zoom.us/oauth/authorize?response_type=code&client_id=${clientId}&redirect_uri=${redirectUri}&scope=meeting:write:meeting`
|
const zoomOAuthUrl = `https://zoom.us/oauth/authorize?response_type=code&client_id=${clientId}&redirect_uri=${redirectUri}&scope=meeting:write:meeting`
|
||||||
|
|
||||||
// Redirect the user to Zoom's OAuth 2.0 consent page
|
// Redirect the user to Zoom's OAuth 2.0 consent page
|
||||||
|
|||||||
@ -112,6 +112,17 @@
|
|||||||
<p v-if="!updatingIssue || updatingIssue.issue_id !== issue.id" class="project-item-text">
|
<p v-if="!updatingIssue || updatingIssue.issue_id !== issue.id" class="project-item-text">
|
||||||
{{ issue.description }}
|
{{ issue.description }}
|
||||||
</p>
|
</p>
|
||||||
|
<!-- Show attachment if existing -->
|
||||||
|
<p v-if="issue.attachments" class="project-item-text">
|
||||||
|
<div class="project-issue-container" v-for="(attachment, issue_index) in issue.attachments"
|
||||||
|
:key="issue_index" :id="'project-issue-' + issue_index">
|
||||||
|
<button class="btn btn-link"
|
||||||
|
@click="downloadAttachedFile(issue.id, attachment.document_id, attachment.file_name)">
|
||||||
|
{{ $t('Download') }} {{ attachment.file_name }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</p>
|
||||||
|
<!-- Ending of showing attachment if existing -->
|
||||||
<div v-if="updatingIssue && updatingIssue.issue_id === issue.id"
|
<div v-if="updatingIssue && updatingIssue.issue_id === issue.id"
|
||||||
class="project-issue-description-container">
|
class="project-issue-description-container">
|
||||||
<div class="project-issue-description">
|
<div class="project-issue-description">
|
||||||
@ -196,6 +207,26 @@ export default {
|
|||||||
this.mnx_backendErrorHandler(error)
|
this.mnx_backendErrorHandler(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
downloadAttachedFile(request_id, document_id, file_name) {
|
||||||
|
WorksapceApi.fetchAttachedFileAsDownload(request_id, document_id)
|
||||||
|
.then((response) => {
|
||||||
|
console.log('resposne', response)
|
||||||
|
const link = document.createElement('a')
|
||||||
|
console.log('this is link', link)
|
||||||
|
link.href = response.data.download_url
|
||||||
|
link.download = file_name
|
||||||
|
link.target = '_blank'
|
||||||
|
document.body.appendChild(link)
|
||||||
|
link.click()
|
||||||
|
|
||||||
|
// clean up "a" element & remove ObjectURL
|
||||||
|
document.body.removeChild(link)
|
||||||
|
// URL.revokeObjectURL(href) //TODO: navigate to the preview page
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
this.mnx_backendErrorHandler(error)
|
||||||
|
})
|
||||||
|
},
|
||||||
isOngoingProject(project) {
|
isOngoingProject(project) {
|
||||||
return project.status == projectStatusEnum.ONGOING
|
return project.status == projectStatusEnum.ONGOING
|
||||||
},
|
},
|
||||||
@ -249,7 +280,9 @@ export default {
|
|||||||
fdata.append('issue_id', this.updatingIssue.issue_id)
|
fdata.append('issue_id', this.updatingIssue.issue_id)
|
||||||
fdata.append('issue_title', this.updatingIssue.issue_title)
|
fdata.append('issue_title', this.updatingIssue.issue_title)
|
||||||
fdata.append('issue_description', this.updatingIssue.issue_description)
|
fdata.append('issue_description', this.updatingIssue.issue_description)
|
||||||
|
if (this.updatingIssue.issue_attachment != null) {
|
||||||
fdata.append('issue_attachment', this.updatingIssue.issue_attachment)
|
fdata.append('issue_attachment', this.updatingIssue.issue_attachment)
|
||||||
|
}
|
||||||
WorksapceApi.updateIssueForProduct(fdata)
|
WorksapceApi.updateIssueForProduct(fdata)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// this.$refs.issueBtn.blur()
|
// this.$refs.issueBtn.blur()
|
||||||
|
|||||||
@ -1,26 +1,48 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="request-issue-container offcanvas-parent">
|
<div class="request-issue-container offcanvas-parent">
|
||||||
<div class="offcanvas offcanvas-end offcanvas-container" tabindex="-1" id="offcanvas-copy-existing"
|
<div
|
||||||
aria-labelledby="offcanvas-copy-existing">
|
class="offcanvas offcanvas-end offcanvas-container"
|
||||||
|
tabindex="-1"
|
||||||
|
id="offcanvas-copy-existing"
|
||||||
|
aria-labelledby="offcanvas-copy-existing"
|
||||||
|
>
|
||||||
<div class="offcanvas-header">
|
<div class="offcanvas-header">
|
||||||
<h5 class="offcanvas-title" id="offcanvas-copy-existing">
|
<h5 class="offcanvas-title" id="offcanvas-copy-existing">
|
||||||
{{ $t('Copy from existing request') }}
|
{{ $t('Copy from existing request') }}
|
||||||
</h5>
|
</h5>
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn-close"
|
||||||
|
data-bs-dismiss="offcanvas"
|
||||||
|
aria-label="Close"
|
||||||
|
></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="offcanvas-body">
|
<div class="offcanvas-body">
|
||||||
<div class="accordion" id="existing-request-item-container">
|
<div class="accordion" id="existing-request-item-container">
|
||||||
<div v-for="(existingRequest, index) in existingRequests" :key="index" :id="'existing-request' + index"
|
<div
|
||||||
class="accordion-item">
|
v-for="(existingRequest, index) in existingRequests"
|
||||||
|
:key="index"
|
||||||
|
:id="'existing-request' + index"
|
||||||
|
class="accordion-item"
|
||||||
|
>
|
||||||
<h2 class="accordion-header" :id="'existing-heading' + index">
|
<h2 class="accordion-header" :id="'existing-heading' + index">
|
||||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
|
<button
|
||||||
:data-bs-target="'#' + 'existing-request-collapse' + index" aria-expanded="false"
|
class="accordion-button collapsed"
|
||||||
:aria-controls="'collapse' + index">
|
type="button"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
:data-bs-target="'#' + 'existing-request-collapse' + index"
|
||||||
|
aria-expanded="false"
|
||||||
|
:aria-controls="'collapse' + index"
|
||||||
|
>
|
||||||
<span class="dashed-container">{{ existingRequest.title }}</span>
|
<span class="dashed-container">{{ existingRequest.title }}</span>
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
<div :id="'existing-request-collapse' + index" class="accordion-collapse collapse"
|
<div
|
||||||
:aria-labelledby="'existing-heading' + index" data-bs-parent="#existing-request-item-container">
|
:id="'existing-request-collapse' + index"
|
||||||
|
class="accordion-collapse collapse"
|
||||||
|
:aria-labelledby="'existing-heading' + index"
|
||||||
|
data-bs-parent="#existing-request-item-container"
|
||||||
|
>
|
||||||
<div class="accordion-body">
|
<div class="accordion-body">
|
||||||
<button class="copy-existing-button" @click="copyRequest(existingRequest)">
|
<button class="copy-existing-button" @click="copyRequest(existingRequest)">
|
||||||
{{ $t('Choose') }}
|
{{ $t('Choose') }}
|
||||||
@ -32,26 +54,52 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="offcanvas offcanvas-end offcanvas-container" tabindex="-1" id="offcanvas-template"
|
<div
|
||||||
aria-labelledby="offcanvas-template">
|
class="offcanvas offcanvas-end offcanvas-container"
|
||||||
|
tabindex="-1"
|
||||||
|
id="offcanvas-template"
|
||||||
|
aria-labelledby="offcanvas-template"
|
||||||
|
>
|
||||||
<div class="offcanvas-header">
|
<div class="offcanvas-header">
|
||||||
<h5 class="offcanvas-title" id="offcanvas-template">{{ $t('Apply request template') }}</h5>
|
<h5 class="offcanvas-title" id="offcanvas-template">{{ $t('Apply request template') }}</h5>
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn-close"
|
||||||
|
data-bs-dismiss="offcanvas"
|
||||||
|
aria-label="Close"
|
||||||
|
></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="offcanvas-body">
|
<div class="offcanvas-body">
|
||||||
<div class="accordion" id="template-item-container">
|
<div class="accordion" id="template-item-container">
|
||||||
<div v-for="(template, index) in availableTemplates" :key="index" :id="'template' + index"
|
<div
|
||||||
class="accordion-item">
|
v-for="(template, index) in availableTemplates"
|
||||||
|
:key="index"
|
||||||
|
:id="'template' + index"
|
||||||
|
class="accordion-item"
|
||||||
|
>
|
||||||
<h2 class="accordion-header" :id="'heading' + index">
|
<h2 class="accordion-header" :id="'heading' + index">
|
||||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
|
<button
|
||||||
:data-bs-target="'#' + 'collapse' + index" aria-expanded="false" :aria-controls="'collapse' + index">
|
class="accordion-button collapsed"
|
||||||
|
type="button"
|
||||||
|
data-bs-toggle="collapse"
|
||||||
|
:data-bs-target="'#' + 'collapse' + index"
|
||||||
|
aria-expanded="false"
|
||||||
|
:aria-controls="'collapse' + index"
|
||||||
|
>
|
||||||
<span class="dashed-container">{{ template.title }}</span>
|
<span class="dashed-container">{{ template.title }}</span>
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
<div :id="'collapse' + index" class="accordion-collapse collapse" :aria-labelledby="'heading' + index"
|
<div
|
||||||
data-bs-parent="#template-item-container">
|
:id="'collapse' + index"
|
||||||
|
class="accordion-collapse collapse"
|
||||||
|
:aria-labelledby="'heading' + index"
|
||||||
|
data-bs-parent="#template-item-container"
|
||||||
|
>
|
||||||
<div class="accordion-body">
|
<div class="accordion-body">
|
||||||
<button class="select-template-button btn btn-link" @click="selectTemplate(template)">
|
<button
|
||||||
|
class="select-template-button btn btn-link"
|
||||||
|
@click="selectTemplate(template)"
|
||||||
|
>
|
||||||
{{ $t('Apply') }}
|
{{ $t('Apply') }}
|
||||||
</button>
|
</button>
|
||||||
<div class="template-content-textarea" v-html="template.content"></div>
|
<div class="template-content-textarea" v-html="template.content"></div>
|
||||||
@ -62,23 +110,42 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="action-bar">
|
<div class="action-bar">
|
||||||
<input-selector :select-list="products" :selected="selectedProduct" @selectedChange="selectedChange" />
|
<input-selector
|
||||||
|
:select-list="products"
|
||||||
|
:selected="selectedProduct"
|
||||||
|
@selectedChange="selectedChange"
|
||||||
|
/>
|
||||||
<div class="upload-contianer">
|
<div class="upload-contianer">
|
||||||
<label class="btn btn-link">
|
<label class="btn btn-link">
|
||||||
<span v-if="!uploadFile">{{ $t('Upload file') }}</span>
|
<span v-if="!uploadFile">{{ $t('Upload file') }}</span>
|
||||||
<span v-if="uploadFile">{{ uploadFile.name }}</span>
|
<span v-if="uploadFile">{{ uploadFile.name }}</span>
|
||||||
<input type="file" hidden @change="handleFileUpload" />
|
<input type="file" hidden @change="handleFileUpload" />
|
||||||
</label>
|
</label>
|
||||||
<svg-icon v-if="uploadFile" icon="delete" class-name="delete-icon" @click.stop="clearFile" />
|
<svg-icon
|
||||||
|
v-if="uploadFile"
|
||||||
|
icon="delete"
|
||||||
|
class-name="delete-icon"
|
||||||
|
@click.stop="clearFile"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1" />
|
<div class="flex-1" />
|
||||||
<button class="action-button btn btn-link" type="button" data-bs-toggle="offcanvas"
|
<button
|
||||||
data-bs-target="#offcanvas-template" aria-controls="offcanvas-template">
|
class="action-button btn btn-link"
|
||||||
|
type="button"
|
||||||
|
data-bs-toggle="offcanvas"
|
||||||
|
data-bs-target="#offcanvas-template"
|
||||||
|
aria-controls="offcanvas-template"
|
||||||
|
>
|
||||||
<svg-icon icon="btn-templates" />
|
<svg-icon icon="btn-templates" />
|
||||||
{{ $t('Templates') }}
|
{{ $t('Templates') }}
|
||||||
</button>
|
</button>
|
||||||
<button class="action-button btn btn-link" type="button" data-bs-toggle="offcanvas"
|
<button
|
||||||
data-bs-target="#offcanvas-copy-existing" aria-controls="offcanvas-copy-existing">
|
class="action-button btn btn-link"
|
||||||
|
type="button"
|
||||||
|
data-bs-toggle="offcanvas"
|
||||||
|
data-bs-target="#offcanvas-copy-existing"
|
||||||
|
aria-controls="offcanvas-copy-existing"
|
||||||
|
>
|
||||||
<svg-icon icon="btn-history" />
|
<svg-icon icon="btn-history" />
|
||||||
{{ $t('Copy') }}
|
{{ $t('Copy') }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user