diff --git a/CHANGELOG.md b/CHANGELOG.md index 70af09fab..2373005fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog Fab-manager +## v6.0.11 2023 July 21 + +- Fix a bug: incorrect date range in statistics +- Fix a bug: hide project categories filter if there is no project categories +- Improvement : dialog confirm to remove a project category + ## v6.0.10 2023 July 13 - Fix a bug: unable to confirm payment of store for admin diff --git a/app/frontend/src/javascript/components/user/gender-input.tsx b/app/frontend/src/javascript/components/user/gender-input.tsx index 5958fe753..9395259de 100644 --- a/app/frontend/src/javascript/components/user/gender-input.tsx +++ b/app/frontend/src/javascript/components/user/gender-input.tsx @@ -7,13 +7,14 @@ import { useTranslation } from 'react-i18next'; interface GenderInputProps { register: UseFormRegister, disabled?: boolean|((id: string) => boolean), - required?: boolean + required?: boolean, + tooltip?: string } /** * Input component to set the gender for the user */ -export const GenderInput = ({ register, disabled = false, required }: GenderInputProps) => { +export const GenderInput = ({ register, disabled = false, required, tooltip }: GenderInputProps) => { const { t } = useTranslation('shared'); const [isDisabled, setIsDisabled] = useState(false); @@ -46,6 +47,10 @@ export const GenderInput = ({ register, disabl disabled={isDisabled} {...register('statistic_profile_attributes.gender' as FieldPath)} /> + {tooltip &&
+ +
{tooltip}
+
} ); }; diff --git a/app/frontend/src/javascript/components/user/user-profile-form.tsx b/app/frontend/src/javascript/components/user/user-profile-form.tsx index 940315ed7..21ce943a5 100644 --- a/app/frontend/src/javascript/components/user/user-profile-form.tsx +++ b/app/frontend/src/javascript/components/user/user-profile-form.tsx @@ -184,7 +184,7 @@ export const UserProfileForm: React.FC = ({ action, size,

{t('app.shared.user_profile_form.personal_data')}

- +
= ({ action, size, + label={t('app.shared.user_profile_form.allow_newsletter')} />
{showGroupInput &&
- - {{ projectCategory.name }} - + + {{ projectCategory.name }} + -
-
{{ 'app.public.projects_list.filter' }} - diff --git a/app/frontend/templates/shared/signupModal.html b/app/frontend/templates/shared/signupModal.html index 60ead0663..00413f4d7 100644 --- a/app/frontend/templates/shared/signupModal.html +++ b/app/frontend/templates/shared/signupModal.html @@ -23,7 +23,11 @@

{{ 'app.public.common.create_your_account' }}

ng-model="user.statistic_profile_attributes.gender" value="false"/> {{ 'app.public.common.woman' | translate }} - +
+ +
{{ 'app.public.common.used_for_statistics' }}
+
+ {{ 'app.public.common.gender_is_required'}}
@@ -37,7 +41,7 @@

{{ 'app.public.common.create_your_account' }}

class="form-control" placeholder="{{ 'app.public.common.your_first_name' | translate }}" required> - + {{ 'app.public.common.first_name_is_required' }}
@@ -48,7 +52,7 @@

{{ 'app.public.common.create_your_account' }}

class="form-control" placeholder="{{ 'app.public.common.your_surname' | translate }}" required> - + {{ 'app.public.common.surname_is_required' }} @@ -64,7 +68,7 @@

{{ 'app.public.common.create_your_account' }}

placeholder="{{ 'app.public.common.your_pseudonym' | translate }}" required> - + {{ 'app.public.common.pseudonym_is_required' }} @@ -81,7 +85,7 @@

{{ 'app.public.common.create_your_account' }}

placeholder="{{ 'app.public.common.your_email_address' | translate }}" required> - + {{ 'app.public.common.email_is_required' }} @@ -130,6 +134,10 @@

{{ 'app.public.common.create_your_account' }}

ng-model="user.organization" value="false"/> +
+ +
{{ 'app.shared.user_profile_form.declare_organization_help' }}
+
@@ -144,7 +152,7 @@

{{ 'app.public.common.create_your_account' }}

placeholder="{{ 'app.public.common.name_of_your_organization' | translate }}" ng-required="user.organization"> - + {{ 'app.public.common.organization_name_is_required' }} @@ -160,7 +168,7 @@

{{ 'app.public.common.create_your_account' }}

placeholder="{{ 'app.public.common.address_of_your_organization' | translate }}" ng-required="user.organization"> - + {{ 'app.public.common.organization_address_is_required' }} @@ -177,7 +185,7 @@

{{ 'app.public.common.create_your_account' }}

placeholder="{{profileCustomField.label}}" ng-required="profileCustomField.required"> - + {{ 'app.public.common.profile_custom_field_is_required' }} @@ -189,7 +197,7 @@

{{ 'app.public.common.create_your_account' }}

- + {{ 'app.public.common.user_s_profile_is_required' }} @@ -216,7 +224,7 @@

{{ 'app.public.common.create_your_account' }}

ng-click="openDatePicker($event)" required/> - + {{ 'app.public.common.birth_date_is_required' }} @@ -263,8 +271,12 @@

{{ 'app.public.common.create_your_account' }}

name="is_allow_contact" id="is_allow_contact" ng-model="user.is_allow_contact" - value="true"/> - + value="false"/> + +
+ +
{{ 'app.public.common.public_profile' }}
+
@@ -274,7 +286,7 @@

{{ 'app.public.common.create_your_account' }}

name="is_allow_newsletter" id="is_allow_newsletter" ng-model="user.is_allow_newsletter" - value="true"/> + value="false"/> @@ -285,7 +297,7 @@

{{ 'app.public.common.create_your_account' }}

name="cgu" id="cgu" ng-model="user.cgu" - value="true" + value="false" ng-required="cgu != null"/>