From 6bf2ddd3372a68c24fd6576421a4df28877c2de2 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 3 Mar 2015 13:50:39 +0800 Subject: Bug 1134765: Report for recruiting data --- .../default/bug/create/comment-recruiting.txt.tmpl | 27 ++++++------- .../user-error-auth_failure_object.html.tmpl | 2 + .../en/default/hook/reports/menu-end.html.tmpl | 7 ++++ .../default/pages/recruiting_dashboard.html.tmpl | 46 ++++++++++++++++++++++ 4 files changed, 67 insertions(+), 15 deletions(-) create mode 100644 extensions/BMO/template/en/default/pages/recruiting_dashboard.html.tmpl (limited to 'extensions/BMO/template') diff --git a/extensions/BMO/template/en/default/bug/create/comment-recruiting.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-recruiting.txt.tmpl index 579d385f9..077697b32 100644 --- a/extensions/BMO/template/en/default/bug/create/comment-recruiting.txt.tmpl +++ b/extensions/BMO/template/en/default/bug/create/comment-recruiting.txt.tmpl @@ -1,22 +1,19 @@ -[%# The contents of this file are subject to the Mozilla Public - # License Version 1.1 (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.mozilla.org/MPL/ +[%# 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/. # - # Software distributed under the License is distributed on an "AS - # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - # implied. See the License for the specific language governing - # rights and limitations under the License. - # - # The Original Code is the BMO Bugzilla Extension. + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[%# + # IMPORTANT # - # The Initial Developer of the Original Code is the Mozilla Foundation - # Portions created by the Initial Developers are Copyright (C) 2011 the - # Initial Developer. All Rights Reserved. + # If you update this template, you must also update the parsing code in + # extensions/BMO/lib/Reports/Recruiting.pm # - # Contributor(s): - # David Lawrence #%] + [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] diff --git a/extensions/BMO/template/en/default/hook/global/user-error-auth_failure_object.html.tmpl b/extensions/BMO/template/en/default/hook/global/user-error-auth_failure_object.html.tmpl index 7fae9d1b0..9a1f220dd 100644 --- a/extensions/BMO/template/en/default/hook/global/user-error-auth_failure_object.html.tmpl +++ b/extensions/BMO/template/en/default/hook/global/user-error-auth_failure_object.html.tmpl @@ -16,4 +16,6 @@ comments [% ELSIF object == 'bounty_attachments' %] bounty attachments +[% ELSIF object == 'recruiting_dashboard' %] + the Recruiting Dashboard [% END %] diff --git a/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl b/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl index 34c51db81..991a685be 100644 --- a/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl +++ b/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl @@ -59,5 +59,12 @@ - TheSchwartz queue [% END %] + [% IF user.in_group('hr') %] +
  • + + Recruiting Dashboard + - Dashboard for open requested requisitions. +
  • + [% END %] diff --git a/extensions/BMO/template/en/default/pages/recruiting_dashboard.html.tmpl b/extensions/BMO/template/en/default/pages/recruiting_dashboard.html.tmpl new file mode 100644 index 000000000..8eeae3b87 --- /dev/null +++ b/extensions/BMO/template/en/default/pages/recruiting_dashboard.html.tmpl @@ -0,0 +1,46 @@ +[%# 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 %] +[% INCLUDE global/header.html.tmpl + title = "Recruiting Dashboard" + style_urls = [ "extensions/BMO/web/styles/reports.css" ] + style = "#report td { vertical-align: top; }" +%] + +

    Recuriting Dashboard

    + +[% IF bugs.size %] + + + + + + + + + + + [% FOREACH bug = bugs %] + + + + + + + + + [% END %] +
    [% terms.Bug %]SummaryHiring ManagerSCVPPart of Strategic PlanWhy is this critical for success
    [% bug.id FILTER bug_link(bug) FILTER none %][% bug.short_desc FILTER html %][% bug.hiring_manager FILTER html %][% bug.scvp FILTER html %][% bug.strategic_plan FILTER html FILTER html_line_break %][% bug.why_critical FILTER html FILTER html_line_break %]
    +[% ELSE %] +

    + No open recruiting requisitions. +

    +[% END %] + +[% INCLUDE global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b