From 456580aa3c14df6aefdafbe52cf15866ab6595cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABlle=20Morin?= Date: Tue, 15 Oct 2019 17:10:16 +0200 Subject: [PATCH] sib-form ok. Need work on the team edition --- src/page-circle-edit.pug | 51 ++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/src/page-circle-edit.pug b/src/page-circle-edit.pug index 5b6fa63..16d5fdf 100644 --- a/src/page-circle-edit.pug +++ b/src/page-circle-edit.pug @@ -1,14 +1,41 @@ #circle-edit.content-box.with-padding.with-form.full-width - .content-box.with-padding.with-form.full-width - h1 Edit your circle - - sib-form.block( - bind-resources - - fields='block-circle__info(name, status), description' - class-name='form-label is-light is-half-width' - class-status='form-label is-light is-half-width' - class-description='form-label is-light is-full-width' - ) - //- widget-team='sib-form-multiple-dropdown', + sib-widget(name='circle-team-template') + template + sib-display( + data-src="${await value['@id']}" + fields='name' + widget-account.picture='hd-user-avatar' + ) + + sib-delete( + data-src="${await value['@id']}" + ) + + h1 Edit your circle + + sib-form.block( + bind-resources + + fields='block-circle__info(name, status), description' + + label-status='status (coming soon)' + + class-name='form-label is-light is-half-width' + class-status='form-label is-light is-half-width' + class-description='form-label is-light is-full-width' + + widget-description='sib-form-textarea' + ) + + h3 List of members + + sib-display( + bind-resources + + fields='team' + + multiple-team='' + + widget-team='circle-team-template' + )