Commit ecd29e15 authored by Nathan Vexler's avatar Nathan Vexler
Browse files

Merging FDSU-745 into work that ebremmer did

parents 604e3f12 26a2821e
<div id="site" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<div id="skip">
<a href="#main" class="element-invisible element-focusable" accesskey="S"><?php print t('Skip to main'); ?></a>
<a href="#footer" class="element-invisible element-focusable"><?php print t('Skip to footer'); ?></a>
</div>
<div id="header">
<?php print render($page['global_header']); ?>
<div id="site-header"><a href="<?php print $front_page ?>" title="<?php print $site_name; ?>" rel="home"><img src="<?php print $logo; ?>" alt="<?php print $site_name; ?>"/></a></div>
<?php print render($page['banner_alt']); ?>
<div id="site-navigation"><?php print render($page['sidebar_first']); ?></div>
</div><!--/header-->
<div id="main" class="clearfix">
<?php print render($page['banner']); ?>
<?php print $messages; ?>
<?php print render($page['help']); ?>
<?php print $breadcrumb; ?>
<?php
if (arg(0) == 'node' && is_numeric(arg(1))) $nid = arg(1);
?>
<h1>Opportunity - <?php print $page['content']['system_main']['nodes'][$nid]['field_position_title'][0]['#markup']; ?></h1>
<?php if ($tabs): ?><div class="node-tabs"><?php print render($tabs); ?></div><?php endif; ?>
<div id="content">
<?php
if ($tabs) {
print render($page['content']['workbench_block']);
}
?>
<strong>Position title:</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_position_title'][0]['#markup']; ?>
<br />
<strong>Opportunity type:</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_opportunity_type'][0]['#markup']; ?>
<br />
<?php if(isset($page['content']['system_main']['nodes'][$nid]['field_job_id'][0]['#markup'])) { ?>
<strong>Job ID:</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_job_id'][0]['#markup']; ?>
<br />
<?php } ?>
<strong>Posted by (department/office):</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_posted_by'][0]['#markup']; ?>
<br /><br />
<strong>Position description:</strong>
<br />
<?php print $page['content']['system_main']['nodes'][$nid]['field_position_description'][0]['#markup']; ?>
<?php if(isset($page['content']['system_main']['nodes'][$nid]['field_start_date'][0]['#markup'])) { ?>
<br />
<strong>Start date:</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_start_date'][0]['#markup']; ?>
<br />
<?php } else { ?>
<br />
<?php } ?>
<strong>Date posted/application open:</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_date_posted'][0]['#markup']; ?>
<?php if(isset($page['content']['system_main']['nodes'][$nid]['field_applicaton_deadline'][0]['#markup'])) { ?>
<br />
<strong>Application deadline:</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_applicaton_deadline'][0]['#markup']; ?>
<?php } ?>
<br />
<strong>Number of positions:</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_number_of_positions'][0]['#markup']; ?>
<?php if(isset($page['content']['system_main']['nodes'][$nid]['field_reports_to'][0]['#markup'])) { ?>
<br />
<strong>Reports to:</strong> <?php print $page['content']['system_main']['nodes'][$nid]['field_reports_to'][0]['#markup']; ?>
<?php } ?>
<?php if(isset($page['content']['system_main']['nodes'][$nid]['field_link_to_application'][0]['#markup'])) { ?>
<br />
<strong>Link to application:</strong> <a href="<?php print $page['content']['system_main']['nodes'][$nid]['field_link_to_application'][0]['#markup']; ?>"><?php print $page['content']['system_main']['nodes'][$nid]['field_link_to_application'][0]['#markup']; ?></a>
<?php } ?>
</div><!--/main-content-->
<div id="site-sidebar">
<?php print render($page['promo']); ?>
<?php print render($page['sidebar_second']); ?>
</div>
</div><!--/main-->
<div id="footer">
<div id="watermark"></div>
<?php if (!empty($page['site_footer'])): ?><div id="site-footer" class="clearfix"><?php print render($page['site_footer']); ?></div><?php endif; ?>
<?php print render($page['global_footer']); ?>
<?php print render($page['login_link']); ?>
</div><!--/footer-->
</div><!--/site-->
<div class="ie-resize-fix"></div>
\ No newline at end of file
......@@ -18,7 +18,7 @@ function uw_ct_opportunities_conditional_fields_default_fields() {
'options' => array(
'state' => 'visible',
'condition' => 'value',
'grouping' => 'AND',
'grouping' => 'OR',
'effect' => 'show',
'effect_options' => array(),
'element_view' => array(
......@@ -262,13 +262,13 @@ function uw_ct_opportunities_conditional_fields_default_fields() {
$items[] = array(
'entity' => 'node',
'bundle' => 'uw_opportunities',
'dependent' => 'field_rate_of_pay',
'dependent' => 'field_rate_of_pay_type',
'dependee' => 'field_opportunity_type',
'options' => array(
'state' => 'required',
'state' => 'visible',
'condition' => 'value',
'grouping' => 'AND',
'effect' => FALSE,
'grouping' => 'OR',
'effect' => 'show',
'effect_options' => array(),
'element_view' => array(
1 => 1,
......
......@@ -78,6 +78,97 @@ function uw_ct_opportunities_field_default_field_bases() {
'type' => 'datetime',
);
// Exported field_base: 'field_end_date'
$field_bases['field_end_date'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_end_date',
'field_permissions' => array(
'type' => 0,
),
'indexes' => array(),
'locked' => 0,
'module' => 'date',
'settings' => array(
'cache_count' => 4,
'cache_enabled' => 0,
'entity_translation_sync' => FALSE,
'granularity' => array(
'day' => 'day',
'hour' => 0,
'minute' => 0,
'month' => 'month',
'second' => 0,
'year' => 'year',
),
'repeat' => 0,
'timezone_db' => '',
'todate' => '',
'tz_handling' => 'none',
),
'translatable' => 1,
'type' => 'datetime',
);
// Exported field_base: 'field_file_opportunities'
$field_bases['field_file_opportunities'] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_file_opportunities',
'field_permissions' => array(
'type' => 0,
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'locked' => 0,
'module' => 'file',
'settings' => array(
'display_default' => 0,
'display_field' => 0,
'entity_translation_sync' => array(
0 => 'fid',
),
'uri_scheme' => 'public',
),
'translatable' => 0,
'type' => 'file',
);
// Exported field_base: 'field_image_opportunities'
$field_bases['field_image_opportunities'] = array(
'active' => 1,
'cardinality' => 10,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_image_opportunities',
'field_permissions' => array(
'type' => 0,
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'locked' => 0,
'module' => 'image',
'settings' => array(
'default_image' => 0,
'entity_translation_sync' => array(
0 => 'fid',
),
'uri_scheme' => 'public',
),
'translatable' => 0,
'type' => 'image',
);
// Exported field_base: 'field_job_id'
$field_bases['field_job_id'] = array(
'active' => 1,
......@@ -157,6 +248,7 @@ function uw_ct_opportunities_field_default_field_bases() {
8 => 8,
9 => 9,
10 => 10,
11 => '10+',
),
'allowed_values_function' => '',
'entity_translation_sync' => FALSE,
......@@ -184,8 +276,8 @@ function uw_ct_opportunities_field_default_field_bases() {
'module' => 'list',
'settings' => array(
'allowed_values' => array(
1 => 'Paid Position',
2 => 'Volunteer Position',
1 => 'Paid position',
2 => 'Volunteer position',
),
'allowed_values_function' => '',
'entity_translation_sync' => FALSE,
......@@ -218,13 +310,13 @@ function uw_ct_opportunities_field_default_field_bases() {
'type' => 'text_with_summary',
);
// Exported field_base: 'field_position_title'
$field_bases['field_position_title'] = array(
// Exported field_base: 'field_posted_by'
$field_bases['field_posted_by'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_position_title',
'field_name' => 'field_posted_by',
'field_permissions' => array(
'type' => 0,
),
......@@ -243,13 +335,13 @@ function uw_ct_opportunities_field_default_field_bases() {
'type' => 'text',
);
// Exported field_base: 'field_posted_by'
$field_bases['field_posted_by'] = array(
// Exported field_base: 'field_rate_of_pay'
$field_bases['field_rate_of_pay'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_posted_by',
'field_name' => 'field_rate_of_pay',
'field_permissions' => array(
'type' => 0,
),
......@@ -264,33 +356,39 @@ function uw_ct_opportunities_field_default_field_bases() {
'entity_translation_sync' => FALSE,
'max_length' => 255,
),
'translatable' => 1,
'translatable' => 0,
'type' => 'text',
);
// Exported field_base: 'field_rate_of_pay'
$field_bases['field_rate_of_pay'] = array(
// Exported field_base: 'field_rate_of_pay_type'
$field_bases['field_rate_of_pay_type'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_rate_of_pay',
'field_name' => 'field_rate_of_pay_type',
'field_permissions' => array(
'type' => 0,
),
'indexes' => array(
'format' => array(
0 => 'format',
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'text',
'module' => 'list',
'settings' => array(
'allowed_values' => array(
1 => 'Honorarium',
2 => 'Hourly',
3 => 'Salary',
4 => 'USG',
),
'allowed_values_function' => '',
'entity_translation_sync' => FALSE,
'max_length' => 255,
),
'translatable' => 1,
'type' => 'text',
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'field_reports_to'
......
<?php
/**
* @file
* uw_ct_opportunities.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function uw_ct_opportunities_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
if ($module == "services" && $api == "services") {
return array("version" => "3");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function uw_ct_opportunities_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function uw_ct_opportunities_node_info() {
$items = array(
'uw_opportunities' => array(
'name' => t('Opportunities'),
'base' => 'node_content',
'description' => t('A content type used to display job/volunteer opportunities.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}
<?php
/**
* @file
* uw_ct_opportunities.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function uw_ct_opportunities_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "services" && $api == "services") {
return array("version" => "3");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function uw_ct_opportunities_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function uw_ct_opportunities_node_info() {
$items = array(
'uw_opportunities' => array(
'name' => t('Opportunities'),
'base' => 'node_content',
'description' => t('A content type used to display job/volunteer opportunities.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}
<?php
/**
* @file
* uw_ct_opportunities.field_group.inc
*/
/**
* Implements hook_field_group_info().
*/
function uw_ct_opportunities_field_group_info() {
$export = array();
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_file|node|uw_opportunities|form';
$field_group->group_name = 'group_file';
$field_group->entity_type = 'node';
$field_group->bundle = 'uw_opportunities';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Upload a file',
'weight' => '14',
'children' => array(
0 => 'field_file_opportunities',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Upload a file',
'instance_settings' => array(
'required_fields' => 1,
'classes' => 'group-file field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$export['group_file|node|uw_opportunities|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_upload|node|uw_opportunities|form';
$field_group->group_name = 'group_upload';
$field_group->entity_type = 'node';
$field_group->bundle = 'uw_opportunities';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Upload an image',
'weight' => '13',
'children' => array(
0 => 'field_image_opportunities',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Upload an image',
'instance_settings' => array(
'required_fields' => 1,
'classes' => 'group-upload field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$export['group_upload|node|uw_opportunities|form'] = $field_group;
return $export;
}
name = Opportunities
description = Opportunities allow piad or volunteer positions to be posted on websites and front page. WARNING: exporting breaks services.inc
core = 7.x
package = uWaterloo Content Types
version = master-dev
project = uw_ct_opportunities
dependencies[] = better_formats
dependencies[] = composite_views_filter
dependencies[] = conditional_fields
dependencies[] = context
dependencies[] = ctools
dependencies[] = date
dependencies[] = date_all_day
dependencies[] = date_popup
dependencies[] = date_views
dependencies[] = elysia_cron
dependencies[] = features
dependencies[] = link
dependencies[] = list
dependencies[] = node
dependencies[] = options
dependencies[] = override_node_options
dependencies[] = rdf
dependencies[] = rest_server
dependencies[] = scheduler
dependencies[] = search_config
dependencies[] = services
dependencies[] = services_api_key_auth
dependencies[] = services_views
dependencies[] = strongarm
dependencies[] = text
dependencies[] = uw_roles_fdsu
dependencies[] = views
stylesheets[all][] = css/uw_ct_opportunities.css
features[conditional_fields][] = node:uw_opportunities
features[context][] = uw_opportunities-front_page
features[ctools][] = context:context:3
features[ctools][] = services:services:3
features[ctools][] = strongarm:strongarm:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = field_applicaton_deadline
features[field_base][] = field_date_posted
features[field_base][] = field_job_id
features[field_base][] = field_link_to_application
features[field_base][] = field_number_of_positions
features[field_base][] = field_opportunity_type
features[field_base][] = field_position_description
features[field_base][] = field_position_title
features[field_base][] = field_posted_by
features[field_base][] = field_rate_of_pay
features[field_base][] = field_reports_to
features[field_base][] = field_start_date
features[field_instance][] = node-uw_opportunities-field_applicaton_deadline
features[field_instance][] = node-uw_opportunities-field_date_posted
features[field_instance][] = node-uw_opportunities-field_job_id
features[field_instance][] = node-uw_opportunities-field_link_to_application
features[field_instance][] = node-uw_opportunities-field_number_of_positions
features[field_instance][] = node-uw_opportunities-field_opportunity_type
features[field_instance][] = node-uw_opportunities-field_position_description
features[field_instance][] = node-uw_opportunities-field_position_title
features[field_instance][] = node-uw_opportunities-field_posted_by
features[field_instance][] = node-uw_opportunities-field_rate_of_pay
features[field_instance][] = node-uw_opportunities-field_reports_to
features[field_instance][] = node-uw_opportunities-field_start_date
features[node][] = uw_opportunities
features[services_endpoint][] = uwaterloo_opportunities_v1
features[user_permission][] = create uw_opportunities content
features[user_permission][] = delete any uw_opportunities content
features[user_permission][] = delete own uw_opportunities content
features[user_permission][] = edit any uw_opportunities content
features[user_permission][] = edit own uw_opportunities content
features[user_permission][] = enter uw_opportunities revision log entry
features[user_permission][] = override uw_opportunities authored by option
features[user_permission][] = override uw_opportunities authored on option
features[user_permission][] = override uw_opportunities promote to front page option
features[user_permission][] = override uw_opportunities published option
features[user_permission][] = override uw_opportunities revision option
features[user_permission][] = override uw_opportunities sticky option
features[user_permission][] = search uw_opportunities content
features[variable][] = comment_anonymous_uw_opportunities
features[variable][] = comment_default_mode_uw_opportunities
features[variable][] = comment_default_per_page_uw_opportunities
features[variable][] = comment_form_location_uw_opportunities
features[variable][] = comment_preview_uw_opportunities
features[variable][] = comment_subject_field_uw_opportunities
features[variable][] = comment_uw_opportunities
features[variable][] = field_bundle_settings_node__uw_opportunities
features[variable][] = language_content_type_uw_opportunities
features[variable][] = menu_options_uw_opportunities
features[variable][] = menu_parent_uw_opportunities
features[variable][] = node_options_uw_opportunities
features[variable][] = node_preview_uw_opportunities
features[variable][] = node_submitted_uw_opportunities
features[variable][] = pathauto_node_uw_opportunities_en_pattern
features[variable][] = pathauto_node_uw_opportunities_pattern
features[variable][] = scheduler_publish_enable_uw_opportunities
features[variable][] = scheduler_publish_touch_uw_opportunities
features[variable][] = scheduler_unpublish_enable_uw_opportunities
features[views_view][] = opportunities
features[views_view][] = uwaterloo_services_opportunities
name = Opportunities
description = Opportunities allow piad or volunteer positions to be posted on websites and front page. WARNING: exporting breaks services.inc
core = 7.x
package = uWaterloo Content Types
project = uw_ct_opportunities
dependencies[] = better_formats
dependencies[] = composite_views_filter
dependencies[] = conditional_fields
dependencies[] = context
dependencies[] = ctools
dependencies[] = date
dependencies[] = date_all_day
dependencies[] = date_popup
dependencies[] = date_views
dependencies[] = elysia_cron
dependencies[] = features
dependencies[] = field_group
dependencies[] = file
dependencies[] = image
dependencies[] = link
dependencies[] = list
dependencies[] = node
dependencies[] = options
dependencies[] = override_node_options
dependencies[] = rdf