send data to html

parent 3aad299f
...@@ -5,9 +5,8 @@ ...@@ -5,9 +5,8 @@
right:0; right:0;
width: 350px; width: 350px;
height: 100%; height: 100%;
border: 1px solid DarkSlateGray; background-color: DarkSlateGray;
background-color: rgba(250,250,255,0.8); color:white;
color:DarkSlateGray;
} }
.catalog li .catalog li
......
...@@ -105,36 +105,7 @@ ...@@ -105,36 +105,7 @@
<!-- Home tab content --> <!-- Home tab content -->
<div class="tab-pane" id="control-sidebar-home-tab"> <div class="tab-pane" id="control-sidebar-home-tab">
<h3 class="control-sidebar-heading">Products</h3> <h3 class="control-sidebar-heading">Products</h3>
<ul class="control-sidebar-menu"> <iframe id="catalogFrame" name="catalogFrame" frameBorder="0" height="450" width="210">my frame</iframe>
<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>
</div> </div>
<!-- /.tab-pane --> <!-- /.tab-pane -->
<!-- Stats tab content --> <!-- Stats tab content -->
......
...@@ -194,10 +194,6 @@ ...@@ -194,10 +194,6 @@
</span> </span>
</a> </a>
</li> </li>
<li>
<iframe id="catalogFrame" name="catalogFrame">my frame</iframe>
</li>
</ul> </ul>
</form> </form>
</div> </div>
......
...@@ -3,13 +3,31 @@ ...@@ -3,13 +3,31 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <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 '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> </head>
<body> <body style="background-color: #222d32; color: #fff">
PRUEBA <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">--> <!-- <ul class="catalog">-->
<!-- {% for i in catalog %}--> <!-- {% for i in catalog %}-->
<!-- <li>--> <!-- <li>-->
......
...@@ -57,7 +57,7 @@ def productList(request): ...@@ -57,7 +57,7 @@ def productList(request):
# response = requests.get(url) # response = requests.get(url)
# json = response.json() # 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): 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