forked from mrsimpson/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Help Request creation using word cloud (RocketChat#169)
* enable drop down and fix ac after selection from word cloud * restrict and sort drop down values to 10 * added icon for wc and moved db call to server methods * Delay the expertise drop down a bit
- Loading branch information
Showing
21 changed files
with
460 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,3 +190,4 @@ assistify:defaults | |
chatpal:search | ||
rocketchat:version-check | ||
meteorhacks:aggregate | ||
overture8:wordcloud2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,6 +117,7 @@ [email protected] | |
[email protected] | ||
ostrio:[email protected] | ||
pauli:[email protected] | ||
overture8:[email protected] | ||
pauli:[email protected] | ||
percolate:[email protected] | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 76 additions & 68 deletions
144
packages/assistify-help-request/client/views/creationDialog/AssistifyCreateRequest.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,84 @@ | ||
<template name="AssistifyCreateRequest"> | ||
<header class="create-channel__header"> | ||
<h1 class="create-channel__title">{{_ "Requests"}}</h1> | ||
<p class="create-channel__description">{{_ "Request_description"}}</p> | ||
</header> | ||
<form class="create-channel__content"> | ||
<div class="create-channel__inputs"> | ||
<div class="rc-input {{#if expertiseError}} rc-input--error {{/if}}"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Expertise"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
<svg class="rc-icon rc-input__icon-svg rc-input__icon-svg--lock" aria-hidden="true"> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-lock"></use> | ||
</svg> | ||
{{#unless topicSearchEnable}} | ||
<header class="create-channel__header"> | ||
<h1 class="create-channel__title">{{_ "Requests"}}</h1> | ||
<p class="create-channel__description">{{_ "Request_description"}}</p> | ||
</header> | ||
<form class="create-channel__content"> | ||
<div class="create-channel__inputs"> | ||
<div class="rc-input {{#if expertiseError}} rc-input--error {{/if}}"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Expertise"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
<svg class="rc-icon rc-input__icon-svg rc-input__icon-svg--lock" aria-hidden="true"> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-lock"></use> | ||
</svg> | ||
</div> | ||
<input name="expertise" type="text" class="rc-input__element" | ||
id="expertise-search" | ||
placeholder={{_ "New_request_for_expertise"}} autocomplete=off value={{expertise}}> | ||
<div class="rc-input__icon rc-input__icon--right"> | ||
<svg class="rc-icon rc-input__icon-svg rc-input__icon-svg--book-alt" aria-hidden="true"> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-book-alt"></use> | ||
</svg> | ||
</div> | ||
</div> | ||
<input name="expertise" id="expertise-search" type="text" class="rc-input__element" placeholder={{_ "New_request_for_expertise"}} autocomplete=off value={{expertise}}> | ||
</div> | ||
{{#unless autocomplete 'isShowing'}} | ||
{{#if expertise}} | ||
{{#if expertiseError}} | ||
{{> AssistifyCreateInputError text=expertiseError}} | ||
{{/if}} | ||
{{/if}} | ||
{{/unless}} | ||
{{#with config}} | ||
{{#if autocomplete 'isShowing'}} | ||
<div class="fadeInDown"> | ||
{{#if autocomplete 'isLoaded'}} | ||
{{> popupList data=config items=items}} | ||
{{#unless autocomplete 'isShowing'}} | ||
{{#if expertise}} | ||
{{#if expertiseError}} | ||
{{> AssistifyCreateInputError text=expertiseError}} | ||
{{/if}} | ||
{{/if}} | ||
{{/unless}} | ||
{{#with config}} | ||
{{#if autocomplete 'isShowing'}} | ||
<div class="fadeInDown"> | ||
{{#if autocomplete 'isLoaded'}} | ||
{{> popupList data=config items=items}} | ||
{{/if}} | ||
</div> | ||
{{/if}} | ||
{{/with}} | ||
</label> | ||
</div> | ||
<div class="rc-input {{#if titleError}}rc-input--error{{/if}}"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Title"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
<svg class="rc-icon rc-input__icon-svg rc-input__icon-svg--flag" aria-hidden="true"> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-flag"></use> | ||
</svg> | ||
</div> | ||
{{/if}} | ||
{{/with}} | ||
</label> | ||
</div> | ||
<div class="rc-input {{#if titleError}}rc-input--error{{/if}}"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Title"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
<svg class="rc-icon rc-input__icon-svg rc-input__icon-svg--flag" aria-hidden="true"> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-flag"></use> | ||
</svg> | ||
<input name="request_title" type="text" class="rc-input__element" id="request_title" | ||
placeholder={{_ "New_request_title"}} autocomplete="off"> | ||
</div> | ||
<input name="request_title" id="request_title" type="text" class="rc-input__element" placeholder={{_ "New_request_title"}} autocomplete="off"> | ||
</div> | ||
</label> | ||
{{#if titleError}} | ||
{{> AssistifyCreateInputError text=titleError}} | ||
{{/if}} | ||
</div> | ||
<div class="rc-input"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Your_question"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
{{> icon block="rc-input__icon-svg" icon="send"}} | ||
</label> | ||
{{#if titleError}} | ||
{{> AssistifyCreateInputError text=titleError}} | ||
{{/if}} | ||
</div> | ||
<div class="rc-input"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Your_question"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
{{> icon block="rc-input__icon-svg" icon="send"}} | ||
</div> | ||
<textarea name="first_question" id="first_question" class="rc-input__textarea" | ||
placeholder="{{_ 'New_request_first_question'}}" | ||
maxlength="{{maxMessageLength}}"></textarea> | ||
</div> | ||
<textarea name="first_question" id="first_question" class="rc-input__textarea" placeholder="{{_ 'New_request_first_question'}}" maxlength="{{maxMessageLength}}"></textarea> | ||
</div> | ||
</label> | ||
</label> | ||
</div> | ||
<div class="rc-input"> | ||
<input class="rc-button rc-button--primary js-save-request" type="submit" data-button="create" | ||
value="{{_ "Create"}}" {{createIsDisabled}}> | ||
</div> | ||
</div> | ||
<div class="rc-input"> | ||
<input class="rc-button rc-button--primary js-save-request" type="submit" data-button="create" | ||
value="{{_ "Create"}}" {{createIsDisabled}}> | ||
</div> | ||
</div> | ||
</form> | ||
</template> | ||
|
||
<template name="AssistifyCreateRequestAutocomplete"> | ||
<li class="rc-popup-list__item"> | ||
<span class="rc-popup-list__item-name">{{{modifier item.name}}}</span> | ||
</li> | ||
</form> | ||
{{else}} | ||
{{> AssistifyWordCloud properties=getWordcloudProperties}} | ||
{{/unless}} | ||
</template> |
Oops, something went wrong.