mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
unify "Are you sure you want to delete"
This commit is contained in:
parent
e3e11a48e6
commit
fa02a2efc9
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ foreach (${$pluralVar} as ${$singularVar}):
|
||||||
__d('cake', 'Delete'),
|
__d('cake', 'Delete'),
|
||||||
array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]),
|
array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]),
|
||||||
null,
|
null,
|
||||||
__d('cake', 'Are you sure you want to delete').' #' . ${$singularVar}[$modelClass][$primaryKey]
|
__d('cake', 'Are you sure you want to delete # %s?', ${$singularVar}[$modelClass][$primaryKey])
|
||||||
);
|
);
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
|
@ -178,7 +178,7 @@ $otherSingularVar = Inflector::variable($_alias);
|
||||||
__d('cake', 'Delete'),
|
__d('cake', 'Delete'),
|
||||||
array('plugin' => $_details['plugin'], 'controller' => $_details['controller'], 'action' => 'delete', ${$otherSingularVar}[$_details['primaryKey']]),
|
array('plugin' => $_details['plugin'], 'controller' => $_details['controller'], 'action' => 'delete', ${$otherSingularVar}[$_details['primaryKey']]),
|
||||||
null,
|
null,
|
||||||
__d('cake', 'Are you sure you want to delete') .' #' . ${$otherSingularVar}[$_details['primaryKey']] . '?'
|
__d('cake', 'Are you sure you want to delete # %s?', ${$otherSingularVar}[$_details['primaryKey']])
|
||||||
);
|
);
|
||||||
echo "\n";
|
echo "\n";
|
||||||
echo "\t\t\t</td>\n";
|
echo "\t\t\t</td>\n";
|
||||||
|
|
Loading…
Reference in a new issue