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

endif;?>
= \Html::select(
array(
'label' => 'Profil aktywny',
'class' => 'form-edit',
'id' => 'status',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> firm['status'],
'params' => [ 'table' => 'globelus_users', 'column_id' => 'id', 'row_id' => $this -> firm['id'], 'column' => 'status', 'operation' => 'update' ]
)
);?>
= \Html::select(
array(
'label' => 'Widoczny na liście',
'class' => 'form-edit',
'id' => 'firm_list',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> firm['firm_list'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'firm_list', 'operation' => 'update' ]
)
);?>
= \Html::select(
array(
'label' => 'Profil zablokowany',
'class' => 'form-edit',
'id' => 'blocked',
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> firm['blocked'],
'params' => [ 'table' => 'globelus_users', 'column_id' => 'id', 'row_id' => $this -> firm['id'], 'column' => 'blocked', 'operation' => 'update' ]
)
);?>
= \Html::input( [
'type' => 'text',
'class' => 'form-edit',
'label' => 'Liczba punktów',
'id' => 'points',
'value' => $this -> firm['points'],
'params' => [ 'table' => 'globelus_users', 'column_id' => 'id', 'row_id' => $this -> firm['id'], 'column' => 'points', 'operation' => 'update' ]
]
);?>
= \Html::input( [
'type' => 'text',
'class' => 'form-edit date',
'label' => 'Dostęp do bazy CV do',
'id' => 'cv_access_date',
'value' => $this -> firm['cv_access_date'],
'params' => [ 'table' => 'globelus_users', 'column_id' => 'id', 'row_id' => $this -> firm['id'], 'column' => 'cv_access_date', 'operation' => 'update' ]
]
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Nazwa firmy',
'id' => 'firm_name',
'value' => $this -> firm['firm_name'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'firm_name', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Nazwa firmy (wyświetlana)',
'id' => 'firm_name_profile',
'value' => $this -> firm['firm_name_profile'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'firm_name_profile', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'NIP',
'id' => 'nip_vat',
'value' => $this -> firm['nip_vat'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'nip_vat', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Telefon',
'id' => 'phone',
'value' => $this -> firm['phone'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'phone', 'operation' => 'update' ]
)
);?>
= \Html::form_text(
array(
'label' => 'Adres email',
'id' => 'email',
'text' => $this -> firm['email']
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Strona www',
'id' => 'www',
'value' => $this -> firm['www'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'www', 'operation' => 'update' ]
)
);?>
$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(
'label' => 'Kraj',
'class' => 'form-edit',
'id' => 'country_id',
'values' => $countries,
'value' => $this -> firm['country_id'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'country_id', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Region',
'id' => 'region',
'value' => $this -> firm['region'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'region', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Miasto',
'id' => 'city',
'value' => $this -> firm['city'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'city', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Kod pocztowy',
'id' => 'postal_code',
'value' => $this -> firm['postal_code'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'postal_code', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Ulica',
'id' => 'street',
'value' => $this -> firm['street'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'street', 'operation' => 'update' ]
)
);?>
= \Html::input(
array(
'type' => 'text',
'class' => 'form-edit',
'label' => 'Nr budynku/lokalu',
'id' => 'apartment_number',
'value' => $this -> firm['apartment_number'],
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'apartment_number', 'operation' => 'update' ]
)
);?>
= \Html::textarea(
array(
'label' => 'Krótki opis firmy',
'class' => 'form-edit',
'name' => 'other_information',
'id' => 'other_information',
'value' => $this -> firm['other_information'],
'inline' => true,
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['id'], 'column' => 'other_information', 'operation' => 'update' ]
)
);?>
\Html::textarea(
array(
'label' => 'Klauzula',
'class' => 'form-edit',
'name' => 'clauses',
'id' => 'clauses',
'value' => $this -> firm['clauses'],
'inline' => true,
'params' => [ 'table' => 'globelus_firms_data', 'column_id' => 'user_id', 'row_id' => $this -> firm['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 pracodawcy';
$grid -> actions = [
'cancel' => [ 'url' => '/admin/globelus_firms/main_view/' ]
];
$grid -> external_code = $out;
$grid -> persist_edit = true;
$grid -> id_param = 'id';
echo $grid -> draw();
?>