Skip to content

Commit

Permalink
feat(ui): open the <details> tag in edit feed page when the feature i…
Browse files Browse the repository at this point in the history
…s enabled
  • Loading branch information
fguillot committed Feb 1, 2025
1 parent b9b2d68 commit 6a008ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/template/templates/views/edit_feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,17 @@ <h3>{{ t "page.edit_feed.last_parsing_error" }}</h3>
<fieldset>
<legend>{{ t "form.feed.fieldset.integration" }}</legend>

<details>
<details {{ if .form.AppriseServiceURLs }}open{{ end }}>
<summary>Apprise</summary>
<div class="form-label-row">
<label for="form-apprise-service-urls">
{{ t "form.feed.label.apprise_service_urls" }}
</label>
</div>
<input type="text" name="apprise_service_urls" id="form-apprise-service-urls" value="{{ .form.AppriseServiceURLs }}" spellcheck="false">
<input type="text" name="apprise_service_urls" id="form-apprise-service-urls" value="{{ .form.AppriseServiceURLs }}" spellcheck="false" autocomplete="off">
</details>

<details>
<details {{ if .form.NtfyEnabled }}open{{ end }}>
<summary>Ntfy</summary>
<label><input type="checkbox" name="ntfy_enabled" value="1" {{ if .form.NtfyEnabled }}checked{{ end }}> {{ t "form.feed.label.ntfy_activate" }}</label>
<div class="form-label-row">
Expand All @@ -209,14 +209,14 @@ <h3>{{ t "page.edit_feed.last_parsing_error" }}</h3>
</select>
</details>

<details>
<details {{ if .form.WebhookURL }}open{{ end }}>
<summary>Webhook</summary>
<div class="form-label-row">
<label for="form-webhook-url">
{{ t "form.feed.label.webhook_url" }}
</label>
</div>
<input type="url" name="webhook_url" id="form-webhook-url" value="{{ .form.WebhookURL }}" spellcheck="false">
<input type="url" name="webhook_url" id="form-webhook-url" value="{{ .form.WebhookURL }}" spellcheck="false" autocomplete="off">
</details>

<div class="buttons">
Expand Down

0 comments on commit 6a008ee

Please sign in to comment.