Open the job board form in place of its row, and add Platsbanken to it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Sonnet 5.5 committed 2026-09-29 16:11:59 +02:00
1 parent b6afe24eaa
commit 6c63139343
2 files changed
+125 -56

No files matched your search

+23 -7
View File
@@ -14,10 +14,22 @@
<h1>Sources</h1>
<p class="lede">Sources are where roles come from: queries on job boards that span companies, and the boards of the companies you follow. Each section is one plugin; the runs read them all.</p>
{# The Job boards form is a `<template>` because only one edits at a time, so
its ids stay unique: sources.js puts it in place of a row on Edit, and on
top of the list on New, as agents.js does for the Search agents cards. #}
<section class="card" id="job-boards" data-section>
<h2>Job boards</h2>
<p class="lede">A query on Jobindex or Adzuna finds roles at any company. Switching one off closes its roles until you switch it back on.</p>
<p class="lede">A query on Jobindex, Adzuna or Platsbanken finds roles at any company. Switching one off closes its roles until you switch it back on.</p>
<div class="agents-head">
<p id="searches-count" class="count" role="status"></p>
<button type="button" id="s-add">New job board</button>
</div>
<p id="searches-answer" class="count" role="status"></p>
<div id="searches-list" class="srows"></div>
</section>
<template id="search-form-template">
<form id="search-form" class="agent-form source-form" autocomplete="off">
<h3 id="search-form-title">New job board</h3>
<div class="form-row">
@@ -25,13 +37,15 @@
<select id="s-provider">
<option value="jobindex">Jobindex (Denmark)</option>
<option value="adzuna">Adzuna (UK and EU)</option>
<option value="platsbanken">Platsbanken (Sweden)</option>
</select></label>
<label>Name <input type="text" id="s-name" required placeholder="Copenhagen backend"></label>
</div>
<label>Query
<input type="text" id="s-q" required spellcheck="false">
<span class="hint" data-provider="jobindex">Jobindex syntax: words are OR, <code>"a b"</code> is a phrase, <code>+word</code> is required.</span>
<span class="hint" data-provider="adzuna" hidden>Every word must appear.</span></label>
<span class="hint" data-provider="adzuna" hidden>Every word must appear.</span>
<span class="hint" data-provider="platsbanken" hidden>Free text; every word counts towards the match.</span></label>
<div class="form-row">
<label data-provider="jobindex">Area
<select id="s-area">
@@ -42,6 +56,11 @@
{% for value, label in countries %}<option value="{{ value }}">{{ label }}</option>{% endfor %}
</select></label>
<label data-provider="adzuna" hidden>Place <input type="text" id="s-where" placeholder="Berlin"></label>
<label data-provider="platsbanken" hidden>Region
<select id="s-region">
<option value="">All of Sweden</option>
{% for value, label in regions %}<option value="{{ value }}">{{ label }}</option>{% endfor %}
</select></label>
<label>Pages
<input type="number" id="s-pages" min="1" max="10" value="10">
<span class="hint">per pull, up to 10</span></label>
@@ -50,15 +69,12 @@
<div class="agent-actions">
<button type="button" id="s-try" class="secondary">Try it</button>
<button type="submit">Save</button>
<button type="button" id="s-new" class="secondary">New</button>
<button type="button" id="s-cancel" class="secondary">Cancel</button>
</div>
<p id="search-status" class="count" role="status"></p>
<ol id="search-sample" class="sample"></ol>
</form>
<p id="searches-count" class="count" role="status"></p>
<div id="searches-list" class="srows"></div>
</section>
</template>
<section class="card" id="company-boards" data-section>
<h2>Company boards</h2>