-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web import tool: Add the views and templates.
- Loading branch information
1 parent
f329a1a
commit d7d1e5c
Showing
5 changed files
with
138 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{% extends "zerver/portico_signup.html" %} | ||
{# This is the page where we import data from Slack into Zulip. #} | ||
|
||
{% block portico_content %} | ||
|
||
<div class="app register-page"> | ||
<div class="app-main register-page-container new-style flex full-page center"> | ||
<form action="/web_import/" method="post" enctype="multipart/form-data"> | ||
{{ csrf_input }} | ||
<div> | ||
<input id="import_team_subdomain" name="realm_subdomain" | ||
class="realm_subdomain" type="text" | ||
value="{% if form.realm_subdomain.value() %}{{ form.realm_subdomain.value() }}{% endif %}" | ||
required /> | ||
</div> | ||
<div> | ||
{% if form.realm_subdomain.errors %} | ||
{% for error in form.realm_subdomain.errors %}" | ||
<p class="error help-inline text-error">{{ error }}</p> | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
|
||
<div> | ||
<input id="import_full_name" name="full_name" | ||
class="full_name" type="text" | ||
value="{% if form.full_name.value() %}{{ form.full_name.value() }}{% endif %}" | ||
required /> | ||
</div> | ||
<div> | ||
{% if form.full_name.errors %} | ||
{% for error in form.full_name.errors %} | ||
<p class="error help-inline text-error">{{ error }}</p> | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
|
||
<div> | ||
<input id="import_email" name="email" | ||
class="email" type="text" | ||
value="{% if form.email.value() %}{{ form.email.value() }}{% endif %}" | ||
required /> | ||
</div> | ||
<div> | ||
{% if form.email.errors %} | ||
{% for error in form.email.errors %} | ||
<p class="error help-inline text-error">{{ error }}</p> | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
|
||
<input type="file" name="zulip_data_file" | ||
value="{{ _('Upload Import file') }}" required /> | ||
<div> | ||
{% if form.zulip_data_file.errors %} | ||
{% for error in form.zulip_data_file.errors %}" | ||
<p class="error help-inline text-error">{{ error }}</p> | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
{% if form_error %} | ||
<p class="error help-inline text-error">{{ form_error }}</p> | ||
{% endif %} | ||
<input type="submit" value="Submit" /> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} |
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
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
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