Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIGITAL-192: Implement job board #95

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6866515
DIGITAL-192: Initial commit for job boards theme
cathybaptista Dec 30, 2024
ad4a69e
DIGITAL-192: job board styling
cathybaptista Dec 30, 2024
316afe6
DIGITAL-192: add styles to job board entries.
cathybaptista Dec 30, 2024
27f3048
DIGITAL-192: Job Board template.
cathybaptista Jan 2, 2025
6bd6e6c
DIGITAL-192: Configuration files for job board admin.
cathybaptista Jan 2, 2025
395183e
DIGITAL-192: Update job board content.
cathybaptista Jan 2, 2025
dda6bab
DIGITAL-192: Add new role for admin and merge with origin/develop.
cathybaptista Jan 2, 2025
4de2880
DIGITAL-192: We should only show jobs that are still available.
cathybaptista Jan 3, 2025
6a6814c
DIGITAL-192: dictionary coding standards.
cathybaptista Jan 3, 2025
5b11b90
DIGITAL-192: dictionary coding standards.
cathybaptista Jan 3, 2025
a83c3ab
DIGITAL-192: Initial commit for job boards theme
cathybaptista Dec 30, 2024
7ad423a
DIGITAL-192: job board styling
cathybaptista Dec 30, 2024
b4adb4e
DIGITAL-192: add styles to job board entries.
cathybaptista Dec 30, 2024
4294d85
DIGITAL-192: Job Board template.
cathybaptista Jan 2, 2025
e36e3f7
DIGITAL-192: We should only show jobs that are still available.
cathybaptista Jan 3, 2025
6c922cf
DIGITAL-192: dictionary coding standards.
cathybaptista Jan 3, 2025
b3b6a1a
DIGITAL-192: dictionary coding standards.
cathybaptista Jan 3, 2025
0907f12
DIGITAL-192: Initial commit for job boards theme
cathybaptista Dec 30, 2024
e9575c3
DIGITAL-192: job board styling
cathybaptista Dec 30, 2024
e620407
DIGITAL-192: Revert "Add new role for admin and merge with origin/dev…
mattsqd Jan 7, 2025
5d541c8
DIGITAL-192: Redoing on the needed files from "Add new role for admin…
mattsqd Jan 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions config/sync/config_pages.type.job_board_administration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
uuid: 745682ea-e8f2-4294-9a6c-8c6df413f0e5
langcode: en
status: true
dependencies: { }
id: job_board_administration
label: 'Job Board Administration'
token: false
context:
show_warning: true
group:
language: false
fallback:
language: ''
menu:
path: /admin/content/job-board
weight: 0
description: ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: d28992ea-aa89-4115-a737-2ab0926cc0b4
langcode: en
status: true
dependencies:
config:
- config_pages.type.job_board_administration
- field.field.config_pages.job_board_administration.field_description
id: config_pages.job_board_administration.default
targetEntityType: config_pages
bundle: job_board_administration
mode: default
content:
field_description:
type: string_textarea
weight: 0
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
label:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: b4e80cbc-ce78-4301-bdf6-353f5cf1a490
langcode: en
status: true
dependencies:
config:
- config_pages.type.job_board_administration
- field.field.config_pages.job_board_administration.field_description
id: config_pages.job_board_administration.default
targetEntityType: config_pages
bundle: job_board_administration
mode: default
content:
field_description:
type: basic_string
label: above
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: bebe3444-fb1a-4d80-8df8-ae8e858e5bd5
langcode: en
status: true
dependencies:
config:
- config_pages.type.job_board_administration
- field.storage.config_pages.field_description
id: config_pages.job_board_administration.field_description
field_name: field_description
entity_type: config_pages
bundle: job_board_administration
label: Description
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
19 changes: 19 additions & 0 deletions config/sync/field.storage.config_pages.field_description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 5aeb112e-cadd-47bf-9d3f-79cc2fbbe955
langcode: en
status: true
dependencies:
module:
- config_pages
id: config_pages.field_description
field_name: field_description
entity_type: config_pages
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: 4c5e5893-6ae9-4a3f-b12f-72783e7a03c9
langcode: en
status: true
dependencies:
config:
- user.role.job_board_manager
module:
- user
id: user_add_role_action.job_board_manager
label: 'Add the Job Board Manager role to the selected user(s)'
type: user
plugin: user_add_role_action
configuration:
rid: job_board_manager
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: 9096afe6-a8b3-4484-a03d-51c4bc459b0f
langcode: en
status: true
dependencies:
config:
- user.role.job_board_manager
module:
- user
id: user_remove_role_action.job_board_manager
label: 'Remove the Job Board Manager role from the selected user(s)'
type: user
plugin: user_remove_role_action
configuration:
rid: job_board_manager
15 changes: 15 additions & 0 deletions config/sync/user.role.job_board_manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuid: da56047c-0a73-497e-8794-1e1b3f971c06
langcode: en
status: true
dependencies:
module:
- config_pages
- node
id: job_board_manager
label: 'Job Board Manager'
weight: 10
is_admin: null
permissions:
- 'access content overview'
- 'edit job_board_administration config page entity'
- 'view job_board_administration config page entity'
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
_meta:
version: '1.0'
entity_type: config_pages
uuid: db660112-42ff-4348-a21f-b49ce6a0dafc
bundle: job_board_administration
default:
label:
-
value: 'https://docs.google.com/spreadsheets/d/1VW1IxK0KPmH11DlQbxL5Hj2qc7Y3223PDpp_t5DhcG8/edit?gid=1857335212#gid=1857335212'
type:
-
target_id: job_board_administration
context:
-
value: 'a:0:{}'
field_description:
-
value: "- title: Community Outreach Specialist\r\n department: Department of Homeland Security\r\n location: Anywhere in the U.S. (remote job)\r\n description: >\r\n 6-month non-reimbursable assignment with the possibility of extension. Office of the Citizenship and Immigration Services Ombudsman (CIS Ombudsman) Community Outreach Specialist Series Requested: 0301 Security Clearance: None Virtual/Remote: Yes Only current, full-time federal employees are eligible. Resumes are reviewed every 30 days until selection/closing date. This is a Detail, not a Developmental Rotation. Supervisory approval form must be signed.\r\n open_date: 2024-09-03\r\n close_date: 2024-11-29\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/807704100\r\n cop_topics:\r\n - Communicators\r\n - Plain Language\r\n\r\n- title: MANAGING DIRECTOR COMMUNICATIONS\r\n department: Other Agencies and Independent Organizations\r\n location: Washington, District of Columbia\r\n description: >\r\n This position is part of the U.S. International Development Finance Corporation (DFC), Office of External Affairs. As the Managing Director, Communications you will develop and implement communication strategies that promote the DFC's mission, values, and objectives to key stakeholders, including the public, policymakers, media outlets, and private sector partners.\r\n open_date: 2024-11-07\r\n close_date: 2024-11-29\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/804478300\r\n cop_topics:\r\n - Communicators\r\n\r\n- title: MANAGING DIRECTOR COMMUNICATIONS\r\n department: Other Agencies and Independent Organizations\r\n location: Washington, District of Columbia\r\n description: >\r\n This position is part of the U.S. International Development Finance Corporation (DFC), Office of External Affairs. As the Managing Director, Communications you will develop and implement communication strategies that promote the DFC's mission, values, and objectives to key stakeholders, including the public, policymakers, media outlets, and private sector partners.\r\n open_date: 2024-11-07\r\n close_date: 2024-11-29\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/804477900\r\n cop_topics:\r\n - Communicators\r\n\r\n- title: Management and Program Analyst\r\n department: Department of Homeland Security\r\n location: Anywhere in the U.S. (remote job)\r\n description: >\r\n This position is located in External Affairs Directorate, Office of Access and Information Services, Digital Services Division. As an Management and Program Analyst, you will provide analysis, program/product support, and advice to branch and division leadership on division products and features.\r\n open_date: 2024-11-13\r\n close_date: 2024-11-22\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/818686500\r\n cop_topics:\r\n - User Experience\r\n\r\n- title: Visual Information Specialist\r\n department: Department of the Treasury\r\n location: Location Negotiable After Selection\r\n description: >\r\n This position is located at Office of the Inspector General for Tax Admin,Office of Audit. As a Visual Information Specialist, you will manage and oversee visual information projects, providing design, production, and consultation services. These projects will support TIGTA's Office of Audit and activities through visual means, including print and online dashboarding.\r\n open_date: 2024-11-12\r\n close_date: 2024-11-26\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/818619700\r\n cop_topics:\r\n - Communicators\r\n\r\n- title: Managing Director, Stakeholder Engagement and Events\r\n department: Other Agencies and Independent Organizations\r\n location: Washington, District of Columbia\r\n description: >\r\n This position is part of the U.S. International Development Finance Corporation (DFC), Office of External Affairs. As the Managing Director, Stakeholder Engagement & Events you will be responsible for developing and implementing external stakeholder engagement and outreach strategies that support the DFC's mission and objectives, building and maintaining strong relationships with key stakeholders and managing a team of outreach and event professionals.\r\n open_date: 2024-11-14\r\n close_date: 2024-12-05\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/818998200\r\n cop_topics:\r\n - Communicators\r\n\r\n- title: Managing Director, Stakeholder Engagement and Events\r\n department: Other Agencies and Independent Organizations\r\n location: Washington, District of Columbia\r\n description: >\r\n This position is part of the U.S. International Development Finance Corporation (DFC), Office of External Affairs. As the Managing Director, Stakeholder Engagement & Events you will be responsible for developing and implementing external stakeholder engagement and outreach strategies that support the DFC's mission and objectives, building and maintaining strong relationships with key stakeholders and managing a team of outreach and event professionals.\r\n open_date: 2024-11-14\r\n close_date: 2024-12-05\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819000000\r\n cop_topics:\r\n - Communicators\r\n\r\n- title: Writer-Editor\r\n department: Legislative Branch\r\n location: Washington, District of Columbia\r\n description: >\r\n This position is located in the Office of Public Information and Education Directorate, Copyright Office. The position description number for this position is 414903. The salary range indicated reflects the locality pay adjustments for the Washington, D.C., Metropolitan area. This is a non-supervisory, non-bargaining unit position. Relocation expenses will not be authorized for the person(s) selected under this vacancy announcement.\r\n open_date: 2024-11-07\r\n close_date: 2024-12-02\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/818194900\r\n cop_topics:\r\n - Communicators\r\n\r\n- title: Management and Program Analyst (Customer Experience)\r\n department: Department of Commerce\r\n location: Alexandria, Virginia\r\n description: >\r\n Are you looking to join an agency that celebrates, supports and thrives on building the bridge that ensures intellectual property rights (IPR) are accessible to everyone? The Management and Program Analyst (CX) is responsible for planning, designing, and conducting projects, research, and/or studies to analyze, evaluate, develop, and recommend methods to improve business operations and service delivery to customers.\r\n open_date: 2024-11-14\r\n close_date: 2024-11-28\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819082700\r\n cop_topics:\r\n - User Experience\r\n - Web Analytics\r\n - Web Managers\r\n\r\n- title: Management and Program Analyst (Customer Experience)\r\n department: Department of Commerce\r\n location: Alexandria, Virginia\r\n description: >\r\n Are you looking to join an agency that celebrates, supports and thrives on building the bridge that ensures intellectual property rights (IPR) are accessible to everyone? The Management and Program Analyst (CX) is responsible for planning, designing, and conducting projects, research, and/or studies to analyze, evaluate, develop, and recommend methods to improve business operations and service delivery to customers.\r\n open_date: 2024-11-14\r\n close_date: 2024-11-28\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819083000\r\n cop_topics:\r\n - User Experience\r\n - Web Analytics\r\n - Web Managers\r\n\r\n- title: IT Specialist (APPSW/PLCYPLN)\r\n department: Other Agencies and Independent Organizations\r\n location: Multiple Locations\r\n description: >\r\n This position is in the Office of Research and Development, Office of Science Information Management, Application and Information Management Division. About ORD This is an office-centered position*--you must physically report to one of the duty stations stated in this announcement on a regular basis (location TBD after candidate selected). *EPA offers work-from-home and work schedule flexibilities as described in the Benefits section.\r\n open_date: 2024-11-15\r\n close_date: 2024-11-28\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819068100\r\n cop_topics:\r\n - Web Analytics\r\n - Web Managers\r\n\r\n- title: Public Affairs Specialist\r\n department: Department of the Army\r\n location: Walla Walla, Washington\r\n description: >\r\n About the Position: The Walla Walla District US Army Corps of Engineers is comprised of motivated and talented employees providing the very best engineering services for communities in the Pacific Northwest. The District helps manage local water resources for navigation, flood damage reduction, disaster assistance, hydroelectric power generation, and other natural and heritage areas.\r\n open_date: 2024-11-13\r\n close_date: 2024-11-26\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/818473300\r\n cop_topics:\r\n - Communicators\r\n\r\n- title: Communications Engagement Specialist\r\n department: Department of Justice\r\n location: Washington, District of Columbia\r\n description: >\r\n This position serves as Communications Engagement Specialist in the Bureau of Justice Assistance (BJA), Operations Office, Communications and Governmental Affairs. This position is responsible for engaging with a variety of key BJA stakeholders using outreach strategies and tactics that include regular liaison, distribution of BJA resources, materials and information, public events and targeted campaigns.\r\n open_date: 2024-11-19\r\n close_date: 2024-12-02\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819779600\r\n cop_topics:\r\n - Communicators\r\n\r\n- title: Program Specialist (Direct Hire)\r\n department: National Aeronautics and Space Administration\r\n location: Multiple Locations\r\n description: >\r\n The Office of the Chief Information Officer (OCIO) at NASA Headquarters is currently seeking a highly qualified candidate to serve as an Internal Communications Specialist. This position is a critical part of the OCIO Customer Engagement Office, responsible for coordinating across OCIO to improve the effectiveness of communications and outreach products and activities aimed at internal stakeholders.\r\n open_date: 2024-11-20\r\n close_date: 2024-11-22\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819497300\r\n cop_topics:\r\n - Communicators\r\n - Plain Language\r\n - User Experience\r\n\r\n- title: Program Analyst\r\n department: Department of Veterans Affairs\r\n location: Multiple Locations\r\n description: >\r\n The incumbent reports to the Media Manager and serves as the Web Operations Manager working closely with the Enterprise Support Service (ESS) Executive Leadership Team (ELT) and the Healthcare Environment and Facilities Program (HEFP) Content Management Team (CMT). The incumbent oversees all strategic and operational website initiatives, website content management and integration of functional website processes utilizing new and current information technology systems and applications.\r\n open_date: 2024-11-20\r\n close_date: 2024-11-26\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819845200\r\n cop_topics:\r\n - Web Analytics\r\n - Web Managers\r\n\r\n- title: Division Chief of Product Management, GS-0301-15, FPL 15 (DE)\r\n department: Department of Education\r\n location: Washington, District of Columbia\r\n description: >\r\n The position is telework eligible consistent with the Agency’s telework and remote work program policy. This position is located in Federal Student Aid, Technology Directorate Front Office in Washington DC, and is responsible for providing leadership in the evaluation, assessment, improvement and optimization of programs and management systems.\r\n open_date: 2024-11-20\r\n close_date: 2024-12-09\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819979700\r\n cop_topics:\r\n - User Experience\r\n - Web Managers\r\n\r\n- title: Division Chief of Product Management, GS-0301-15, FPL 15 (MP)\r\n department: Department of Education\r\n location: Washington, District of Columbia\r\n description: >\r\n The position is telework eligible consistent with the Agency’s telework and remote work program policy. This position is located in Federal Student Aid, Technology Directorate Front Office in Washington DC, and is responsible for providing leadership in the evaluation, assessment, improvement and optimization of programs and management systems.\r\n open_date: 2024-11-20\r\n close_date: 2024-12-09\r\n apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/819981600\r\n cop_topics:\r\n - User Experience\r\n - Web Managers"
22 changes: 22 additions & 0 deletions web/themes/custom/digital_gov/digital_gov.theme
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

declare(strict_types=1);

use Drupal\Component\Serialization\Yaml;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\Link;
use Drupal\Core\Template\Attribute;
Expand Down Expand Up @@ -363,3 +364,24 @@ function digital_gov_theme_suggestions_container_alter(array &$suggestions, arra
$suggestions[] = 'container__no_wrapper';
}
}

/**
* Implements hook_preprocess_HOOK().
*/
function digital_gov_preprocess_node__landing_page__job_board(&$variables, $hook) {
$entity_type_manager = \Drupal::entityTypeManager();
$config_pages = $entity_type_manager->getStorage('config_pages')->load('job_board_administration');
$yml_string = $field_description = $config_pages->get('field_description')->getValue()[0]['value'];
$yml_array = Yaml::decode($yml_string);
$filtered_array = [];
foreach ($yml_array as $item) {
$close_date = date('Y-m-d', $item['close_date']);
$today = date('Y-m-d');
if ($close_date >= $today) {
$item['open_date'] = date('F j, Y', $item['open_date']);
$item['close_date'] = date('F j, Y', $item['close_date']);
$filtered_array[] = $item;
}
}
$variables['job_board_administration'] = $filtered_array;
}
Loading
Loading