{% extends "demos/base.html" %} {% set obj = submission %} {% block site_css %} {{ super() }} {{ css('submission',) }} {% endblock %} {% block body_attributes %}id="submit"{% endblock %} {% block bodyclass %}{% endblock %} {% block title %} {% if edit %} {{ page_title(_('{subtitle} | Demo Studio') | f(subtitle=_("Edit {demo_title}") | f(demo_title=submission.title))) }} {% else %} {{ page_title(_('{subtitle} | Demo Studio') | f(subtitle=_('Submit a New Demo'))) }} {% endif %} {% endblock %} {% macro li_field(form, field_name, classes='', note='', image=False, show_label=True) %} {% set field = form[field_name] %}
  • {% if show_label %} {% endif %} {{ field|safe }} {% if edit %} {% if 'file' == field.field.widget.input_type and obj[field_name] %} {% if image %}

    {% else %} {# {{ obj[field_name] }} #} {% endif %} {% endif %} {% endif %} {% if note %}

    {{ note }}

    {% endif %} {{ field.errors|safe }}
  • {% endmacro %} {% block content %}

    {{_("Mozilla Demo Studio")}}

    {% if edit %} {{_("Edit {demo_title}") | f(demo_title=submission.title)}} {% else %} {{_("Submit a New Demo")}} {% endif %}

    {% if not edit %} {% trans %}

    Whether you are creating an amazing new way to experience the Web or just experimenting with the latest technologies, we invite you to submit your own demos to share with (or show off to) other web developers.

    Please complete the form below to ensure your demo is submitted to the Demo Studio successfully.

    {% endtrans %} {% endif %}
    {{ csrf() }}
    {{_('Describe Your Demo')}} {% trans %}

    Tell us more about your demo, including the name, description and the technologies used. Please list the browsers you have tested it with.

    {% endtrans %}
      {{ li_field(form, 'title') }} {{ li_field(form, 'summary') }} {{ li_field(form, 'description') }} {{ li_field(form, 'hidden') }}
      {{_('Select up to five technologies used in your demo.')}}
        {{ li_field(form, 'tech_tags', show_label=False) }}
      {% if form.fields.challenge_tags %}
      {% trans derby_url = url('demos_devderby_landing') %} Submit your demo to the Dev Derby! {% endtrans %}

      {{_("Check the appropriate Dev Derby box and make sure you select the relevant technologies above to be considered for the developer challenge.")}}

        {{ li_field(form, 'challenge_tags', show_label=False) }}

      Each Derby ends at 11:59:59 p.m. PT on the last day of its month.

      {% endif %}
    {{_('Show Off Your Demo')}}
    • {{_('Provide at least one screenshot of your demo in action')}}
        {{ li_field(form, 'screenshot_1', image=True) }} {{ li_field(form, 'screenshot_2', image=True) }} {{ li_field(form, 'screenshot_3', image=True) }} {{ li_field(form, 'screenshot_4', image=True) }} {{ li_field(form, 'screenshot_5', image=True) }}

      {{_('JPEG and PNG supported. Minimum size of 480x360.')}}

    • {{ li_field(form, 'video_url', note=_('We support YouTube and Vimeo')) }} {{ li_field(form, 'navbar_optout', note=_('If your demo has problems when displayed in an <iframe>, try changing this.')) }}

    {{_('Preparing Your Demo')}}

    {% trans signup_url=url('users.login') %}
    • Your demo's source code should be packaged inside a ZIP file.
    • The main page of your demo should be a file named index.html in the root of the ZIP.
    • Your demo should be built on client-side technology (HTML, CSS, JavaScript). Server-side languages like PHP and Ruby are not supported.
    • If your demo requires external resources, it should use AJAX to access them.
    • To submit your demo, you need an MDN account.
    • Please identify in the demo details box any 3rd party content that can't be licensed under the CC-BY-SA license and include links to the authors' websites.
    {% endtrans %}
    {{_('Provide the Source Code')}} {% if form.fields.demo_package %} {% trans %}

    Upload a ZIP file of your source code, in which the main page of your demo is named index.html in the root directory.

    {% endtrans %} {% else %}

    You cannot edit your source code since the Dev Derby submission deadline has passed, but you may add or update the link and license.

    {% endif %}
      {% if form.fields.demo_package %} {{ li_field(form, 'demo_package') }} {% endif %} {{ li_field(form, 'source_code_url') }} {{ li_field(form, 'license_name') }}
    {% if not edit %}
    {% endif %}

    {% if not edit %} {{_('or')}} {{_('Discard Demo')}} {% else %} or {{_('Discard Changes')}} {% endif %}

    {% endblock %} {% block js %} {{ super() }} {% endblock %}