38 lines
1.5 KiB
HTML
38 lines
1.5 KiB
HTML
{% 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 %}
|