Add candidate and employer templates, application form, and new password functionality
- Created 'dla-kandydata.php' template for candidates with job offers and registration options. - Developed 'dla-pracodawcy.php' template for employers detailing how Globelus works and registration for new employers. - Implemented 'advert-apply.php' for job applications, including form validation and file upload for CVs. - Added 'new-password.php' for users to set a new password with validation for password strength and matching.
This commit is contained in:
@@ -73,9 +73,13 @@ class GlobelusAdverts
|
||||
{
|
||||
$g_user = \S::get_session( 'g_user' );
|
||||
|
||||
\front\factory\GlobelusAdverts::send_message(
|
||||
\S::get( 'advert_id' ), $g_user['id'], \S::get( 'name' ), \S::get( 'surname' ), \S::get( 'email' ), \S::get( 'phone' ), \S::get( 'text' ), $_FILES['cv'], \S::get( 'register' )
|
||||
);
|
||||
if ( \front\factory\GlobelusAdverts::send_message( \S::get( 'advert_id' ), $g_user['id'], \S::get( 'name' ), \S::get( 'surname' ), \S::get( 'email' ), \S::get( 'phone' ), \S::get( 'text' ), $_FILES['cv'], \S::get( 'register' ) ) )
|
||||
{
|
||||
if ( \S::get( 'register' ) )
|
||||
\S::set_session( 'send_register', true );
|
||||
\S::set_session( 'send_message', true );
|
||||
}
|
||||
|
||||
header( 'Location: ' . \S::get( 'redirect_url' ) );
|
||||
exit;
|
||||
}
|
||||
@@ -493,4 +497,16 @@ class GlobelusAdverts
|
||||
'f_accommodation_provided' => \S::get_session( 'adverts_filtr_accommodation_provided' )
|
||||
] );
|
||||
}
|
||||
|
||||
static public function advert_apply() {
|
||||
|
||||
$g_user = \S::get_session( 'g_user' );
|
||||
|
||||
return \Tpl::view( 'globelus/adverts/advert-apply', [
|
||||
'advert' => \front\factory\GlobelusAdverts::advert_details( \S::get( 'advert_id' ) ),
|
||||
'g_user' => $g_user,
|
||||
'send_message' => \S::get_session( 'send_message' ),
|
||||
'send_register' => \S::get_session( 'send_register' )
|
||||
] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user