quickpeep/quickpeep/templates/seed_collection.html.askama

91 lines
3.5 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>QuickPeep Seed Collection Service</title>
<link rel="stylesheet" type="text/css" href="/static/main.css">
</head>
<body>
<!-- Header -->
<header class="container">
<hgroup>
<h1>QuickPeep Seed Collection Service</h1>
<h2>Please submit high-quality websites; especially personal blogs and other 'artisanal' websites.</h2>
</hgroup>
</header><!-- ./ Header -->
<!-- Main -->
<main class="container">
{% if thanks_for_submitting %}
<div class="bar_happy">Thanks for submitting a seed!</div>
{% endif %}
<!-- Preview -->
<section id="seed">
<form method="POST">
<h2>Submit a seed</h2>
<p>Feel free to submit your own sites! The more the merrier, as long as they are high quality.</p>
<label for="url">URL</label>
<input type="text" id="url" name="url" placeholder="https://mycoolsite.com">
<small>Only submit each website (determined by the domain) once; other articles on the same site can be discovered.
<br>You can also submit an RSS/Atom feed or an XML sitemap.
<br>To apply a tag to a tree of URLs rather than a whole site, please use an asterisk as in <code>https://www.postgresql.org/docs/current/*</code>.</small>
<h3>Tags (apply to entire site; select all that apply)</h3>
<fieldset>
<div class="grid">
{% macro label_kind(name, labels) %}
<p>
<strong>{{ name }}</strong>
{% for tag in labels %}
<label for="tag_{{ tag.id }}">
<input type="checkbox" id="tag_{{ tag.id }}" name="tag_{{ tag.id }}"> {{ tag.name }}<br>
</label>
{% endfor %}
</p>
{% endmacro %}
{% macro label_column(column) %}
<div>
{% for group in column %}
{% call label_kind(group.name, group.tags.iter()) %}
{% endfor %}
</div>
{% endmacro %}
{% call label_column(column1) %}
{% call label_column(column2) %}
{% call label_column(column3) %}
</div>
</fieldset>
<fieldset>
<label for="extratags">Extra tags (if there are obvious missing tags above)</label>
<input type="text" id="extratags" name="extratags" placeholder="..., ..., ...">
<small>These won't be published directly, but can help guide the creation of more tags. Separate with spaces and/or commas, please.</small>
</fieldset>
<fieldset>
<label for="remarks_private">Extra (free-form) remarks</label>
<textarea id="remarks_private" name="remarks_private" maxlength="256"></textarea>
<small>If this might need some clean-up, you can add remarks here. These remarks <strong>will not</strong> be published.</small>
</fieldset>
<h3>Open Data</h3>
<label for="opendata_agree">
<input type="checkbox" role="switch" id="opendata_agree" name="opendata_agree" value="true" required>
I'm happy for this data to be Open Data under the <a href="https://bics.ga/reivilibre/quickpeep_seeds/src/branch/main/LICENCE" target="_blank">CC0 licence</a>.
</label>
<input type="submit" value="Submit seed">
</form>
</section><!-- ./ Preview -->
<footer class="container">
{% for (method, url) in contact %}
<a href="{{ url }}">{{ method }}</a> •
{% endfor %}
<a href="/">Return to QuickPeep Root</a>
</footer>
</body>
</html>