superset/import_dashboards.html: Update title, clean up html (#4972)

* Changes "Import the dashboards." to "Import dashboards"
* Cleans up the HTML to add quotes, self close tags, etc.
* Adds a class to the `<submit>` button to utilize bootstrap style
* Remove the `<title>` tag in body as it's not vaild HTML and redundant with `{% block %}`
This commit is contained in:
Nicole Dominguez 2018-05-09 23:42:17 -04:00 committed by Maxime Beauchemin
parent 918399d4e2
commit 94249ed20c
1 changed files with 19 additions and 17 deletions

View File

@ -8,22 +8,24 @@
{% endwith %}
{% endblock %}
{% block title %}{{ _("Import") }}{% endblock %}
{% block title %}{{ _("Import dashboards") }}{% endblock %}
{% block body %}
{% include "superset/flash_wrapper.html" %}
<div class="container">
<title>Import the dashboards.</title>
<h1>Import the dashboards.</h1>
<form method=post enctype=multipart/form-data>
<input
type="hidden"
name="csrf_token"
id="csrf_token"
value="{{ csrf_token() if csrf_token else '' }}"
>
<p><input type=file name=file>
<input type=submit value=Upload>
</p>
</form>
</div>
{% include "superset/flash_wrapper.html" %}
<div class="container">
<h1>Import dashboards</h1>
<form method="post" enctype="multipart/form-data">
<input
type="hidden"
name="csrf_token"
id="csrf_token"
value="{{ csrf_token() if csrf_token else '' }}" />
<p>
<input type="file" name="file" />
<input type="submit" value="Upload" class="btn" />
</p>
</form>
</div>
{% endblock %}