[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

[% PROCESS global/variables.none.tmpl %]

[% PROCESS global/header.html.tmpl
   title = "Community IT Discourse Request"
   style_urls      = [ "extensions/REMO/web/styles/moz_reps.css" ]
   javascript_urls = [ "extensions/REMO/web/js/moz_csa_discourse.js" ]
%]

[% USE Bugzilla %]

<noscript>
  <h1>JavaScript is required to use this form.</h1>
</noscript>

<h1>Community IT Discourse Request</h1>

<form method="post" action="[% basepath FILTER none %]post_bug.cgi" id="tmRequestForm" name="f">
  <input type="hidden" name="filed_via" value="custom_form">
  <input type="hidden" name="bug_type" value="task">
  <input type="hidden" name="product" value="Infrastructure & Operations">
  <input type="hidden" name="component" value="Community IT: Discourse">
  <input type="hidden" name="rep_platform" value="All">
  <input type="hidden" name="op_sys" value="Other">
  <input type="hidden" name="version" value="other">
  <input type="hidden" name="format" value="[% format FILTER html %]">
  <input type="hidden" name="comment" id="comment" value="">
  <input type="hidden" name="short_desc" id="short_desc" value="">
  <input type="hidden" name="token" value="[% token FILTER html %]">

  <table id="reps-form">
    <tr class="odd">
      <th><label class="required" for="name">Your Name:</label></th>
      <td><input id="name" name="name" size="40" value="[% user.name FILTER html %]"></td>
    </tr>

    <tr class="even">
      <th><label class="required" for="mozillan">Mozillians.org Profile:</label></th>
      <td><input id="mozillian" name="mozillian" size="40"></td>
    </tr>

    <tr class="odd">
      <th><label class="required" for="community">Your Community's Name:</label></th>
      <td><input id="community" name="community" size="40"></td>
    </tr>

    <tr class="even">
      <th><label class="required" for="discourse_names">Discourse Category Names:</label></th>
      <td><input id="discourse_names" name="discourse_names" size="40"></td>
    </tr>

    <tr class="odd">
      <th><label for="discourse_bg">Hex code of background of category tag:</th>
      <td><input id="discourse_bg" name="discourse_bg" size="40"></td>
    </tr>

    <tr class="even">
      <th colspan="2">
        <label for="comments">
          Other Comments
        </label>
      </th>
    </tr>

    <tr class="even">
      <td colspan="2">
        Please explain anything else this form does not include.
        <br>
        <textarea id="comments" name="comments" rows="4"></textarea>
      </td>
    </tr>

    <tr class="odd">
      <td colspan="2">
        <input id="submit" type="submit" value="Submit">
      </td>
    </tr>
  </table>
</form>

[% PROCESS global/footer.html.tmpl %]
