{% extends "public_base.html" %}
{% import "configurator/_macros.html" as ck %}
{# What an option card says about its feature: the name with its released
version, what it does, and its package. The package is two boxes, the org
and the name, so a narrow card wraps after the slash rather than at the
hyphen in "splent-io"; the org is the same everywhere, so a phone hides it
(skin_store). The description and version come from the marketplace index
and are simply left out for a feature it does not publish. #}
{% macro option_body(feature, auto=true) -%}
{{ feature.short }}{% if feature.version %} v{{ feature.version }}{% endif %}{% if feature.external %} {{ _("external") }}{% endif %}
{% if feature.description %}{{ feature.description }}{% endif %}
{% if feature.org %}{{ feature.org }}/{% endif %}{{ feature.package }}
{% if auto %}{{ _("required by your selection") }}{% endif %}
{%- endmacro %}
{# The feature's marketplace page, in a new tab so the selection stays put.
A link inside a label follows the link and leaves the checkbox alone. #}
{% macro option_link(feature) -%}
{% if feature.url %}{{ ck.icon("external-link", 15) }}{% endif %}
{%- endmacro %}
{% block title %}{{ _("Configure %(name)s", name=spl.name) }}{% endblock %}
{% block head %}
{% endblock %}
{% block hero %}
{{ spl.description }}{{ spl.name }}
{% if spl.description %}
{{ _("Lowercase letters, digits and underscores.") }}
{{ _("Always included in every product of this line.") }}
{% if multiple and group.required %} {{ _("Pick at least one.") }} {% elif multiple %} {{ _("Pick any number, or none.") }} {% elif group.required %} {{ _("Exclusive group. Pick exactly one.") }} {% else %} {{ _("Exclusive group. Pick one at most.") }} {% endif %}
{{ _("Dependencies are added automatically as you select.") }}