{% set addon_type = amo.ADDON_PERSONA %} {% extends "impala/base_side_categories.html" %} {% from "includes/forms.html" import pretty_field, tip %} {% from "devhub/includes/macros.html" import some_html_tip %} {% set title = _('Create a New Persona') %} {% block title %}{{ page_title(title) }}{% endblock %} {% block primary %}
{{ impala_breadcrumbs([(url('browse.personas'), _('Personas')), (None, _('Create'))]) }}

{{ title }}

{{ csrf() }}
{{ _('Persona Details') }}
    {{ pretty_field(form.name, label=_('Give your Persona a name.')) }} {{ pretty_field(form.category, label=_('Select the category that best describes your Persona.'), class='row radios addon-cats') }}
  • {{ pretty_field(form.tags, label=_('Add some tags to describe your Persona.'), tag=None, opt=True) }} {{ ngettext('Comma-separated, minimum of {0} character.', 'Comma-separated, minimum of {0} characters.', amo.MIN_TAG_LENGTH)|f(amo.MIN_TAG_LENGTH) }} {{ _('Example: pop, hen, yum. Limit 20.') }}
  • {{ pretty_field(form.summary, label=_('Describe your Persona.'), tooltip=_("A short explanation of your add-on's basic functionality that is displayed in search and browse listings, as well as at the top of your add-on's details page."), tag=None, opt=True) }}
    {{ some_html_tip() }}
{{ _('Persona License') }}
{{ _('Persona Design') }}
  • {{ pretty_field(form.header, label=_('Select a header image for your Persona.'), tag=None, req=True) }} {{ form.header_hash }} {{ form.header_hash.errors }}
    • {{ _('3000 × 200 pixels') }}
    • {{ _('300 KB max') }}
    • {{ _('PNG or JPG') }}
    • {{ _('Aligned to top-right') }}
      {{ _('Select a different header image') }}

    {{ _('Select colors for your Persona.') }}

      {{ pretty_field(form.textcolor, label=_('Foreground Text'), tooltip=_('This is the color of the tab text.')) }} {{ pretty_field(form.accentcolor, label=_('Background'), tooltip=_('This is the color of the tabs.')) }}
    {{ _('Preview') }}
    {{ _("Your Persona's Name") }} {% set amo_user = request.amo_user %} {% trans user=amo_user.username, profile_url=url('users.profile', amo_user.id) %} by {{ user }} {% endtrans %}

    {% endblock %}