/var/www/vhosts/ihelp.ro/httpdocs/templates/Dashboard/Products
Edit: /var/www/vhosts/ihelp.ro/httpdocs/templates/Dashboard/Products/add.php (7314B)
assign('title', __('Adaugă un produs')); ?>
Breadcrumbs->reset()->add(__('Adaugă un produs'), null);
$this->Breadcrumbs->prepend([
['title' => __('Contul meu'), 'url' => ['controller' => 'Profiles', 'action' => 'view']],
]);
$this->Breadcrumbs->prepend([
['title' => __('Acasă'), 'url' => ['controller' => 'Pages', 'action' => 'home']],
]);
?>
Breadcrumbs->render() ?>
= $this->Html->link(
'
' . __('Înapoi') . '
',
['prefix' => 'Dashboard', 'plugin' => false, 'controller' => 'Products', 'action' => 'index'],
[
'escape' => false,
'class' => 'btn outline gray size-xs my-auto ml-auto svg-on-left has-svg'
]
) ?>
Form->create($product, ['novalidate' => true, 'id' => 'dashboard-add-product', 'enctype' => 'multipart/form-data']); ?>
Html->image($this->Custom->generateUrlHdy(
[
'model_name' => $product->model,
'uuid' => $product->foreign_uuid,
'image_name' => $product->image_path
],
true,
640,
480,
true
), ['class' => 'img-fluid preview']) ?>
= $this->Form->control('featured_image.image_path', ['label' => __('Poza principala:'), 'class' => 'form-control input-picture', 'type' => 'file',]); ?>
Form->control('name', ['label' => __('Nume produs:')]); ?>
Form->control('category_id', ['label' => __('Categoria produsul:'), 'class' => 'form-control select2', 'options' => $categories, 'empty' => __('Alege categoria')]); ?>
Form->control('cause_id', ['label' => __('Cauza:'), 'class' => 'form-control select2', 'options' => $causes, 'empty' => __('Alege cauza')]); ?>
Form->control('price', ['label' => __('Preț:'), 'min' => '0']); ?>
Form->control('stock', ['label' => __('Stoc:'), 'min' => '1', 'value' => '1']); ?>
Form->control(
'description',
[
'type' => 'textarea',
'rows' => '100',
'label' => __('Descriere:'),
'class' => 'count-chatracter form-control',
'templates' => [
'inputContainer' => '
{{content}}
' . __(' de caractere ramase') . '
'
],
]
);
echo $this->Form->control('tags._ids', ['label' => __('Etichete:'), 'class' => 'form-control select2', 'multiple' => true, 'options' => $tags]);
?>
Cell('AddAddress::addresses', [$auth, $userAuth->uuid, null]); ?>
Form->error('user_address_id', null, ['class' => 'error-message']);
echo $this->Form->control('type_form', ['type' => 'hidden', 'value' => 'add_product_address']);
?>
Form->control('is_active', ['label' => '' . __('Activezi produsul pentru vânzare?') . '', 'escape' => false]); ?>
Form->button(__('Salvează'), ['class' => 'btn full primary size-sm ml-auto']); ?>
Form->end(); ?>
Cell('AddAddress::popup', [$auth, $userAuth->uuid, null]); ?>