Skip to content
Snippets Groups Projects
Commit 34ec5d9d authored by Jure's avatar Jure
Browse files

feature: project picture

parent 701c06a5
No related branches found
No related tags found
3 merge requests!176Release/0.10,!175Feature/project picture,!161WIP: Release/project
...@@ -25,7 +25,7 @@ if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers) ...@@ -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)) 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="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) if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1" defer) script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1" defer)
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
include views/project/page-project-chat.pug include views/project/page-project-chat.pug
#project-information(hidden) #project-information(hidden)
include views/project/page-project-profile.pug include views/project/page-project-profile.pug
#project-picture(hidden)
include views/project/page-project-picture.pug
dialog(id='project-contributions-help').modal dialog(id='project-contributions-help').modal
sib-link(next='project-profile') sib-link(next='project-profile')
...@@ -39,4 +41,5 @@ nav.jsRightMenu(role='navigation') ...@@ -39,4 +41,5 @@ nav.jsRightMenu(role='navigation')
sib-route(name='project-information') sib-route(name='project-information')
li li
a Information a Information
sib-route(name='project-contributions-help') sib-route(name='project-contributions-help')
\ No newline at end of file sib-route(name='project-picture' use-id)
\ No newline at end of file
...@@ -21,7 +21,7 @@ div.content-box__info ...@@ -21,7 +21,7 @@ div.content-box__info
sib-form( sib-form(
data-src=`${endpoints.projects || endpoints.post.projects}` 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*' label-status='Statut du canal*'
widget-status='hubl-status' widget-status='hubl-status'
...@@ -45,12 +45,7 @@ div.content-box__info ...@@ -45,12 +45,7 @@ div.content-box__info
class-captain='member-select form-label is-light is-half-width' class-captain='member-select form-label is-light is-half-width'
widget-captain='sib-form-auto-completion' widget-captain='sib-form-auto-completion'
widget-logo="sib-form-file" next='project-picture'
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'
submit-button='Enregistrer et ajouter des membres' submit-button='Enregistrer et ajouter des membres'
) )
...@@ -35,6 +35,16 @@ div.content-box__info ...@@ -35,6 +35,16 @@ div.content-box__info
next='project-information' 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 : h2 Liste des membres :
sib-form.block.select-add-member( sib-form.block.select-add-member(
......
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'
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment