Commit 12ef4f2b by Kálmán Viktor

dashboard: enhance store upload

parent 69148c99
{% load i18n %} {% load i18n %}
<div class="list-group"> <div class="list-group">
<div class="list-group-item"> <div class="list-group-item">
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<a href="{% url "dashboard.views.store-upload"%}?directory={{ current }}" <a href="{% url "dashboard.views.store-upload"%}?directory={{ current }}"
class="btn btn-info btn-xs pull-right js-hidden"> class="btn btn-info btn-xs js-hidden">
{% trans "Upload" %} {% trans "Upload" %}
</a> </a>
<form action="" data-action="{% url "dashboard.views.store-upload-url" %}" <form action="" data-action="{% url "dashboard.views.store-upload-url" %}"
......
...@@ -25,8 +25,9 @@ ...@@ -25,8 +25,9 @@
<form method="POST" action="{{ action }}" enctype="multipart/form-data"> <form method="POST" action="{{ action }}" enctype="multipart/form-data">
<input type="hidden" name="next" value="{{ next_url }}"/> <input type="hidden" name="next" value="{{ next_url }}"/>
<div> <div>
<input class="btn btn-default btn-sm pull-right" type="submit" value="{% trans "Upload" %}"/> <input class="btn btn-default btn-sm pull-right"
<input type="file" name="data" style="padding-top: 5px;"/> type="submit" value="{% trans "Upload" %}"/>
<input type="file" name="data" style="padding-top: 5px;" required/>
</div> </div>
</form> </form>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment