open create form for activity/project/customer in modals (#2025)
This commit is contained in:
@@ -34,7 +34,6 @@ class ActivityApiEditForm extends ActivityEditForm
|
||||
|
||||
$resolver->setDefaults([
|
||||
'csrf_protection' => false,
|
||||
'create_more' => false,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ class ProjectApiEditForm extends ProjectEditForm
|
||||
|
||||
$resolver->setDefaults([
|
||||
'csrf_protection' => false,
|
||||
'create_more' => false,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,10 +115,6 @@ class ActivityEditForm extends AbstractType
|
||||
);
|
||||
|
||||
$this->addCommonFields($builder, $options);
|
||||
|
||||
if (null === $id && $options['create_more']) {
|
||||
$this->addCreateMore($builder);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -131,7 +127,6 @@ class ActivityEditForm extends AbstractType
|
||||
'csrf_protection' => true,
|
||||
'csrf_field_name' => '_token',
|
||||
'csrf_token_id' => 'admin_activity_edit',
|
||||
'create_more' => false,
|
||||
'customer' => false,
|
||||
'currency' => Customer::DEFAULT_CURRENCY,
|
||||
'include_budget' => false,
|
||||
|
||||
@@ -88,10 +88,6 @@ class ProjectEditForm extends AbstractType
|
||||
]);
|
||||
|
||||
$this->addCommonFields($builder, $options);
|
||||
|
||||
if (null === $id && $options['create_more']) {
|
||||
$this->addCreateMore($builder);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -107,7 +103,6 @@ class ProjectEditForm extends AbstractType
|
||||
'currency' => Customer::DEFAULT_CURRENCY,
|
||||
'date_format' => null,
|
||||
'include_budget' => false,
|
||||
'create_more' => false,
|
||||
'attr' => [
|
||||
'data-form-event' => 'kimai.projectUpdate'
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user