mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
UX: better invite modal
This commit is contained in:
parent
fe1ebee791
commit
02e461de8d
@ -110,11 +110,8 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
||||
}
|
||||
}.property('isMessage', 'invitingToTopic', 'emailOrUsername'),
|
||||
|
||||
// Instructional text for the group selection.
|
||||
groupInstructions: function() {
|
||||
return this.get('isPrivateTopic') ?
|
||||
I18n.t('topic.automatically_add_to_groups_required') :
|
||||
I18n.t('topic.automatically_add_to_groups_optional');
|
||||
showGroupsClass: function() {
|
||||
return this.get('isPrivateTopic') ? 'required' : 'optional';
|
||||
}.property('isPrivateTopic'),
|
||||
|
||||
groupFinder(term) {
|
||||
|
@ -19,12 +19,12 @@
|
||||
{{text-field value=emailOrUsername placeholderKey="topic.invite_reply.email_placeholder"}}
|
||||
{{/if}}
|
||||
{{#if showGroups}}
|
||||
<label>{{{groupInstructions}}}</label>
|
||||
<label><span class={{showGroupsClass}}>{{i18n 'topic.automatically_add_to_groups'}}</span></label>
|
||||
{{group-selector groupFinder=groupFinder groupNames=model.groupNames placeholderKey="topic.invite_private.group_name"}}
|
||||
{{/if}}
|
||||
|
||||
{{#if showCustomMessage}}
|
||||
<br><label><a {{action "showCustomMessageBox"}}>{{i18n 'invite.custom_message'}}</a></label>
|
||||
<br><label><span class='optional'>{{i18n 'invite.custom_message'}}</span> <a {{action "showCustomMessageBox"}}>{{i18n 'invite.custom_message_link'}}</a>.</label>
|
||||
{{#if hasCustomMessage}}{{textarea value=customMessage placeholder=customMessagePlaceholder}}{{/if}}
|
||||
{{/if}}
|
||||
|
||||
|
@ -267,6 +267,9 @@
|
||||
.ember-text-field {
|
||||
width: 550px;
|
||||
}
|
||||
.optional {
|
||||
color: #9e9ea6;
|
||||
}
|
||||
}
|
||||
|
||||
.permission-list{
|
||||
|
@ -1423,8 +1423,7 @@ en:
|
||||
banner_exists: "There <strong class='badge badge-notification unread'>is</strong> currently a banner topic."
|
||||
|
||||
inviting: "Inviting..."
|
||||
automatically_add_to_groups_optional: "This invite also includes access to these groups: (optional, admin only)"
|
||||
automatically_add_to_groups_required: "This invite also includes access to these groups: (<b>Required</b>, admin only)"
|
||||
automatically_add_to_groups: "This invite also includes access to these groups:"
|
||||
|
||||
invite_private:
|
||||
title: 'Invite to Message'
|
||||
@ -3041,7 +3040,8 @@ en:
|
||||
search: "There are no more search results."
|
||||
|
||||
invite:
|
||||
custom_message: "Make your invite a little bit more personal by writing a custom message (optional)."
|
||||
custom_message: "Make your invite a little bit more personal by writing a"
|
||||
custom_message_link: "custom message"
|
||||
custom_message_placeholder: "Enter your custom message, use {invite_link} for specifying invite link."
|
||||
custom_message_template: |
|
||||
Hello,
|
||||
|
Loading…
Reference in New Issue
Block a user