+ $this->elementStart('form', array('id' => 'form_notice_delete',
+ 'class' => 'form_settings',
+ 'method' => 'post',
+ 'action' => common_local_url('deletenotice')));
+ $this->elementStart('fieldset');
+ $this->element('legend', null, _('Delete notice'));
+ $this->hidden('token', common_session_token());
+ $this->hidden('notice', $this->trimmed('notice'));
+ $this->element('p', null, _('Are you sure you want to delete this notice?'));
+ $this->submit('form_action-yes', _('Yes'), 'submit form_action-primary', 'yes');
+ $this->submit('form_action-no', _('No'), 'submit form_action-secondary', 'no');
+ $this->elementEnd('fieldset');
+ $this->elementEnd('form');
+ }
+
+ function deleteNotice()
+ {
+ // CSRF protection