zhongrj
2025-11-24 276323dce9613867abb3f58a4cc2abbfb2fd0dea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends "admin/change_list.html" %}
{% load i18n %}
 
{% block content_title %}
<style type="text/css">
.plugin-upload{
    float: right;
    margin-left: 8px;
    margin-bottom: 12px;
}
.plugin-upload input[type="file"]{
    display: none;
}
</style>
<div class="plugin-upload">
  <form name="form" enctype="multipart/form-data"
        action="actions/upload/" id="plugin-upload-form" method = "POST" >{% csrf_token %}
    <input type="file"
           name="file"
           id="plugin-upload-file"
           onchange="document.getElementById('plugin-upload-form').submit();"
           accept=".zip"/>
    <button type="submit" class="btn btn-sm btn-primary" onclick="document.getElementById('plugin-upload-file').click(); return false;">
      <i class="glyphicon glyphicon-upload"></i> {% trans 'Load Plugin (.zip)' %}
    </button>
  </form>
</div>
<h1>{% trans 'Manage Plugins' %}</h1>
<div style="clear: both;"></div>
{% endblock %}