Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

slack_import: Use `textarea` for slack access token.

Aman Agrawalef8f9f058546
diff --git a/templates/zerver/slack_import.html b/templates/zerver/slack_import.html
index 67c4d318d56..66ea78ea7b5 100644
--- a/templates/zerver/slack_import.html
+++ b/templates/zerver/slack_import.html
@@ -39,9 +39,14 @@
</div>
<div class="input-box">
<label for="slack_access_token" class="inline-block label-title">{{ _('Slack bot user OAuth token') }}</label>
- <input id="slack-access-token" type="text"
+ <textarea id="slack-access-token"
placeholder="xoxb-…"
- maxlength="100" name="slack_access_token" {% if slack_access_token %} value="{{ slack_access_token }}" {% endif %} />
+ rows="3"
+ maxlength="100" name="slack_access_token">
+ {%- if slack_access_token -%}
+ {{ slack_access_token }}
+ {%- endif -%}
+ </textarea>
{% if slack_access_token_validation_error %}
<p id="slack-access-token-validation-error" class="help-inline text-error">{{ slack_access_token_validation_error }}</p>
{% endif %}