feature: project picture

This commit is contained in:
Jure Ursic 2020-06-15 13:56:13 +02:00
parent 701c06a556
commit 34ec5d9d38
5 changed files with 31 additions and 9 deletions

View File

@ -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)

View File

@ -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')
@ -40,3 +42,4 @@ nav.jsRightMenu(role='navigation')
li
a Information
sib-route(name='project-contributions-help')
sib-route(name='project-picture' use-id)

View File

@ -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'
)

View File

@ -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(

View File

@ -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'
)