mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Fix menu on 'import dashboards' page
closes https://github.com/apache/incubator-superset/issues/5576
This commit is contained in:
parent
5c1d906976
commit
d04d714fe5
@ -1,16 +1,8 @@
|
|||||||
{% extends "superset/basic.html" %}
|
{% extends "appbuilder/base.html" %}
|
||||||
|
|
||||||
# TODO: move the libs required by flask into the common.js from welcome.js.
|
|
||||||
{% block head_js %}
|
|
||||||
{{ super() }}
|
|
||||||
{% with filename="welcome" %}
|
|
||||||
{% include "superset/partials/_script_tag.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block title %}{{ _("Import dashboards") }}{% endblock %}
|
{% block title %}{{ _("Import dashboards") }}{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block content %}
|
||||||
{% include "superset/flash_wrapper.html" %}
|
{% include "superset/flash_wrapper.html" %}
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@ -23,8 +15,19 @@
|
|||||||
id="csrf_token"
|
id="csrf_token"
|
||||||
value="{{ csrf_token() if csrf_token else '' }}" />
|
value="{{ csrf_token() if csrf_token else '' }}" />
|
||||||
<p>
|
<p>
|
||||||
<input type="file" name="file" />
|
<label class="btn btn-default btn-sm" for="my-file-selector">
|
||||||
<input type="submit" value="Upload" class="btn" />
|
<input
|
||||||
|
id="my-file-selector"
|
||||||
|
type="file"
|
||||||
|
name="file"
|
||||||
|
style="display:none;"
|
||||||
|
onchange="$('#upload-file-info').html(this.files[0].name)"/>
|
||||||
|
Choose File
|
||||||
|
</label>
|
||||||
|
<span class='label label-info' id="upload-file-info"></span>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<input type="submit" value="Upload" class="btn btn-primary btn-sm" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{% extends "superset/datasource.html" %}
|
|
||||||
|
|
||||||
{% block viz %}
|
|
||||||
<span class="alert alert-danger">No data: review your incantations.</span>
|
|
||||||
{% endblock %}
|
|
Loading…
Reference in New Issue
Block a user