Skip to content

Commit

Permalink
Merge branch 'master' into a11y-fix-contribution-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Volubyl committed May 9, 2023
2 parents 86fafef + 457e86d commit 7a89124
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
5 changes: 3 additions & 2 deletions client/src/lib/components/DatasetForm/DatasetForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,11 @@

<SearchableComboBox
name="license"
required={false}
label="Licence de réutilisation"
hintText={LicenseFieldHintText}
value={$form.geographicalCoverage}
error={$errors.geographicalCoverage}
value={$form.license}
error={$errors.license}
options={licenses.map((item) => {
return {
label: item,
Expand Down
9 changes: 7 additions & 2 deletions client/src/lib/components/SearchableComboBox/Basic.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
export let error = "";
export let value = "";
export let labelledby = " ";
export let required = true;
let suggestionList: HTMLElement;
let currentLiIndex = 0;
Expand Down Expand Up @@ -274,7 +275,11 @@
{#if label}
<label class="fr-label" for={name}>
{label}
<RequiredMarker />

{#if required}
<RequiredMarker />
{/if}

{#if hintText}
{#if typeof hintText === "string"}
<span class="fr-hint-text" id={`select-hint-${name}-hint`}>
Expand All @@ -298,7 +303,7 @@
{name}
id={name}
{value}
required
{required}
role="combobox"
autocomplete="off"
aria-controls={`${name}-suggestions`}
Expand Down
23 changes: 19 additions & 4 deletions client/src/lib/templates/LandingTemplate/LandingTemplate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import logoMC from "$lib/assets/organizations/logoMC.svg";
import flowChart from "$lib/assets/registration_flow_chart.svg";
import {
CONTACT_EMAIL,
REGISTER_ORGANIZATION_LINK,
USER_DOCUMENTATION_LINK,
} from "src/constants";
Expand Down Expand Up @@ -88,17 +89,31 @@
</div>

<p class="fr-mt-4w">
Si votre organisation n’est pas enregistrée vous ne pourrez pas vous
connecter au catalogue. Vous pouvez cependant en faire la demande en
cliquant sur le lien suivant.
Afin de vous connecter à catalogue.data.gouv.fr, votre organisation doit
d'abord être enregistrée.
</p>

<div>
<a
target="_blank"
rel="noopener"
class="fr-btn fr-btn--secondary fr-btn--icon-right fr-icon-edit-fill"
href={REGISTER_ORGANIZATION_LINK}>Enregistrer mon organisation</a
href={REGISTER_ORGANIZATION_LINK}
>Guide pour enregistrer son organisation</a
>
</div>

<p class="fr-mt-4w">
Vous pouvez aussi nous en faire la demande directement :
</p>

<div>
<a
target="_blank"
rel="noopener"
class="fr-btn fr-btn--secondary fr-btn--icon-right fr-icon-edit-fill"
href={`mailto:${CONTACT_EMAIL}?subject=Enregistrement sur catalogue.data.gouv.fr&body=Bonjour, je souhaite que mon organisation soit ajoutée sur catalogue.data.gouv.fr...`}
>[email protected]</a
>
</div>
</section>
Expand Down

0 comments on commit 7a89124

Please sign in to comment.