function formActions()
{
// TRANS: Button text for action to save a new bookmark.
- $this->out->submit('submit', _m('BUTTON', 'Save'));
+ $this->out->submit('bookmark-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
}
function scaleImage($width, $height)
function formActions()
{
// TRANS: Button text for action to save a new bookmark.
- $this->out->submit('submit', _m('BUTTON', 'Add'));
+ $this->out->submit('initial-bookmark-submit', _m('BUTTON', 'Add'), 'submit', 'submit');
}
}
{
$this->out->elementStart('fieldset', array('id' => 'new_rsvp_data'));
- $this->out->hidden('rsvp', $this->rsvp->id);
+ $this->out->hidden('rsvp-id', $this->rsvp->id, 'rsvp');
switch (RSVP::verbFor($this->rsvp->response)) {
case RSVP::POSITIVE:
function formActions()
{
// TRANS: Button text to cancel responding to an RSVP ("please respond") item.
- $this->out->submit('cancel', _m('BUTTON', 'Cancel'));
+ $this->out->submit('rsvp-cancel', _m('BUTTON', 'Cancel'));
}
}
$this->out->elementStart('ul', 'form_data');
$this->li();
- $this->out->input('title',
+ $this->out->input('event-title',
// TRANS: Field label on event form.
_m('LABEL','Title'),
null,
// TRANS: Field title on event form.
- _m('Title of the event.'));
+ _m('Title of the event.'),
+ 'title');
$this->unli();
$this->li();
- $this->out->input('startdate',
+ $this->out->input('event-startdate',
// TRANS: Field label on event form.
_m('LABEL','Start date'),
null,
// TRANS: Field title on event form.
- _m('Date the event starts.'));
+ _m('Date the event starts.'),
+ 'startdate');
$this->unli();
$this->li();
- $this->out->input('starttime',
+ $this->out->input('event-starttime',
// TRANS: Field label on event form.
_m('LABEL','Start time'),
null,
// TRANS: Field title on event form.
- _m('Time the event starts.'));
+ _m('Time the event starts.'),
+ 'starttime');
$this->unli();
$this->li();
- $this->out->input('enddate',
+ $this->out->input('event-enddate',
// TRANS: Field label on event form.
_m('LABEL','End date'),
null,
// TRANS: Field title on event form.
- _m('Date the event ends.'));
+ _m('Date the event ends.'),
+ 'enddate');
$this->unli();
$this->li();
- $this->out->input('endtime',
+ $this->out->input('event-endtime',
// TRANS: Field label on event form.
_m('LABEL','End time'),
null,
// TRANS: Field title on event form.
- _m('Time the event ends.'));
+ _m('Time the event ends.'),
+ 'endtime');
$this->unli();
$this->li();
- $this->out->input('location',
+ $this->out->input('event-location',
// TRANS: Field label on event form.
_m('LABEL','Location'),
null,
// TRANS: Field title on event form.
- _m('Event location.'));
+ _m('Event location.'),
+ 'location');
$this->unli();
$this->li();
- $this->out->input('url',
+ $this->out->input('event-url',
// TRANS: Field label on event form.
_m('LABEL','URL'),
null,
// TRANS: Field title on event form.
- _m('URL for more information.'));
+ _m('URL for more information.'),
+ 'url');
$this->unli();
$this->li();
- $this->out->input('description',
+ $this->out->input('event-description',
// TRANS: Field label on event form.
_m('LABEL','Description'),
null,
// TRANS: Field title on event form.
- _m('Description of the event.'));
+ _m('Description of the event.'),
+ 'description');
$this->unli();
$this->out->elementEnd('ul');
function formActions()
{
// TRANS: Button text to save an event..
- $this->out->submit('submit', _m('BUTTON', 'Save'));
+ $this->out->submit('event-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
}
}
// TRANS: Field label on form to RSVP ("please respond") for an event.
$this->out->text(_m('RSVP:'));
- $this->out->hidden('event', $this->event->id);
+ $this->out->hidden('event-id', $this->event->id, 'event');
$this->out->hidden('submitvalue', '');
$this->out->elementEnd('fieldset');
function submitButton($id, $label)
{
- $this->out->element('input', array('type' => 'submit',
- 'id' => $id,
- 'name' => $id,
- 'class' => 'submit',
- 'value' => $label,
- 'title' => $label,
- 'onClick' => 'this.form.submitvalue.value = this.name; return true;'));
+ $this->out->element(
+ 'input',
+ array(
+ 'type' => 'submit',
+ 'id' => 'rsvp-submit',
+ 'name' => $id,
+ 'class' => 'submit',
+ 'value' => $label,
+ 'title' => $label,
+ 'onClick' => 'this.form.submitvalue.value = this.name; return true;'
+ )
+ );
}
}
$default = '';
}
$this->li();
- $this->out->input('option' . ($i + 1),
+ $this->out->input('poll-option' . ($i + 1),
// TRANS: Field label for an answer option on the page to create a poll.
// TRANS: %d is the option number.
sprintf(_m('Option %d'), $i + 1),
- $default);
+ $default,
+ null,
+ 'option' . ($i + 1));
$this->unli();
}
function formActions()
{
// TRANS: Button text for saving a new poll.
- $this->out->submit('submit', _m('BUTTON', 'Save'));
+ $this->out->submit('poll-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
}
}
function formActions()
{
// TRANS: Button text for submitting a poll response.
- $this->out->submit('submit', _m('BUTTON', 'Submit'));
+ $this->out->submit('poll-response-submit', _m('BUTTON', 'Submit'), 'submit', 'submit');
}
}
$out->raw($this->question->asHTML());
}
- $out->hidden('id', $id);
- $out->textarea('answer', 'answer');
+ $out->hidden('qna-question-id', $id, 'id');
+ $out->textarea('qna-answer', 'answer', null, null, 'answer');
}
/**
function formActions()
{
// TRANS: Button text for submitting a poll response.
- $this->out->submit('submit', _m('BUTTON', 'Answer'));
+ $this->out->submit('qna-answer-submit', _m('BUTTON', 'Answer'), 'submit', 'submit');
}
}
$this->li();
$this->out->input(
- 'title',
+ 'qna-question-title',
_m('Title'),
$this->title,
- _m('Title of your question')
+ _m('Title of your question'),
+ 'title'
);
$this->unli();
$this->li();
$this->out->textarea(
- 'description',
+ 'qna-question-description',
_m('Description'),
$this->description,
- _m('Your question in detail')
+ _m('Your question in detail'),
+ 'description'
);
$this->unli();
function formActions()
{
// TRANS: Button text for saving a new question.
- $this->out->submit('submit', _m('BUTTON', 'Save'));
+ $this->out->submit('qna-question-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
}
}
function formData()
{
$this->out->hidden(
- 'id',
- 'answer-' . $this->answer->id
+ 'qna-answer-id',
+ 'answer-' . $this->answer->id,
+ 'id'
);
$this->out->raw($this->answer->asHTML());
if ($user->id == $this->question->profile_id) {
if (empty($this->answer->best)) {
$this->out->submit(
- 'best',
+ 'qna-best-answer',
// TRANS: Button text for marking an answer as "best"
_m('BUTTON', 'Best'),
'submit',
- null,
+ 'submit',
// TRANS: Title for button text marking an answer as "best"
_('Mark as best answer')
);
function formData()
{
$this->out->hidden(
- 'id',
- 'question-' . $this->question->id
+ 'qna-quesiton-id',
+ 'question-' . $this->question->id,
+ 'id'
);
$this->out->raw($this->question->asHTML());
if (empty($this->question->closed)) {
if ($user->id == $this->question->profile_id) {
$this->out->submit(
- 'close',
+ 'qna-question-close',
// TRANS: Button text for closing a question
_m('BUTTON', 'Close'),
'submit',
- null,
+ 'submit',
// TRANS: Title for button text for closing a question
_('Close the question')
);