diff --git a/src/dependencies.pug b/src/dependencies.pug index 5de986a..ca6e07e 100644 --- a/src/dependencies.pug +++ b/src/dependencies.pug @@ -25,7 +25,7 @@ if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers) if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.users || (endpoints.get && endpoints.get.users)) script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3" defer) - //- script(type="module" src="/lib/sib-directory/index.js" defer) + //- script(type="module" src="/lib/sib-directory/dist/index.js" defer) if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards) script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1" defer) diff --git a/src/page-project.pug b/src/page-project.pug index 49eb16a..b01d888 100644 --- a/src/page-project.pug +++ b/src/page-project.pug @@ -22,6 +22,8 @@ include views/project/page-project-chat.pug #project-information(hidden) include views/project/page-project-profile.pug + #project-picture(hidden) + include views/project/page-project-picture.pug dialog(id='project-contributions-help').modal sib-link(next='project-profile') @@ -39,4 +41,5 @@ nav.jsRightMenu(role='navigation') sib-route(name='project-information') li a Information - sib-route(name='project-contributions-help') \ No newline at end of file + sib-route(name='project-contributions-help') + sib-route(name='project-picture' use-id) \ No newline at end of file diff --git a/src/views/admin/page-admin-projects-create.pug b/src/views/admin/page-admin-projects-create.pug index ccb0082..6ef4939 100644 --- a/src/views/admin/page-admin-projects-create.pug +++ b/src/views/admin/page-admin-projects-create.pug @@ -21,7 +21,7 @@ div.content-box__info sib-form( data-src=`${endpoints.projects || endpoints.post.projects}` - fields='status,line-1(customer.name, name), description, line-10(captain), logo' + fields='status,line-1(customer.name, name), description, line-10(captain)' label-status='Statut du canal*' widget-status='hubl-status' @@ -45,12 +45,7 @@ div.content-box__info class-captain='member-select form-label is-light is-half-width' widget-captain='sib-form-auto-completion' - widget-logo="sib-form-file" - label-logo="Télécharger un logo" - class-logo='form-label is-light is-full-width' - upload-url-logo=`${endpoints.uploads || endpoints.post.uploads}` - - next='admin-project-list' + next='project-picture' submit-button='Enregistrer et ajouter des membres' ) diff --git a/src/views/project/page-project-edit.pug b/src/views/project/page-project-edit.pug index ebbcfb5..1480145 100644 --- a/src/views/project/page-project-edit.pug +++ b/src/views/project/page-project-edit.pug @@ -35,6 +35,16 @@ div.content-box__info next='project-information' ) + h2 PPhoto du projet + + sib-form.form-picture( + bind-resources + fields='customer.logo' + widget-customer.logo="hubl-user-avatar" + submit-button='Edit' + next='project-picture' + ) + h2 Liste des membres : sib-form.block.select-add-member( diff --git a/src/views/project/page-project-picture.pug b/src/views/project/page-project-picture.pug new file mode 100644 index 0000000..7c92ccc --- /dev/null +++ b/src/views/project/page-project-picture.pug @@ -0,0 +1,14 @@ +div.content-box__info + + sib-link(class='backlink right', bind-resources, next='project-edit') Retour + + h1 Modifier l'image du projet + + sib-picture( + bind-resources + upload-src=`${endpoints.uploads || endpoints.post.uploads}` + upload-id="sib-project-edit-picture" + nested-fields='customer' + fields='logo' + next='project-edit' + )