panel projects - redesign and only show managed project
This commit is contained in:
parent
5c9f450539
commit
ec53fae7a0
7 changed files with 104 additions and 29 deletions
|
|
@ -1,10 +1,16 @@
|
||||||
/* CSS VARIABLES */
|
/* CSS VARIABLES */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
|
||||||
/* Colors */
|
/* Colors */
|
||||||
--color-l-200: 95%;
|
--color-l-200: 95%;
|
||||||
--color-l-300: 85%;
|
--color-l-300: 85%;
|
||||||
--color-l-400: 80%;
|
--color-l-400: 80%;
|
||||||
--color-l-500: 74%;
|
--color-l-500: 74%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.k-panel-menu {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
.k-panel-menu-button[aria-current] {
|
||||||
|
--button-color-back: #00968f1a;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ Alt:
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
Favoriteforusers: - user://WWjXgPWk
|
Favoriteforusers:
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ Comments:
|
||||||
url: file://s0lNtRA0Z7ybTCWG
|
url: file://s0lNtRA0Z7ybTCWG
|
||||||
position:
|
position:
|
||||||
pageIndex: 1
|
pageIndex: 1
|
||||||
x: '32.518325137231'
|
x: "32.518325137231"
|
||||||
y: '20.46332046332'
|
y: "20.46332046332"
|
||||||
replies: [ ]
|
replies: [ ]
|
||||||
text: test
|
text: test
|
||||||
author:
|
author:
|
||||||
|
|
@ -41,3 +41,61 @@ Comments:
|
||||||
id: m3mwxzuo
|
id: m3mwxzuo
|
||||||
type: comment
|
type: comment
|
||||||
isRead: false
|
isRead: false
|
||||||
|
-
|
||||||
|
location:
|
||||||
|
page:
|
||||||
|
uri: >
|
||||||
|
projects/miss-dior-blooming-bouquet/client-brief
|
||||||
|
title: Brief client
|
||||||
|
href: >
|
||||||
|
/projects/miss-dior-blooming-bouquet?dialog=client-brief
|
||||||
|
project:
|
||||||
|
title: Miss Dior Blooming Bouquet
|
||||||
|
uri: projects/miss-dior-blooming-bouquet
|
||||||
|
file:
|
||||||
|
uuid: file://s0lNtRA0Z7ybTCWG
|
||||||
|
url: file://s0lNtRA0Z7ybTCWG
|
||||||
|
position:
|
||||||
|
pageIndex: 1
|
||||||
|
x: "60.383371825251"
|
||||||
|
y: "50.772200772201"
|
||||||
|
replies: [ ]
|
||||||
|
text: Test 2
|
||||||
|
author:
|
||||||
|
name: Adrien Payet
|
||||||
|
email: adrien.payet@outlook.com
|
||||||
|
uuid: user://WWjXgPWk
|
||||||
|
role: admin
|
||||||
|
date: 2024-11-18T14:05:32+01:00
|
||||||
|
id: m3n1gl8u
|
||||||
|
type: comment
|
||||||
|
isRead: false
|
||||||
|
-
|
||||||
|
location:
|
||||||
|
page:
|
||||||
|
uri: >
|
||||||
|
projects/miss-dior-blooming-bouquet/client-brief
|
||||||
|
title: Brief client
|
||||||
|
href: >
|
||||||
|
/projects/miss-dior-blooming-bouquet?dialog=client-brief
|
||||||
|
project:
|
||||||
|
title: Miss Dior Blooming Bouquet
|
||||||
|
uri: projects/miss-dior-blooming-bouquet
|
||||||
|
file:
|
||||||
|
uuid: file://s0lNtRA0Z7ybTCWG
|
||||||
|
url: file://s0lNtRA0Z7ybTCWG
|
||||||
|
position:
|
||||||
|
pageIndex: 1
|
||||||
|
x: "20.771295651105"
|
||||||
|
y: "66.409266409266"
|
||||||
|
replies: [ ]
|
||||||
|
text: Test 3
|
||||||
|
author:
|
||||||
|
name: Adrien Payet
|
||||||
|
email: adrien.payet@outlook.com
|
||||||
|
uuid: user://WWjXgPWk
|
||||||
|
role: admin
|
||||||
|
date: 2024-11-18T14:05:45+01:00
|
||||||
|
id: m3n1gupx
|
||||||
|
type: comment
|
||||||
|
isRead: false
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
title: Projet
|
title: Projet
|
||||||
icon: page
|
icon: page
|
||||||
|
status:
|
||||||
|
draft:
|
||||||
|
label: Brouillon
|
||||||
|
text: Accessible uniquement aux éditeurs connectés ou via un lien secret
|
||||||
|
listed: En cours
|
||||||
|
unlisted: Archivé
|
||||||
|
|
||||||
tabs:
|
tabs:
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,13 @@ tabs:
|
||||||
label: Contenu
|
label: Contenu
|
||||||
columns:
|
columns:
|
||||||
- width: 1/1
|
- width: 1/1
|
||||||
|
sections:
|
||||||
|
listed:
|
||||||
|
extends: sections/projects
|
||||||
|
headline: En cours
|
||||||
|
status: listed
|
||||||
|
sortBy: modified desc
|
||||||
|
- width: 1/2
|
||||||
sections:
|
sections:
|
||||||
drafts:
|
drafts:
|
||||||
extends: sections/projects
|
extends: sections/projects
|
||||||
|
|
@ -12,35 +19,21 @@ tabs:
|
||||||
status: draft
|
status: draft
|
||||||
- width: 1/2
|
- width: 1/2
|
||||||
sections:
|
sections:
|
||||||
yourProjects:
|
|
||||||
label: Vos projets
|
|
||||||
type: pages
|
|
||||||
query: user.projects
|
|
||||||
create: false
|
|
||||||
search: true
|
|
||||||
help: Projets pour lesquels vous êtes nommé chef de projet.
|
|
||||||
image:
|
|
||||||
query: page.client.toPage.logo.toFile
|
|
||||||
listed:
|
|
||||||
extends: sections/projects
|
|
||||||
headline: En cours
|
|
||||||
layout: list
|
|
||||||
info: "étape : {{ page.getStepLabel }}"
|
|
||||||
status: listed
|
|
||||||
- width: 1/2
|
|
||||||
sections:
|
|
||||||
modifiedProjects:
|
|
||||||
extends: sections/projects
|
|
||||||
create: false
|
|
||||||
headline: Projets récement modifiés
|
|
||||||
sortBy: modified desc
|
|
||||||
layout: list
|
|
||||||
image:
|
|
||||||
query: page.client.toPage.logo.toFil
|
|
||||||
unlisted:
|
unlisted:
|
||||||
extends: sections/projects
|
extends: sections/projects
|
||||||
headline: Archivés
|
headline: Archivés
|
||||||
status: unlisted
|
status: unlisted
|
||||||
|
- width: 1/1
|
||||||
|
sections:
|
||||||
|
yourProjects:
|
||||||
|
label: Tous vos projets
|
||||||
|
type: pages
|
||||||
|
query: user.projects
|
||||||
|
sortBy: modified desc
|
||||||
|
create: false
|
||||||
|
search: true
|
||||||
|
image:
|
||||||
|
query: page.client.toPage.logo.toFile
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
label: Réglages
|
label: Réglages
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,10 @@ columns:
|
||||||
client: true
|
client: true
|
||||||
currentStep:
|
currentStep:
|
||||||
label: Étape
|
label: Étape
|
||||||
|
value: "{{ page.getStepLabel }}"
|
||||||
|
managers:
|
||||||
|
label: Chefs de projet
|
||||||
|
value: "{{ page.printManagers }}"
|
||||||
empty: Pas encore de projet
|
empty: Pas encore de projet
|
||||||
image: false
|
image: false
|
||||||
search: true
|
search: true
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ class ProjectPage extends Page {
|
||||||
return $steps;
|
return $steps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getCurrentStep() {
|
||||||
|
return $this->getStepsLabel()[$this->currentStep()];
|
||||||
|
}
|
||||||
|
|
||||||
private function createStep($child) {
|
private function createStep($child) {
|
||||||
$files = [];
|
$files = [];
|
||||||
$uri = null;
|
$uri = null;
|
||||||
|
|
@ -69,4 +73,8 @@ class ProjectPage extends Page {
|
||||||
|
|
||||||
return $stepsLabel[$this->currentStep()->value()];
|
return $stepsLabel[$this->currentStep()->value()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function printManagers() {
|
||||||
|
return A::implode($this->managers()->toUsers()->pluck('name'), ', ');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue