=
\Html::input(
array(
'label' => 'Nazwa firmy',
'name' => 'firm_name',
'id' => 'firm_name',
'value' => $this -> settings['firm_name']
)
);
?>
=
\Html::textarea(
array(
'label' => 'Dodatkowe informacje',
'name' => 'additional_info',
'id' => 'additional_info',
'value' => $this -> settings['additional_info']
)
);
?>
=
\Html::input_switch(
array(
'label' => 'Mapa',
'name' => 'google_maps',
'checked' => $this -> settings['google_maps'] == 1 ? true : false
)
);
?>
=
\Html::textarea(
array(
'label' => 'Mapa - adres',
'name' => 'firm_adress',
'id' => 'firm_adress',
'value' => $this -> settings['firm_adress']
)
);
?>
=
\Html::input_switch(
array(
'label' => 'Widget "Telefon"',
'name' => 'widget_phone',
'checked' => $this -> settings['widget_phone'] == 1 ? true : false
)
);
?>
=
\Html::input_switch(
array(
'label' => 'Formularz kontaktowy',
'name' => 'contact_form',
'checked' => $this -> settings['contact_form'] == 1 ? true : false
)
);
?>
=
\Html::input(
array(
'label' => 'Email kontaktowy',
'name' => 'contact_email',
'id' => 'contact_email',
'value' => $this -> settings['contact_email']
)
);
?>
=
\Html::input(
array(
'label' => 'Email - host',
'name' => 'email_host',
'id' => 'email_host',
'value' => $this -> settings['email_host']
)
);
?>
=
\Html::input(
array(
'label' => 'Email - port',
'name' => 'email_port',
'id' => 'email_port',
'value' => $this -> settings['email_port']
)
);
?>
=
\Html::input(
array(
'label' => 'Email - login',
'name' => 'email_login',
'id' => 'email_login',
'value' => $this -> settings['email_login']
)
);
?>
=
\Html::input(
array(
'label' => 'Email - hasło',
'name' => 'email_password',
'id' => 'email_password',
'value' => $this -> settings['email_password'],
'type' => 'text'
)
);
?>
= \Html::input_switch( [
'label' => 'Captcha w formularzu kontaktowym',
'name' => 'contact_form_captcha',
'checked' => $this -> settings['contact_form_captcha'] == 1 ? true : false
] );
?>
= \Html::input( [
'label' => 'Maksmalna wielkość zdjęcia (px)',
'name' => 'image_px',
'id' => 'image_px',
'value' => $this -> settings['image_px']
] );
?>
=
\Html::input(
array(
'label' => 'Klucz Google Search Console',
'name' => 'google_search_console',
'id' => 'google_search_console',
'value' => $this -> settings['google_search_console']
)
);
?>
=
\Html::input(
array(
'label' => 'Facebook link',
'name' => 'facebook_link',
'id' => 'facebook_link',
'value' => $this -> settings['facebook_link']
)
);
?>
=
\Html::textarea(
array(
'label' => 'Kod statystyk',
'name' => 'statistic_code',
'id' => 'statistic_code',
'value' => $this -> settings['statistic_code'],
'rows' => 10
)
);
?>
=
\Html::textarea(
array(
'label' => 'Własne reguły htacess',
'name' => 'htaccess',
'id' => 'htaccess',
'value' => $this -> settings['htaccess'],
'rows' => 10
)
);
?>
=
\Html::textarea(
array(
'label' => 'Własne reguły robots.txt',
'name' => 'robots',
'id' => 'robots',
'value' => $this -> settings['robots'],
'rows' => 10
)
);
?>
= \Html::select( [
'label' => "Struktura linków",
'name' => "links_structure",
'values' => [ 0 => 'skrócona', 1 => 'rozwinięta' ],
'value' => $this -> settings['links_structure'] ? 1 : 0
] );?>
= \Html::select( [
'label' => "Wersja strony",
'name' => "link_version",
'values' => [ 0 => 'bez www', 1 => 'z www' ],
'value' => $this -> settings['link_version'] ? 1 : 0
] );?>
= \Html::select( [
'label' => "Wersja adresów url",
'name' => "url_version",
'values' => [ 0 => 'bez / na końcu adresu url', 1 => 'z / na końcu adresu url' ],
'value' => $this -> settings['url_version'] ? 1 : 0
] );?>
= \Html::select( [
'label' => "Newsletter",
'name' => "newsletter_cron",
'values' => [ 0 => 'wysyłka za pomocą cron i strony', 1 => 'wysyłka za pomocą cron' ],
'value' => $this -> settings['newsletter_cron'] ? 1 : 0
] );?>
= Html::input(
array(
'label' => 'Numer licencji',
'name' => 'update_key',
'id' => 'update_key',
'value' => $this -> settings['update_key']
)
);
?>
$out = ob_get_clean();
$grid = new \gridEdit;
$grid -> id = 'settings-edit';
$grid -> gdb_opt = $gdb;
$grid -> include_plugins = true;
$grid -> title = 'Edycja ustawień';
$grid -> actions = [
'save' => [
'url' => '/admin/settings/settings_save/',
'back_url' => '/admin/settings/view/'
]
];
$grid -> external_code = $out;
echo $grid -> draw();
?>