iconSubmitForm: replace with labelSubmitForm
There is no way in ZF to have an input[type=submit] with an unescaped label ( = value). I temporarily replaced all iconSubmitForms with inputs labelled with "X" - as all we used them for were delete operations.
This commit is contained in:
parent
010466f8f9
commit
51c57520ad
|
@ -74,8 +74,10 @@ foreach ($comments as $comment):
|
|||
$data['service'] = $comment->service;
|
||||
}
|
||||
|
||||
echo $cf->iconSubmitForm(
|
||||
'img/icons/remove.png',
|
||||
// echo $cf->iconSubmitForm(
|
||||
// 'img/icons/remove.png',
|
||||
echo $cf->labelSubmitForm(
|
||||
'X',
|
||||
'Remove comment',
|
||||
'link-like',
|
||||
'removecomment',
|
||||
|
|
|
@ -48,8 +48,10 @@ $helper = $this->getHelper('CommandForm');
|
|||
if (isset($downtime->service)) {
|
||||
$data['service'] = $downtime->service;
|
||||
}
|
||||
echo $helper->iconSubmitForm(
|
||||
'img/icons/remove.png',
|
||||
// echo $helper->iconSubmitForm(
|
||||
// 'img/icons/remove.png',
|
||||
echo $helper->labelSubmitForm(
|
||||
'X',
|
||||
'Remove Downtime',
|
||||
'link-like',
|
||||
'removedowntime',
|
||||
|
|
|
@ -20,8 +20,10 @@ foreach ($object->comments as $comment) {
|
|||
$deleteData = $data;
|
||||
$deleteData['commentid'] = $comment->id;
|
||||
|
||||
$iconForm = $cf->iconSubmitForm(
|
||||
'img/icons/remove_petrol.png',
|
||||
// $iconForm = $cf->iconSubmitForm(
|
||||
// 'img/icons/remove_petrol.png',
|
||||
$iconForm = $cf->labelSubmitForm(
|
||||
'X',
|
||||
'Remove comment',
|
||||
'link-like',
|
||||
'removecomment',
|
||||
|
|
|
@ -24,8 +24,10 @@ foreach ($object->downtimes as $downtime) {
|
|||
}
|
||||
}
|
||||
|
||||
$iconForm = $cf->iconSubmitForm(
|
||||
'img/icons/remove_petrol.png',
|
||||
// $iconForm = $cf->iconSubmitForm(
|
||||
// 'img/icons/remove_petrol.png',
|
||||
$iconForm = $cf->labelSubmitForm(
|
||||
'X',
|
||||
'Remove Downtime',
|
||||
'link-like',
|
||||
'removedowntime',
|
||||
|
|
Loading…
Reference in New Issue