global $db, $settings;
ob_start();
?>
if ( file_exists( '../' . \front\factory\GlobelusFirms::logo_url( $this -> advert['user_id'] ) ) ):?>
;?>)
else:?>

endif;?>
= \Html::select(
array(
'label' => 'Wyłączone przez administratora',
'class' => 'form-edit',
'id' => 'disabled_by_admin',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['disabled_by_admin'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'disabled_by_admin', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Tytuł',
'id' => 'title',
'value' => $this -> advert['title'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'title', 'operation' => 'update' ]
)
);?>
= \Html::form_text(
array(
'label' => 'Pracodawca',
'id' => 'firm_name',
'text' => $this -> advert['firm_name']
)
);?>
$countries[0] = '--- brak przypisanego kraju ---';
if ( is_array( $this -> countries ) and count( $this -> countries ) ): foreach ( $this -> countries as $country ):
$countries[ $country['id'] ] = $country['name'];
endforeach; endif;
?>
= \Html::select(
array(
'class' => 'form-edit',
'label' => 'Kraj',
'id' => 'country_id',
'values' => $countries,
'value' => $this -> advert['country_id'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'country_id', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Miasto',
'id' => 'city',
'value' => $this -> advert['city'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'city', 'operation' => 'update' ]
)
);?>
$voivodeships[''] = '--- brak przypisanego województwa ---';
if ( is_array( $this -> voivodeships ) ): foreach ( $this -> voivodeships as $voivodeship ):
$voivodeships[ $voivodeship['id'] ] = $voivodeship['name'];
endforeach; endif;
?>
= \Html::select(
array(
'class' => 'form-edit',
'label' => 'Województwo',
'id' => 'id_voivodeship',
'values' => $voivodeships,
'value' => $this -> advert['id_voivodeship'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'id_voivodeship', 'operation' => 'update' ]
)
);?>
$categories[0] = '--- brak przypisanej kategorii ---';
if ( is_array( $this -> categories ) and count( $this -> categories ) ): foreach ( $this -> categories as $category ):
$categories[ $category['id'] ] = $category['name'];
endforeach; endif;
?>
= \Html::select(
array(
'label' => 'Branża',
'class' => 'form-edit',
'id' => 'category_id',
'values' => $categories,
'value' => $this -> advert['category_id'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'category_id', 'operation' => 'update' ]
)
);?>
= \Html::select(
array(
'label' => 'Ogłoszenie wyróżnione',
'id' => 'highlight',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['highlight'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'highlight', 'operation' => 'update' ]
)
);?>
= $this -> advert['highlight_to'];?>
= \Html::select(
array(
'label' => 'Ogłoszenie polecane',
'class' => 'form-edit',
'id' => 'main_page',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['main_page'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'main_page', 'operation' => 'update' ]
)
);?>
= $this -> advert['main_page_to'];?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Wynagrodzenie',
'id' => 'salary',
'value' => $this -> advert['salary'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'salary', 'operation' => 'update' ]
)
);?>
= \Html::select(
array(
'label' => 'Rodzaj pracy',
'class' => 'form-edit',
'id' => 'work_type',
//'values' => [ 1 => 'praca stała', 2 => 'praca tymczasowa', 3 => 'praca sezonowa', 4 => 'praktyka/staż', 5 => 'inna ],
'values' => [ 6 => 'praca na czas nieokreślony', 7 => 'praca na czas określony/tymczasowa', 8 => 'staż/praktyka', 9 => 'B2B', 10 => 'umowa agencyjna', 11 => 'praca zdalna' ],
'value' => $this -> advert['work_type'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'work_type', 'operation' => 'update' ]
)
);?>
= \Html::select(
array(
'label' => 'Bez znajomości języka',
'class' => 'form-edit',
'id' => 'without_language',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['without_language'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'without_language', 'operation' => 'update' ]
)
);?>
= \Html::select(
array(
'label' => 'Bez doświadczenia',
'class' => 'form-edit',
'id' => 'without_experience',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['without_experience'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'without_experience', 'operation' => 'update' ]
)
);?>
= \Html::select(
array(
'label' => 'Dla par',
'class' => 'form-edit',
'id' => 'for_couples',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['for_couples'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'for_couples', 'operation' => 'update' ]
)
);?>
= \Html::select( [
'label' => 'Zapewnione zakwaterowanie',
'class' => 'form-edit',
'id' => 'accommodation',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['accommodation'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'accommodation', 'operation' => 'update' ]
] );?>
= \Html::input( [
'type' => 'text',
'class' => 'form-edit',
'label' => 'Jaki koszt dla pracownika?',
'id' => 'accommodation_cost',
'value' => $this -> advert['accommodation_cost'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'accommodation_cost', 'operation' => 'update' ]
] );?>
= \Html::select( [
'label' => 'Gwarancja godzin',
'class' => 'form-edit',
'id' => 'overtime',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['overtime'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'overtime', 'operation' => 'update' ]
] );?>
= \Html::input( [
'type' => 'text',
'class' => 'form-edit',
'label' => 'Ile godzin gwarantuje pracodawca?',
'id' => 'overtime_quantity',
'value' => $this -> advert['overtime_quantity'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'overtime_quantity', 'operation' => 'update' ]
] );?>
= \Html::select( [
'label' => 'Pracodawca refunduje przejazd/przelot',
'class' => 'form-edit',
'id' => 'travel_refund',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['travel_refund'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'travel_refund', 'operation' => 'update' ]
] );?>
= \Html::select( [
'label' => 'Praca dla obywateli spoza UE',
'class' => 'form-edit',
'id' => 'outside_ue',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> advert['outside_ue'],
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'outside_ue', 'operation' => 'update' ]
] );?>
= \Html::textarea(
array(
'label' => 'Treść',
'class' => 'form-edit',
'name' => 'text',
'id' => 'text',
'value' => $this -> advert['text'],
'inline' => true,
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'text', 'operation' => 'update' ]
)
);?>
\Html::textarea(
array(
'label' => 'Klauzule',
'class' => 'form-edit',
'name' => 'clauses',
'id' => 'clauses',
'value' => $this -> advert['clauses'],
'inline' => true,
'params' => [ 'table' => 'globelus_adverts', 'column_id' => 'id', 'row_id' => $this -> advert['id'], 'column' => 'clauses', 'operation' => 'update' ]
)
);?>
$out = ob_get_clean();
$grid = new \gridEdit;
$grid -> id = 'candidate-preview';
$grid -> gdb_opt = $gdb;
$grid -> include_plugins = true;
$grid -> title = 'Podgląd ogłoszenia';
$grid -> actions = [
'cancel' => [ 'url' => '/admin/globelus_adverts/main_view/' ]
];
$grid -> external_code = $out;
$grid -> persist_edit = true;
$grid -> id_param = 'id';
echo $grid -> draw();
?>