Explorar el Código

all isos linked

bscheibel hace 4 años
padre
commit
e611c72b51
Se han modificado 2 ficheros con 11 adiciones y 9 borrados
  1. 9 8
      app/templates/index.html
  2. 2 1
      app/views.py

+ 9 - 8
app/templates/index.html

@@ -75,18 +75,19 @@
         <ui-resizehandle data-label="drag to resize"></ui-resizehandle>
         <ui-area id="detailcolumn1" data-minsize="20em">
           <h3 style="text-align:left"> Regulatory Documents</h3>
-            <div id="dat_details" class='x-ui-layout'>
-            <table style='text-align:left'>
+            <div id="dat_details" class='x-ui-layout column-one'>
                 <tr>
                   {{ html_links | safe }}
                 </tr>
 
-            {% for iso in isos_names %}
-            <tr>
-                 <td style='text-align:left'> {{ iso }}</td>
-             </tr>
-            {% endfor %}
-        </table>
+                {% for iso in isos_names %}
+                <tr>
+                    <td style='text-align:left'> {{ iso }} (Document not available)</td><br>
+                </tr>
+                {% endfor %}
+            </div>
+            <div class="x-ui-layout column-two">
+                testtestetse
             </div>
 
           <div id="measurements">

+ 2 - 1
app/views.py

@@ -136,7 +136,8 @@ def uploaded_file(filename, uuid):
 
 
                 for x in relevant_isos:
-                    html_code += "<td style='text-align:left'> <a href=" + url_for('static', filename="isos/"+x) + " >"+ x.partition(".")[0]  +"</a>  </td>"
+                    #html_code += "<td style='text-align:left'> <a href=" + url_for('static', filename="isos/"+x) + " >"+ x.partition(".")[0]  +"</a>  </td>"
+                    html_code += "<td style='text-align:left'> <a onclick=ui_add_tab_active('#main','" + x.partition(".")[0] + "','" + x.partition(".")[0] +"',true,'isotab')>" + x.partition(".")[0] + "</a>  </td>"
                 #print(html_code)
         return render_template('show_image_old_working.html', filename=file_out, isos=isos, dims=dims, text=html_code, number=number_blocks, og_filename=filename, w=w, h=h, links=links)