notice_favorite class
submit doesn't need a paragraph wrapper
This commit is contained in:
parent
d3092274c2
commit
f17df2e6be
@ -125,7 +125,7 @@ class FavorForm extends Form
|
||||
function formActions()
|
||||
{
|
||||
$this->out->submit('favor-submit-' . $this->notice->id,
|
||||
_('Make a favorite'));
|
||||
_('Favorite'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -136,6 +136,6 @@ class FavorForm extends Form
|
||||
|
||||
function formClass()
|
||||
{
|
||||
return 'favor';
|
||||
return 'notice_favorite';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -324,13 +324,11 @@ class HTMLOutputter extends XMLOutputter
|
||||
|
||||
function submit($id, $label, $cls='submit', $name=null)
|
||||
{
|
||||
$this->elementStart('p');
|
||||
$this->element('input', array('type' => 'submit',
|
||||
'id' => $id,
|
||||
'name' => ($name) ? $name : $id,
|
||||
'class' => $cls,
|
||||
'value' => $label));
|
||||
$this->elementEnd('p');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user