announcements

This commit is contained in:
pluja
2025-05-19 16:57:10 +00:00
parent 205b6e8ea0
commit 636057f8e0
26 changed files with 1966 additions and 659 deletions

View File

@@ -184,31 +184,40 @@ const [categories, attributes] = await Astro.locals.banners.tryMany([
label="Description"
name="description"
id="description"
required
maxlength={SUGGESTION_DESCRIPTION_MAX_LENGTH}
inputProps={{
required: true,
maxlength: SUGGESTION_DESCRIPTION_MAX_LENGTH,
}}
error={inputErrors.description}
/>
<InputTextArea
label="Service URLs"
name="serviceUrls"
required
placeholder="https://example1.com\nhttps://example2.org"
inputProps={{
required: true,
placeholder: 'https://example1.com\nhttps://example2.org',
}}
error={inputErrors.serviceUrls}
/>
<InputTextArea
label="Terms of Service URLs"
name="tosUrls"
required
placeholder="https://example1.com/tos\nhttps://example2.org/terms"
inputProps={{
required: true,
placeholder: 'https://example1.com/tos\nhttps://example2.org/terms',
}}
error={inputErrors.tosUrls}
/>
<InputTextArea
label="Onion URLs"
name="onionUrls"
placeholder="http://example1.onion\nhttp://example2.onion"
inputProps={{
required: true,
placeholder: 'http://example1.onion\nhttp://example2.onion',
}}
error={inputErrors.onionUrls}
/>
@@ -276,7 +285,9 @@ const [categories, attributes] = await Astro.locals.banners.tryMany([
name="notes"
id="notes"
error={inputErrors.notes}
maxlength={SUGGESTION_NOTES_MAX_LENGTH}
inputProps={{
maxlength: SUGGESTION_NOTES_MAX_LENGTH,
}}
/>
<Captcha action={actions.serviceSuggestion.createService} />