<commit_before>{% from 'developers/includes/macros.html' import select_cats, tip %}
{% from 'includes/forms.html' import required %}
{% extends 'developers/base_impala.html' %}

{% set title = loc('Edit App Details') %}

{% block title %}{{ hub_page_title(title) }}{% endblock %}

{% set icon_status_url = addon.get_dev_url('ajax.image.status') %}
{% set icon_upload_url = addon.get_dev_url('upload_icon') %}
{% set screenshot_upload_url = addon.get_dev_url('upload_preview') %}

{% block content %}
  {{ hub_breadcrumbs(addon, items=[(None, _('Submit App'))]) }}
  <div id="temp-locale-container">{{ l10n_menu(addon.default_locale) }}</div>
  <h1>{{ _('Submit an App') }}</h1>
  {{ progress(request, addon=addon, step=step) }}
  <section id="submit-details" class="primary">
    <h2>{{ title }}</h2>
    <p>
      {{ loc("Please review your listing information below. We've pre-filled "
             "as much as we can from your manifest.") }}
    </p>
    <form enctype="multipart/form-data" method="post" class="devhub-form"
          id="submit-media" data-checkurl="{{ addon.get_dev_url('ajax.image.status') }}">
      {{ csrf() }}
      <header id="general-details" class="island swagger c">
        <div id="icon_preview" class="invisible-upload">
          <div id="icon_preview_64" class="icon_preview">
            <img src="{{ addon.get_icon_url(64) }}"
                 data-checkurl="{{ icon_status_url }}">
            <input type="file" id="id_icon_upload" name="icon_upload"
                   data-allowed-types="image/jpeg|image/png"
                   data-upload-url="{{ icon_upload_url }}">
          </div>
        </div>
        <div class="houdini{{ ' ready' if not (form_basic.name.errors or
                                               form_basic.slug.errors) }}">
          <div class="before">
            <h2 class="output">{{ addon.name }}</h2>
            <b>{{ loc('Details page:') }}</b>
            {# The URL for the details page hasn't been finalized,
               so let's not reverse it just yet. #}
            {{ settings.SITE_URL }}/&hellip;/
            {{ addon.app_slug }}
            {% if request.can_view_consumer %}
              <a class="view" href="{{ addon.get_url_path() }}">{{ _('View Listing') }}</a>
            {% else %}
              <em class="edit-addon-details">{{ loc('(Not Available Yet)') }}</em>
            {% endif %}
          </div>
          <div class="after">
            <table>
              <tr{% if form_basic.name.errors %} class="error"{% endif %}>
                <th>
                  <label for="{{ form_basic.name.auto_id }}">
                    {{ _('Name') }}
                  </label>
                </th>
                <td>
                  {{ form_basic.name }}
                  {{ form_basic.name.errors }}
                </td><commit_msg>sometimes make app name show up on Submit Details page ... maybe? (bug 747049)<commit_after>{% from 'developers/includes/macros.html' import select_cats, tip %}
{% from 'includes/forms.html' import required %}
{% extends 'developers/base_impala.html' %}

{% set title = loc('Edit App Details') %}

{% block title %}{{ hub_page_title(title) }}{% endblock %}

{% set icon_status_url = addon.get_dev_url('ajax.image.status') %}
{% set icon_upload_url = addon.get_dev_url('upload_icon') %}
{% set screenshot_upload_url = addon.get_dev_url('upload_preview') %}

{% block content %}
  {{ hub_breadcrumbs(addon, items=[(None, _('Submit App'))]) }}
  <div id="temp-locale-container">{{ l10n_menu(addon.default_locale) }}</div>
  <h1>{{ _('Submit an App') }}</h1>
  {{ progress(request, addon=addon, step=step) }}
  <section id="submit-details" class="primary">
    <h2>{{ title }}</h2>
    <p>
      {{ loc("Please review your listing information below. We've pre-filled "
             "as much as we can from your manifest.") }}
    </p>
    <form enctype="multipart/form-data" method="post" class="devhub-form"
          id="submit-media" data-checkurl="{{ addon.get_dev_url('ajax.image.status') }}">
      {{ csrf() }}
      <header id="general-details" class="island swagger c">
        <div id="icon_preview" class="invisible-upload">
          <div id="icon_preview_64" class="icon_preview">
            <img src="{{ addon.get_icon_url(64) }}"
                 data-checkurl="{{ icon_status_url }}">
            <input type="file" id="id_icon_upload" name="icon_upload"
                   data-allowed-types="image/jpeg|image/png"
                   data-upload-url="{{ icon_upload_url }}">
          </div>
        </div>
        <div class="houdini{{ ' ready' if not (form_basic.name.errors or
                                               form_basic.slug.errors) }}">
          <div class="before">
            <!-- {{ addon.name }} -->
            <h2 class="output">{{ addon.name }}</h2>
            <b>{{ loc('Details page:') }}</b>
            {# The URL for the details page hasn't been finalized,
               so let's not reverse it just yet. #}
            {{ settings.SITE_URL }}/&hellip;/
            {{ addon.app_slug }}
            {% if request.can_view_consumer %}
              <a class="view" href="{{ addon.get_url_path() }}">{{ _('View Listing') }}</a>
            {% else %}
              <em class="edit-addon-details">{{ loc('(Not Available Yet)') }}</em>
            {% endif %}
          </div>
          <div class="after">
            <table>
              <tr{% if form_basic.name.errors %} class="error"{% endif %}>
                <th>
                  <label for="{{ form_basic.name.auto_id }}">
                    {{ _('Name') }}
                  </label>
                </th>
                <td>
                  {{ form_basic.name }}
                  {{ form_basic.name.errors }}
                </td>
{'fraction_non_alphanumeric': 0.1756266205704408, 'fraction_numerical': 0.005185825410544511, 'mean_word_length': 2.142857142857143, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 78, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3856648', 'n_tokens_mistral': 1854, 'n_tokens_neox': 1749, 'n_words': 370}