invites: Move multiuse invite status to footer.

This commit is contained in:
Vishnu Ks 2019-02-07 01:02:06 +05:30 committed by Tim Abbott
parent b62bd83083
commit 6ed6bcef05
3 changed files with 17 additions and 5 deletions

View File

@ -3,11 +3,11 @@ var invite = (function () {
var exports = {};
function reset_error_messages() {
var invite_status = $('#invite_status');
var invitee_emails_group = $("#invitee_emails").closest('.control-group');
$('#invite_status').hide().text('').removeClass(common.status_classes);
$('#multiuse_invite_status').hide().text('').removeClass(common.status_classes);
$("#invitee_emails").closest('.control-group').removeClass('warning error');
invite_status.hide().text('').removeClass(common.status_classes);
invitee_emails_group.removeClass('warning error');
if (page_params.development_environment) {
$('#dev_env_msg').hide().text('').removeClass(common.status_classes);
}
@ -94,7 +94,7 @@ function submit_invitation_form() {
}
function generate_multiuse_invite() {
var invite_status = $('#invite_status');
var invite_status = $('#multiuse_invite_status');
var data = get_common_invitation_data();
channel.post({
url: "/json/invites/multiuse",

View File

@ -2538,6 +2538,17 @@ div.topic_edit_spinner .loading_indicator_spinner {
text-transform: uppercase;
}
#multiuse_invite_status {
display: none;
margin-top: 7px;
margin-bottom: -5px;
text-align: left;
}
#invite-stream-checkboxes {
padding-bottom: 26px;
}
#invite-method-choice {
margin-top: 2px;
}

View File

@ -50,6 +50,7 @@
<button class="button exit small rounded" data-dismiss="modal">{{ _('Cancel') }}</button>
<button id="submit-invitation" class="button small rounded sea-green" type="button"
data-loading-text="{{ _('Inviting...') }}">{{ _('Invite') }}</button>
<div class="alert" id="multiuse_invite_status"></div>
</div>
</form>
</div>