send data to html

parent 3aad299f
......@@ -5,9 +5,8 @@
right:0;
width: 350px;
height: 100%;
border: 1px solid DarkSlateGray;
background-color: rgba(250,250,255,0.8);
color:DarkSlateGray;
background-color: DarkSlateGray;
color:white;
}
.catalog li
......
......@@ -105,36 +105,7 @@
<!-- Home tab content -->
<div class="tab-pane" id="control-sidebar-home-tab">
<h3 class="control-sidebar-heading">Products</h3>
<ul class="control-sidebar-menu">
<li>
{% if catalog %}
<p>HI BUDDY</p>
{% endif %}
<a href="javascript:void(0)">
<i class="menu-icon fa fa-birthday-cake bg-red"></i>
<div class="menu-info">
<h4 class="control-sidebar-subheading">first image</h4>
<p>
size: 700 mb
Date: April 11th
</p>
</div>
</a>
<a href="javascript:void(0)">
<i class="menu-icon fa fa-birthday-cake bg-red"></i>
<div class="menu-info">
<h4 class="control-sidebar-subheading">second image</h4>
<p>
size: 900 mb
Date: April 19th
</p>
</div>
</a>
</li>
</ul>
<iframe id="catalogFrame" name="catalogFrame" frameBorder="0" height="450" width="210">my frame</iframe>
</div>
<!-- /.tab-pane -->
<!-- Stats tab content -->
......
......@@ -194,10 +194,6 @@
</span>
</a>
</li>
<li>
<iframe id="catalogFrame" name="catalogFrame">my frame</iframe>
</li>
</ul>
</form>
</div>
......
......@@ -3,13 +3,31 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="{% static 'css/rightPanel.css'%}" type="text/css">
<link rel="stylesheet" href="{% static 'adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css' %}">
<!-- Theme style -->
<link rel="stylesheet" href="{% static 'adminlte/dist/css/AdminLTE.css' %}">
<link rel="stylesheet" href="{% static 'adminlte/dist/css/skins/_all-skins.css' %}">
<link rel="stylesheet" href="{% static 'adminlte/bower_components/select2/dist/css/select2.min.css' %}">
</head>
<body>
PRUEBA
<body style="background-color: #222d32; color: #fff">
<ul class="control-sidebar-menu">
<li>
{% if catalog %}
<p>HI BUDDY</p>
{% endif %}
<a href="javascript:void(0)">
<i class="menu-icon fa fa-birthday-cake bg-red"></i>
<div class="menu-info">
<h4 class="control-sidebar-subheading">first image</h4>
<p>
size: 700 mb
Date: April 11th
</p>
</div>
</a>
</li>
</ul>
<!-- <ul class="catalog">-->
<!-- {% for i in catalog %}-->
<!-- <li>-->
......
......@@ -57,7 +57,7 @@ def productList(request):
# response = requests.get(url)
# json = response.json()
return render(request,'base_top.html', {"catalog":products_json}) #"catalog":json[0]})
return render(request,'productList.html', {"catalog":products_json}) #"catalog":json[0]})
#-------------------------------------------------------------------------------
class SearchSubmitView(View):
......
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 to comment