From 17a75b947405dc45ece1657d9cbfef7d51ee9df8 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 19 Feb 2014 01:07:17 +0800 Subject: Bug 971004: Bugzilla form for Community IT Requests --- .htaccess | 1 + .../en/default/bug/create/comment-remo-it.txt.tmpl | 79 ++++++ .../en/default/bug/create/create-remo-it.html.tmpl | 294 +++++++++++++++++++++ extensions/REMO/web/styles/moz_reps.css | 5 + 4 files changed, 379 insertions(+) create mode 100644 extensions/REMO/template/en/default/bug/create/comment-remo-it.txt.tmpl create mode 100644 extensions/REMO/template/en/default/bug/create/create-remo-it.html.tmpl diff --git a/.htaccess b/.htaccess index 81561d566..64b6d5c94 100644 --- a/.htaccess +++ b/.htaccess @@ -54,6 +54,7 @@ RewriteRule ^form[\.:]mozpr$ enter_bug.cgi?product=Mozilla+PR&format=mozpr RewriteRule ^form[\.:]reps[\.:]mentorship$ enter_bug.cgi?product=Mozilla+Reps&format=mozreps RewriteRule ^form[\.:]reps[\.:]budget$ enter_bug.cgi?product=Mozilla+Reps&format=remo-budget RewriteRule ^form[\.:]reps[\.:]swag$ enter_bug.cgi?product=Mozilla+Reps&format=remo-swag +RewriteRule ^form[\.:]reps[\.:]it$ enter_bug.cgi?product=Mozilla+Reps&format=remo-it RewriteRule ^form[\.:]reps[\.:]payment$ page.cgi?id=remo-form-payment.html RewriteRule ^form[\.:]employee[\.\-:]incident$ enter_bug.cgi?product=mozilla.org&format=employee-incident RewriteRule ^form[\.:]brownbag$ https://air.mozilla.org/requests diff --git a/extensions/REMO/template/en/default/bug/create/comment-remo-it.txt.tmpl b/extensions/REMO/template/en/default/bug/create/comment-remo-it.txt.tmpl new file mode 100644 index 000000000..7e95dd017 --- /dev/null +++ b/extensions/REMO/template/en/default/bug/create/comment-remo-it.txt.tmpl @@ -0,0 +1,79 @@ +[%# 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. + #%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +Name: +[%+ cgi.param('name') %] + +Mozillians.org Profile: +[%+ cgi.param('mozillian') %] + +Reps Profile: +[%+ cgi.param('reps') || "-" %] + +Community Name: +[%+ cgi.param('community') %] + +[% FOREACH item = cgi.param('items') %] +[% IF item == "apps_email" || item == "domain" || item == "ssl" %] +[% IF item == "apps_email" %] +[% domain_title = domain_title _ ":: Google Apps Emails\n" %] +[% END %] +[% IF item == "domain" %] +[% domain_title = domain_title _ ":: Domain Name\n" %] +[% END %] +[% IF item == "ssl" %] +[% domain_title = domain_title _ ":: SSL\n" %] +[% END %] +[% END %] +[% END %] + +[% FOREACH item = cgi.param('items') %] +[% IF item == "hosting" %] +:: Hosting + +Expected visits per month: +[%+ cgi.param('hosting_visits') %] + +What will run on the hosting: +[%+ cgi.param('hosting_running') %] + +Hosting data: +[%+ cgi.param('hosting_data') || "-" %] + +[% ELSIF (item == "apps_email" || item == "domain" || item == "ssl") + && domain_title %] +[% domain_title FILTER html %] +[% domain_title = "" %] +Domain Name: +[%+ cgi.param('domain_name') %] + +[% ELSIF item == "discourse" %] +:: Discourse Category + +Category Names: +[%+ cgi.param('discourse_names') %] + +Moderators: +[%+ cgi.param('discourse_mods') %] + +Background Hex Code: +[%+ cgi.param('discourse_bg') || "-" %] + +[% ELSIF item == "other" %] +:: Other + +[%+ cgi.param('other_value') %] + +[% END %] +[% END %] + +Comments: +[%+ cgi.param('comments') || "-" %] diff --git a/extensions/REMO/template/en/default/bug/create/create-remo-it.html.tmpl b/extensions/REMO/template/en/default/bug/create/create-remo-it.html.tmpl new file mode 100644 index 000000000..a1085ae97 --- /dev/null +++ b/extensions/REMO/template/en/default/bug/create/create-remo-it.html.tmpl @@ -0,0 +1,294 @@ +[%# 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 + onload = "init()" + title = "Community IT Request" + style_urls = [ "extensions/REMO/web/styles/moz_reps.css" ] +%] + +[% USE Bugzilla %] +[% mandatory = '*' %] + + + + + +

Community IT Request

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Your Name:[% mandatory FILTER none %]
Mozillians.org Profile:[% mandatory FILTER none %]
Reps Profile (if applicable):
Your Community's Name:[% mandatory FILTER none %]
+ Items Requesting:[% mandatory FILTER none %] + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
Hosting
Expected visits per month:[% mandatory FILTER none %]
What will run on the hosting?:[% mandatory FILTER none %]
Data: + + Any data we can use to help choose the best solution (traffic graphs etc).
+ +
Domain
Domain Name:[% mandatory FILTER none %]
Discourse Category
Discourse Category Names:[% mandatory FILTER none %]
Moderators:[% mandatory FILTER none %]
Hex code of background of category tag:
Other Item
Other:[% mandatory FILTER none %]
+ Other Comments +
+ Please explain why you'd like the hosting, and anything else this form does not include.
+ +
+ +
  
+ +
+ +[% PROCESS global/footer.html.tmpl %] diff --git a/extensions/REMO/web/styles/moz_reps.css b/extensions/REMO/web/styles/moz_reps.css index 1cd9002b4..216bdd234 100644 --- a/extensions/REMO/web/styles/moz_reps.css +++ b/extensions/REMO/web/styles/moz_reps.css @@ -6,6 +6,7 @@ #reps-form th, #reps-form td { padding: 5px; + vertical-align: top; } #reps-form .even th, #reps-form .even td { @@ -22,6 +23,10 @@ width: 590px; } +#reps-form textarea.small { + width: 295px; +} + #reps-form .mandatory { color: red; font-size: 80%; -- cgit v1.2.3-24-g4f1b