{% extends "modules/gci/base.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}

{% block stylesheets %}
  {{ block.super }}
  <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gci/forms.css" />
  <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gci/uniform.default.css" />
{% endblock stylesheets %}

{% block page_content %}
{% if posted %}
  <div class="block block-user-message">
    <p>Data saved successfully.</p>
  </div>
{% else %}
  {% if form.non_field_errors %}
    <div class="block block-user-message">
      <p>{{ form.non_field_errors }}</p>
    </div>
  {% else %}
    {% if form.errors %}
      <div class="block block-user-message">
        <p>Sorry, we could not save your data. Please fix the errors mentioned below.</p>
      </div>
    {% endif %}
  {% endif %}
{% endif %}

<div class="block block-form">
  <div class="block-form-title">
    <span class="title">{{ page_name }}</span>
    <span class="req">* fields required</span>
  </div>
  {% if form_instructions %}
  <div>
    <p><strong>{{ form_instructions|safe }}</strong></p>
  </div>
  {% endif %}
  <form method="post" enctype="multipart/form-data" id="file-form" class="form-submit-forms clearfix">
    {{ form.render }}
    <div class="form-row form-row-buttons">
      <input value="Submit" name="static_content_submit" class="button" type="submit">
    </div>
  </form>
</div>
{% endblock page_content %}

{% block dependencies %}
  [
    dep.melange.uploadform,
    null,
    tc(
      "/soc/content/{{ app_version }}/js/templates/modules/gci/static_content/base.js"
    )
  ]
{% endblock dependencies %}
Implement the template that allows program hosts to upload static content.
Implement the template that allows program hosts to upload static content.
