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:
2025-05-24 11:51:42 +02:00
parent 4fdd906b81
commit 905c0f0d89
59 changed files with 1987 additions and 791 deletions

View File

@@ -73,7 +73,7 @@ ob_start();
<label class="col-lg-2 control-label">Przypisane branże:</label>
<div class="col-lg-8">
<div class="row">
<?
<?
$categories[0] = '--- brak przypisanej kategorii ---';
if ( is_array( $this -> categories ) and count( $this -> categories ) ): foreach ( $this -> categories as $category ):
echo '<div class="col-xs-4">';
@@ -168,7 +168,7 @@ ob_start();
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<?
<?
$countries[0] = '--- brak przypisanego kraju ---';
if ( is_array( $this -> countries ) and count( $this -> countries ) ): foreach ( $this -> countries as $country ):
$countries[ $country['id'] ] = $country['name'];
@@ -263,7 +263,7 @@ ob_start();
)
);?>
<hr />
<?= \Html::textarea(
<? \Html::textarea(
array(
'label' => 'Klauzula',
'class' => 'form-edit',
@@ -296,21 +296,21 @@ echo $grid -> draw();
<script type="text/javascript">
var old_data = [];
$( function()
{
{
$( '#other_information, #clauses' ).ckeditor( {
toolbar : 'MyTool',
height:'350'
});
var editor = $( '#clauses' ).ckeditor().editor;
editor.on( 'blur', function( evt ) {
var text = evt.editor.getData();
var text = evt.editor.getData();
$.ajax(
{
type: 'POST',
cache: false,
url: '/admin/globelus/save_to_db/',
data:
data:
{
table: 'globelus_firms_data',
column_id: 'user_id',
@@ -319,26 +319,26 @@ echo $grid -> draw();
operation: 'update',
value: text
},
beforeSend: function()
beforeSend: function()
{
},
success: function( data )
success: function( data )
{
}
});
});
var editor = $('#other_information').ckeditorGet();
editor.on( 'blur', function( evt ) {
var text = evt.editor.getData();
var text = evt.editor.getData();
$.ajax(
{
type: 'POST',
cache: false,
url: '/admin/globelus/save_to_db/',
data:
data:
{
table: 'globelus_firms_data',
column_id: 'user_id',
@@ -347,22 +347,22 @@ echo $grid -> draw();
operation: 'update',
value: text
},
beforeSend: function()
beforeSend: function()
{
},
success: function( data )
success: function( data )
{
}
});
});
$( 'body' ).on( 'focus', '.form-edit', function()
{
old_data[ $( this ).attr( 'name' ) ] = $( this ).val();
});
$( 'body' ).on( 'change', '.form-edit', function()
{
var input = $( this );
@@ -373,19 +373,19 @@ echo $grid -> draw();
var operation = $( this ).attr( 'operation' );
var value = $( this ).val();
var values = $( this ).attr( 'values' );
if ( input.attr( 'type' ) === 'checkbox' )
{
if ( !input.is( ':checked' ) )
value = null;
}
$.ajax(
{
type: 'POST',
cache: false,
url: '/admin/globelus/save_to_db/',
data:
data:
{
table: table,
column_id: column_id,
@@ -395,15 +395,15 @@ echo $grid -> draw();
value: value,
values: values
},
beforeSend: function()
beforeSend: function()
{
input.attr( 'readonly', 'readonly' );
},
success: function( data )
success: function( data )
{
input.removeAttr( 'readonly' );
response = jQuery.parseJSON( data );
response = jQuery.parseJSON( data );
if ( response.status !== 'ok' )
{
@@ -420,23 +420,23 @@ echo $grid -> draw();
}
});
});
$( 'body' ).on( 'click', '.status', function()
$( 'body' ).on( 'click', '.status', function()
{
$.prompt( 'Na pewno chcesz aktywować wybrany profil?',
{
$.prompt( 'Na pewno chcesz aktywować wybrany profil?',
{
title: 'Potwierdź?',
submit: function(e,v,m,f)
{
submit: function(e,v,m,f)
{
if ( v === true )
{
document.location.href="/admin/globelus_firms/firm_enabled/id=<?= $this -> firm['id'];?>";
}
},
buttons: {
'tak': true,
'nie': false
},
},
buttons: {
'tak': true,
'nie': false
},
focus: 0
});
});