i18n on the web - deepseek translations
This commit is contained in:
@@ -2,24 +2,24 @@
|
||||
{% extends "ui/form_page.html" %}
|
||||
{% import "ui/alert.html" as alert %}
|
||||
|
||||
{% block title %}Add reusable validation rule{% endblock %}
|
||||
{% block eyebrow %}Global validation library{% endblock %}
|
||||
{% block heading %}Add reusable validation rule{% endblock %}
|
||||
{% block lead %}<p>A named rule that validation sets can compose, independent of any table.</p>{% endblock %}
|
||||
{% block title %}{{ nav.tr("validation-rule-title") }}{% endblock %}
|
||||
{% block eyebrow %}{{ nav.tr("validation-library-eyebrow") }}{% endblock %}
|
||||
{% block heading %}{{ nav.tr("validation-rule-title") }}{% endblock %}
|
||||
{% block lead %}<p>{{ nav.tr("validation-rule-lead") }}</p>{% endblock %}
|
||||
|
||||
{% block form %}
|
||||
<form hx-post="/admin/validation/rules" hx-target="#submission-status" hx-swap="innerHTML">
|
||||
<div class="form-grid">
|
||||
<label>Rule name<input name="rule_name" value="{{ page.form.rule_name }}" required></label>
|
||||
<label>Description<input name="description" value="{{ page.form.description }}"></label>
|
||||
<label>{{ nav.tr("validation-rule-name") }}<input name="rule_name" value="{{ page.form.rule_name }}" required></label>
|
||||
<label>{{ nav.tr("validation-description") }}<input name="description" value="{{ page.form.description }}"></label>
|
||||
{% include "pages/add_validation/shared_fields.html" %}
|
||||
</div>
|
||||
<div id="submission-status" aria-live="polite">
|
||||
{%- if let Some(message) = page.error %}{% call alert::error("Could not save validation", message) %}{% endcall %}{% endif -%}
|
||||
{%- if let Some(message) = page.error %}{% call alert::error(nav.locale, nav.tr("validation-error-title"), message) %}{% endcall %}{% endif -%}
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<a href="/admin">Cancel</a>
|
||||
<button type="submit">Save rule</button>
|
||||
<a href="/admin">{{ nav.tr("common-cancel") }}</a>
|
||||
<button type="submit">{{ nav.tr("validation-save-rule") }}</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user