This commit is contained in:
2023-08-08 00:54:34 +02:00
parent 1c7a364af9
commit 9ba237a75a

View File

@ -7,13 +7,12 @@
<form action="/add" method="post"> <form action="/add" method="post">
<!-- Feed URL --> <!-- Feed URL -->
<div class="row pb-2"> <div class="row pb-2">
<label for="feed_url" class="col-sm-2 col-form-label">Feed URL</label> <label for="feed_url" class="col-sm-2 col-form-label">RSS feed URL</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input name="feed_url" <input name="feed_url"
type="text" type="text"
class="form-control bg-dark border-dark text-muted" class="form-control bg-dark border-dark text-muted"
id="feed_url" id="feed_url" />
placeholder="https://www.reddit.com/r/FreeGameFindings.rss"/>
</div> </div>
</div> </div>
<!-- Webhook dropdown --> <!-- Webhook dropdown -->
@ -23,18 +22,12 @@
<select class="col-auto form-select bg-dark border-dark text-muted" <select class="col-auto form-select bg-dark border-dark text-muted"
id="webhook_dropdown" id="webhook_dropdown"
name="webhook_dropdown"> name="webhook_dropdown">
<option selected> <option selected>Choose webhook...</option>
Choose webhook... {% for hook in webhooks %}<option value="{{ hook.name }}">{{- hook.name -}}</option>{% endfor %}
</option>
{% for hook in webhooks %}
<option value="{{ hook.name }}">
{{- hook.name -}}
</option>
{% endfor %}
</select> </select>
</div> </div>
<div class="form-text"> <div class="form-text">
You can add more feeds <a class="text-muted" href="/add_webhook">here</a> You can add more webhooks <a class="text-muted" href="/add_webhook">here</a>
</div> </div>
</div> </div>
<!-- Submit button --> <!-- Submit button -->