06/16 Phase 6 (continue)

This commit is contained in:
2026-06-17 17:51:03 -04:00
parent 68a842d6b6
commit d1383a9835
11 changed files with 846 additions and 5 deletions
@@ -0,0 +1,37 @@
{% extends "base.html" %}
{% block title %}{{ _('Admin · Assign keyword') }}{% endblock %}
{% block content %}
{% include "admin/_nav.html" %}
<div class="card">
<h2>{{ _('Assign promoted keyword') }}</h2>
{% if error %}<p class="alert danger">{{ error }}</p>{% endif %}
<p class="muted">
{{ _('The listing will appear at the top of search results when the keyword is matched (accent-insensitive).') }}
</p>
<form method="post" class="settings-panel">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="field">
<label>{{ _('Listing ID') }} *</label>
<input class="input" name="listing_id" type="number" required min="1"
placeholder="{{ _('Enter the numeric listing ID') }}">
</div>
<div class="field">
<label>{{ _('Keyword') }} *</label>
<input class="input" name="keyword" required maxlength="80"
placeholder="{{ _('e.g. pho, cleaning service') }}">
</div>
<div class="field">
<label>{{ _('Priority (higher = shown first)') }}</label>
<input class="input" name="priority" type="number" value="0">
</div>
<div class="field">
<label>{{ _('Expires at (YYYY-MM-DD)') }}</label>
<input class="input" name="expires_at" type="date">
</div>
<div class="billing-actions">
<button class="btn" type="submit">{{ _('Save') }}</button>
<a class="btn ghost" href="{{ url_for('admin.admin_promoted_keywords') }}">{{ _('Cancel') }}</a>
</div>
</form>
</div>
{% endblock %}