summaryrefslogtreecommitdiff
path: root/actions/invite.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:57:15 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:57:15 +0000
commiteaa81d25fa7bd954132ce7f901fae69b0d46ec1a (patch)
tree25ac22e73ca93935b2a27e1e91e485b04ec3e01d /actions/invite.php
parent2b2fb276219f87cdc0430d91ac3695e098ae48f4 (diff)
Convert all actions to use new UI functions
I did a massive search-and-replace to get all the action subclasses to use the new output function (common_element() -> $this->element(), etc.) There's still a lot to do, but it's a first step
Diffstat (limited to 'actions/invite.php')
-rw-r--r--actions/invite.php46
1 files changed, 23 insertions, 23 deletions
diff --git a/actions/invite.php b/actions/invite.php
index 80e022a3d..15233602e 100644
--- a/actions/invite.php
+++ b/actions/invite.php
@@ -89,29 +89,29 @@ class InviteAction extends Action
common_show_header(_('Invitation(s) sent'));
if ($already) {
- common_element('p', null, _('You are already subscribed to these users:'));
- common_element_start('ul');
+ $this->element('p', null, _('You are already subscribed to these users:'));
+ $this->elementStart('ul');
foreach ($already as $other) {
- common_element('li', null, sprintf(_('%s (%s)'), $other->nickname, $other->email));
+ $this->element('li', null, sprintf(_('%s (%s)'), $other->nickname, $other->email));
}
- common_element_end('ul');
+ $this->elementEnd('ul');
}
if ($subbed) {
- common_element('p', null, _('These people are already users and you were automatically subscribed to them:'));
- common_element_start('ul');
+ $this->element('p', null, _('These people are already users and you were automatically subscribed to them:'));
+ $this->elementStart('ul');
foreach ($subbed as $other) {
- common_element('li', null, sprintf(_('%s (%s)'), $other->nickname, $other->email));
+ $this->element('li', null, sprintf(_('%s (%s)'), $other->nickname, $other->email));
}
- common_element_end('ul');
+ $this->elementEnd('ul');
}
if ($sent) {
- common_element('p', null, _('Invitation(s) sent to the following people:'));
- common_element_start('ul');
+ $this->element('p', null, _('Invitation(s) sent to the following people:'));
+ $this->elementStart('ul');
foreach ($sent as $other) {
- common_element('li', null, $other);
+ $this->element('li', null, $other);
}
- common_element_end('ul');
- common_element('p', null, _('You will be notified when your invitees accept the invitation and register on the site. Thanks for growing the community!'));
+ $this->elementEnd('ul');
+ $this->element('p', null, _('You will be notified when your invitees accept the invitation and register on the site. Thanks for growing the community!'));
}
common_show_footer();
}
@@ -119,12 +119,12 @@ class InviteAction extends Action
function show_top($error=null)
{
if ($error) {
- common_element('p', 'error', $error);
+ $this->element('p', 'error', $error);
} else {
- common_element_start('div', 'instructions');
- common_element('p', null,
+ $this->elementStart('div', 'instructions');
+ $this->element('p', null,
_('Use this form to invite your friends and colleagues to use this service.'));
- common_element_end('div');
+ $this->elementEnd('div');
}
}
@@ -135,22 +135,22 @@ class InviteAction extends Action
common_show_header(_('Invite new users'), null, $error, array($this, 'show_top'));
- common_element_start('form', array('method' => 'post',
+ $this->elementStart('form', array('method' => 'post',
'id' => 'invite',
'action' => common_local_url('invite')));
- common_hidden('token', common_session_token());
+ $this->hidden('token', common_session_token());
- common_textarea('addresses', _('Email addresses'),
+ $this->textarea('addresses', _('Email addresses'),
$this->trimmed('addresses'),
_('Addresses of friends to invite (one per line)'));
- common_textarea('personal', _('Personal message'),
+ $this->textarea('personal', _('Personal message'),
$this->trimmed('personal'),
_('Optionally add a personal message to the invitation.'));
- common_submit('send', _('Send'));
+ $this->submit('send', _('Send'));
- common_element_end('form');
+ $this->elementEnd('form');
common_show_footer();
}