Visually align iTip reply control UI elements; change wording to match terms we're already using

This commit is contained in:
Thomas Bruederli 2014-07-08 14:35:11 +02:00
parent 5463f9a4fe
commit c67becd5ae
2 changed files with 10 additions and 8 deletions

View file

@ -437,18 +437,20 @@ class libcalendaring_itip
}
}
// add input field for reply comment
$rsvp_buttons .= html::a(array('href' => '#toggle', 'class' => 'reply-comment-toggle'), $this->gettext('itipeditresponse'));
$rsvp_buttons .= html::div('itip-reply-comment',
html::tag('textarea', array('id' => 'reply-comment-'.$dom_id, 'cols' => 40, 'rows' => 6, 'style' => 'display:none', 'placeholder' => $this->gettext('itipcomment')), '')
);
// add checkbox to suppress itip reply message
$rsvp_buttons .= html::label(array('class' => 'noreply-toggle'),
$rsvp_additions = html::label(array('class' => 'noreply-toggle'),
html::tag('input', array('type' => 'checkbox', 'id' => 'noreply-'.$dom_id, 'value' => 1))
. ' ' . $this->gettext('itipsuppressreply')
);
// add input field for reply comment
$rsvp_additions .= html::a(array('href' => '#toggle', 'class' => 'reply-comment-toggle'), $this->gettext('itipeditresponse'));
$rsvp_additions .= html::div('itip-reply-comment',
html::tag('textarea', array('id' => 'reply-comment-'.$dom_id, 'cols' => 40, 'rows' => 6, 'style' => 'display:none', 'placeholder' => $this->gettext('itipcomment')), '')
);
$rsvp_buttons .= html::div('itip-reply-controls', $rsvp_additions);
$buttons[] = html::div(array('id' => 'rsvp-'.$dom_id, 'class' => 'rsvp-buttons', 'style' => 'display:none'), $rsvp_buttons);
}
// for CANCEL messages, we can:

View file

@ -79,7 +79,7 @@ $labels['itipneeds-action'] = 'Postpone';
$labels['itipcomment'] = 'Your response';
$labels['itipeditresponse'] = 'Enter a response text';
$labels['itipsendercomment'] = 'Sender\'s comment: ';
$labels['itipsuppressreply'] = 'Don\'t send reply message';
$labels['itipsuppressreply'] = 'Do not send a response';
$labels['itipobjectnotfound'] = 'The object referred by this message was not found in your account.';
$labels['itipsubjectaccepted'] = '"$title" has been accepted by $name';