minor: form feedbacks
This commit is contained in:
parent
927c76b442
commit
4578b30ff9
@ -66,8 +66,8 @@ context('Edit User Browser Testing', () => {
|
||||
cy.contains('solid-display-value[name="name"]', userFirstName + ' ' + userLastName).should("exist");
|
||||
cy.contains('solid-display-value[name="profile.job"]', jobDescription).should("exist");
|
||||
cy.contains('solid-display-value[name="profile.city"]', city).should("exist");
|
||||
cy.contains('solid-display-tel[name="profile.phone"] a', phone).should("exist");
|
||||
cy.contains('profile-website[name="profile.website"] a', website).should("exist");
|
||||
cy.contains('directory-link-tel a', phone).should("exist");
|
||||
cy.contains('directory-website a', website).should("exist");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -23,7 +23,7 @@ if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
|
||||
//- script(type="module" src="/lib/solid-job-board/dist/index.js" defer)
|
||||
|
||||
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.8" defer)
|
||||
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.9" defer)
|
||||
//- script(type="module" src="/lib/solid-directory/dist/index.js" defer)
|
||||
|
||||
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
|
||||
@ -34,6 +34,8 @@ if endpoints.users || (endpoints.get && endpoints.get.users)
|
||||
script(type="module" src="https://unpkg.com/@startinblox/component-chat@1.1" defer)
|
||||
//- script(type="module" src="/lib/solid-xmpp-chat/dist/index.js" defer)
|
||||
|
||||
script(src="https://cdn.jsdelivr.net/npm/sweetalert2@10")
|
||||
|
||||
script(src="/scripts/index.js" defer)
|
||||
|
||||
//- Stylesheets
|
||||
|
19
src/scripts/save-feedback.js
Normal file
19
src/scripts/save-feedback.js
Normal file
@ -0,0 +1,19 @@
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: 'top',
|
||||
showConfirmButton: false,
|
||||
timer: 3000,
|
||||
timerProgressBar: true,
|
||||
didOpen: (toast) => {
|
||||
toast.addEventListener('mouseenter', Swal.stopTimer)
|
||||
toast.addEventListener('mouseleave', Swal.resumeTimer)
|
||||
}
|
||||
})
|
||||
document.addEventListener("save", () => {
|
||||
Toast.fire({
|
||||
icon: 'success',
|
||||
title: 'Succès!'
|
||||
})
|
||||
});
|
||||
});
|
@ -1,17 +1,6 @@
|
||||
div.content-box__info.flex
|
||||
solid-link(class="backlink right" next='admin-project-list') Retour
|
||||
|
||||
solid-widget(name="hubl-admin-project-add-user")
|
||||
template
|
||||
solid-form(
|
||||
data-holder
|
||||
fields='user, project'
|
||||
range-user=`${endpoints.users || endpoints.get.users}`
|
||||
value-project='${src}'
|
||||
widget-project='solid-form-hidden'
|
||||
naked
|
||||
)
|
||||
|
||||
h1.centered Créer un nouveau projet
|
||||
|
||||
div#loader-projects-create.loader.loader-top
|
||||
|
@ -9,6 +9,16 @@ div.content-box__info.flex
|
||||
div
|
||||
div
|
||||
|
||||
solid-widget(name='hubl-username-field')
|
||||
template
|
||||
label Nom d'utilisateur*
|
||||
input(type="text" title='Caractères alphanumérique uniquement' pattern="[a-zA-Z0-9]+" label="Nom d'utilisateur *" name="username" required value="\${value}" data-holder)
|
||||
|
||||
solid-widget(name='hubl-email-field')
|
||||
template
|
||||
label E-mail *
|
||||
input(type="email" label="E-mail *" name="email" required value="\${value}" data-holder)
|
||||
|
||||
solid-form.form.button-register(
|
||||
data-src=`${endpoints.users || endpoints.post.users}`
|
||||
|
||||
@ -32,6 +42,9 @@ div.content-box__info.flex
|
||||
value-password=''
|
||||
widget-password='solid-form-hidden'
|
||||
|
||||
widget-username='hubl-username-field'
|
||||
widget-email='hubl-email-field'
|
||||
|
||||
next='admin-users-list'
|
||||
|
||||
submit-button='Enregistrer'
|
||||
|
@ -32,6 +32,7 @@ div.content-box__info.flex
|
||||
label-first_name='Prénom *'
|
||||
label-last_name='Nom *'
|
||||
label-email='E-mail *'
|
||||
widget-email='hubl-email-field'
|
||||
|
||||
next='admin-user-list'
|
||||
|
||||
|
@ -35,8 +35,8 @@ div.content-box__info
|
||||
label-status='Statut du cercle'
|
||||
widget-status='hubl-status'
|
||||
|
||||
label-name='Nom du cercle'
|
||||
label-owner='Administrateur ou administratrice'
|
||||
label-name='Nom du cercle *'
|
||||
label-owner='Administrateur ou administratrice *'
|
||||
label-description='Sous-titre du cercle *'
|
||||
|
||||
class-name='form-label is-light is-half-width input-text-like'
|
||||
|
Loading…
Reference in New Issue
Block a user