From 9ce9e7d906b72e9ce8a39ec820ca0f0418d098fc Mon Sep 17 00:00:00 2001 From: Marjolaine Le Bon Date: Mon, 10 May 2021 11:17:20 +0200 Subject: [PATCH] update: add a file for the businessprovider creation widget --- .../admin/page-admin-projects-create.pug | 19 +------------------ src/views/partials/widgets.pug | 1 + .../widgets/hubl-project-businessprovider.pug | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 src/views/partials/widgets/hubl-project-businessprovider.pug diff --git a/src/views/partials/admin/page-admin-projects-create.pug b/src/views/partials/admin/page-admin-projects-create.pug index f4f481a..102ef9f 100644 --- a/src/views/partials/admin/page-admin-projects-create.pug +++ b/src/views/partials/admin/page-admin-projects-create.pug @@ -13,23 +13,6 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac div div - solid-widget(name="businessprovider-widget") - template - solid-form.segment.three-quarter.sm-full.margin-right-medium.margin-bottom-small( - data-src="\${value}" - data-holder - naked - fields="name, fee" - - label-name='' - label-fee='' - - class-name="segment two-third padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" - class-fee="segment third padding-left-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" - - data-trans='label-name=project.create.labelBusinessproviderName;label-fee=project.create.labelBusinessproviderFee' - ) - solid-form.form( data-src=`${getComponent('projects').endpoints.post}` @@ -58,7 +41,7 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac class-businessprovider="segment full margin-bottom-medium" multiple-businessprovider - widget-businessprovider="businessprovider-widget" + widget-businessprovider="hubl-project-businessprovider" multiple-businessprovider-add-label='' multiple-businessprovider-remove-label='' diff --git a/src/views/partials/widgets.pug b/src/views/partials/widgets.pug index ee38e84..085d687 100644 --- a/src/views/partials/widgets.pug +++ b/src/views/partials/widgets.pug @@ -48,6 +48,7 @@ include widgets/hubl-menu-jabberid.pug include widgets/hubl-menu-publicprivate.pug include widgets/hubl-project-admins.pug include widgets/hubl-project-captain.pug +include widgets/hubl-project-businessprovider.pug include widgets/hubl-project-edit-admin.pug include widgets/hubl-project-edit-members-delete.pug include widgets/hubl-project-team-contact.pug diff --git a/src/views/partials/widgets/hubl-project-businessprovider.pug b/src/views/partials/widgets/hubl-project-businessprovider.pug new file mode 100644 index 0000000..cc0c980 --- /dev/null +++ b/src/views/partials/widgets/hubl-project-businessprovider.pug @@ -0,0 +1,17 @@ +if componentSet.has('invoice') && componentSet.has('projects') + solid-widget(name="hubl-project-businessprovider") + template + solid-form.segment.three-quarter.sm-full.margin-right-medium.margin-bottom-small( + data-src="\${value}" + data-holder + naked + fields="name, fee" + + label-name='' + label-fee='' + + class-name="segment two-third padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" + class-fee="segment third padding-left-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" + + data-trans='label-name=project.create.labelBusinessproviderName;label-fee=project.create.labelBusinessproviderFee' + )