Html->link(__('Edit Gallery'), ['prefix' => 'Admin', 'controller' => 'Causes', 'action' => 'editGallery', 'uuid' => $cause->uuid], ['class' => 'btn btn-primary']); ?>
Html->link(__('Edit Docs'), ['prefix' => 'Admin', 'controller' => 'Causes', 'action' => 'editDocs', 'uuid' => $cause->uuid], ['class' => 'btn btn-primary']); ?>
= $this->Form->create($cause, ['role' => 'form', 'class' => 'row', 'novalidate' => true]); ?>
= $this->Form->control('name'); ?>
= $this->Form->control('slug'); ?>
= $this->Form->control('description'); ?>
= $this->Form->control(
'date_start',
[
'class' => 'date-picker form-control',
'type' => 'text',
'value' => $cause->date_start ? $cause->date_start->i18nFormat('yyyy-MM-dd') : '',
'inputContainer' => '
{{content}}
'
]
);
?>
= $this->Form->control('date_end', ['class' => 'date-picker form-control', 'type' => 'text', 'value' => $cause->date_end ? $cause->date_end->i18nFormat('yyyy-MM-dd') : '']); ?>
= $this->Form->control('donation_amount'); ?>
= $this->Form->control('tags._ids', ['options' => $tags, 'multiple' => true, 'class' => 'select-with-search form-control']); ?>
= $this->Form->control('is_active'); ?>
Form->submit(__('Submit')); ?>
Form->end(); ?>