summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl
blob: 8c54bc8039a3f2dc2bfe66972a38afd53730fc25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[%# 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 = "Mozilla Discussion Forum"
   generate_api_token = 1
   javascript_urls = [ 'extensions/BMO/web/js/form_validate.js',
                       'js/field.js' ]
   style = ".mandatory{color:red;font-size:80%;}"
%]

<script [% script_nonce FILTER none %]>
<!--
    function trySubmit() {
        var alert_text = "";

        if (!isFilledOut('listName')) {
            alert_text += "Please enter the list name\n";
        }

        if (!isValidEmail(document.getElementById('listAdmin').value)) {
            alert_text += "Please enter a valid email address for the list administrator\n";
        }

        if (alert_text) {
            alert(alert_text);
            return false;
        }

        var listName = document.getElementById('listName').value;
        document.getElementById('short_desc').value = "Discussion Forum: " + listName;

        return true;
    }
// -->
</script>

<p>
  <b>Create a Mozilla Discussion Forum</b><br>
  This option gives you a Mozilla <a
  href="https://www.mozilla.org/about/forums/">Discussion Forum</a>.
  These are the normal mechanism for public discussion in the Mozilla
  project. They are made up of a mailing list on
  <b>lists.mozilla.org</b>, a newsgroup on <b>news.mozilla.org</b> and
  a <b>Google Group</b> (which maintains the list archives), all linked
  together.  Users can add and remove themselves.
</p>

<div id="message">
  <b>Note:</b>
  You must use <a href="https://mozilla.service-now.com/"><b>Service Now</b></a>
  to request a distribution list or a standard mailing list.
</div>
<br>

<form method="post" action="post_bug.cgi" id="mozListRequestForm"
      enctype="multipart/form-data" onSubmit="return trySubmit();">
  <input type="hidden" id="format" name="format" value="mozlist">
  <input type="hidden" id="product" name="product" value="mozilla.org">
  <input type="hidden" id="rep_platform" name="rep_platform" value="All">
  <input type="hidden" id="op_sys" name="op_sys" value="Other">
  <input type="hidden" id="priority" name="priority" value="--">
  <input type="hidden" id="version" name="version" value="other">
  <input type="hidden" id="short_desc" name="short_desc" value="">
  <input type="hidden" id="component" name="component" value="Discussion Forums">
  <input type="hidden" id="bug_severity" name="bug_severity" value="normal">
  <input type="hidden" id="token" name="token" value="[% token FILTER html %]">

  <table>
  <tr>
    <th class="field_label">
      <span class="mandatory" title="Required">*</span> List Name:
    </th>
    <td>
      The desired name for the newsgroup. Should start with 'mozilla.' and fit somewhere
      in the hierarchy described <a href="https://www.mozilla.org/about/forums/">here</a>.<br>
      <input name="listName" id="listName" size="60" value="[% listName FILTER html %]">
    </td>
  </tr>
  <tr>
    <th class="field_label">
     <span class="mandatory" title="Required">*</span> List Administrator:
    </th>
    <td>
       <b>Note:</b>The list administrator is also initially considered to be the list moderator
       and will be responsible for moderation tasks unless delegated to someone else.  For
       convenience, [% terms.Bugzilla %] user accounts will autocomplete but it does not have
       to be a [% terms.Bugzilla %] account.<br>
      [% INCLUDE global/userselect.html.tmpl
         id       => "listAdmin"
         name     => "listAdmin"
         value    => ""
         size     => 60
         multiple => 5
       %]
    </td>
  </tr>
  <tr>
    <td class="field_label">Short Description:</th>
    <td>
      This will be shown to users on the index of lists on the server.<br>
      <input name="listShortDesc" id="listShortDesc" size="60" value="[% listShortDesc FILTER html %]">
    </td>
  </tr>
  <tr>
    <td class="field_label">Long Description:</th>
    <td>
      This will be shown at the top of the list's listinfo page.<br>
      [% INCLUDE global/textarea.html.tmpl
         name           = 'listLongDesc'
         id             = 'listLongDesc'
         minrows        = 10
         maxrows        = 25
         cols           = constants.COMMENT_COLS
         defaultcontent = listLongDesc
       %]
    </td>
  </tr>
  <tr>
    <th class="field_label">Additional Comments:</th>
    <td>
      Justification for the list, special instructions, etc.<br>
      [% INCLUDE global/textarea.html.tmpl
         name           = 'comment'
         id             = 'comment'
         minrows        = 10
         maxrows        = 25
         cols           = constants.COMMENT_COLS
         defaultcontent = comment
       %]
    </td>
  </tr>
  <tr>
    <th class="field_label">CC:</th>
    <td>
      [% INCLUDE global/userselect.html.tmpl
         id => "cc"
         name => "cc"
         value => cc
         size => 60
         multiple => 5
       %]
    </td>
  </tr>
  <tr>
    <th class="field_label">URL:</th>
    <td colspan="3">
      <input name="bug_file_loc" size="60"
             value="[% bug_file_loc FILTER html %]">
    </td>
  </tr>
  <tr>
    <td align="right">
      <input type="checkbox" name="groups" id="group_35" value="infra">
    </td>
    <td>
      <label for="group_35"><b>This is an internal issue which should not be publicly visible.</b></label>
    </td>
  </tr>
  </table>

  <input type="submit" id="commit" value="Submit Request">

  <p>
    Thanks for contacting us. You will be notified by email of any progress made
    in resolving your request.
  </p>
</form>

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