1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add FileVar for file uploads

This commit is contained in:
Jeremy Stretch
2019-08-16 15:27:58 -04:00
parent 99394de14e
commit de770faf6a
3 changed files with 27 additions and 13 deletions

View File

@@ -57,9 +57,11 @@
</tr>
{% endfor %}
</table>
<div class="panel-footer text-right text-muted">
<small>Exec time: {{ execution_time|floatformat:3 }}s</small>
</div>
{% if execution_time %}
<div class="panel-footer text-right text-muted">
<small>Exec time: {{ execution_time|floatformat:3 }}s</small>
</div>
{% endif %}
</div>
</div>
</div>
@@ -72,7 +74,7 @@
You do not have permission to run scripts.
</div>
{% endif %}
<form action="" method="post" class="form form-horizontal">
<form action="" method="post" enctype="multipart/form-data" class="form form-horizontal">
{% csrf_token %}
{% if not form.requires_input %}
<div class="alert alert-info">