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:
Thomas Gelf 2014-06-23 14:39:55 +02:00
parent 010466f8f9
commit 51c57520ad
4 changed files with 16 additions and 8 deletions

View File

@ -74,8 +74,10 @@ foreach ($comments as $comment):
$data['service'] = $comment->service; $data['service'] = $comment->service;
} }
echo $cf->iconSubmitForm( // echo $cf->iconSubmitForm(
'img/icons/remove.png', // 'img/icons/remove.png',
echo $cf->labelSubmitForm(
'X',
'Remove comment', 'Remove comment',
'link-like', 'link-like',
'removecomment', 'removecomment',

View File

@ -48,8 +48,10 @@ $helper = $this->getHelper('CommandForm');
if (isset($downtime->service)) { if (isset($downtime->service)) {
$data['service'] = $downtime->service; $data['service'] = $downtime->service;
} }
echo $helper->iconSubmitForm( // echo $helper->iconSubmitForm(
'img/icons/remove.png', // 'img/icons/remove.png',
echo $helper->labelSubmitForm(
'X',
'Remove Downtime', 'Remove Downtime',
'link-like', 'link-like',
'removedowntime', 'removedowntime',

View File

@ -20,8 +20,10 @@ foreach ($object->comments as $comment) {
$deleteData = $data; $deleteData = $data;
$deleteData['commentid'] = $comment->id; $deleteData['commentid'] = $comment->id;
$iconForm = $cf->iconSubmitForm( // $iconForm = $cf->iconSubmitForm(
'img/icons/remove_petrol.png', // 'img/icons/remove_petrol.png',
$iconForm = $cf->labelSubmitForm(
'X',
'Remove comment', 'Remove comment',
'link-like', 'link-like',
'removecomment', 'removecomment',

View File

@ -24,8 +24,10 @@ foreach ($object->downtimes as $downtime) {
} }
} }
$iconForm = $cf->iconSubmitForm( // $iconForm = $cf->iconSubmitForm(
'img/icons/remove_petrol.png', // 'img/icons/remove_petrol.png',
$iconForm = $cf->labelSubmitForm(
'X',
'Remove Downtime', 'Remove Downtime',
'link-like', 'link-like',
'removedowntime', 'removedowntime',