chg: [galaxyCluster:add] Adapt page title if forking

pull/6120/head
mokaddem 2020-11-12 15:41:53 +01:00
parent 60da050e12
commit ab493e2150
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,11 @@
echo $this->element('genericElements/Form/genericForm', array(
'form' => $this->Form,
'data' => array(
'title' => $action == 'add' ? __('Add Galaxy Cluster') : __('Edit Galaxy Cluster'),
'title' => (
$action == 'add' ?
(isset($forkedClusterMeta) ? __('Fork Galaxy Cluster') : __('Add Galaxy Cluster')) :
__('Edit Galaxy Cluster')
),
'model' => $modelForForm,
'fields' => array(
array(