<!DOCTYPE html>


<html>
<head>


{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}" />
</head>
<body>

{% include "chlamdb/user.html" %}
{% include "chlamdb/menu.html" %}

  
<!--
{% load static %}
<img src="{% static 'im_1.jpg' %}" alt="Mon image" />
-->

<section>

<form action="{% url "primer_search" %}" method="post">{% csrf_token %}

<table>
<tr>
  <td>{{ form.as_p }}</td>
</tr>

<tr>
  <td><input type="submit" value="Submit" /></td>
</tr>
</table>



</form>



{% if envoi %}

    &nbsp

    <h2>Blast result</h2>



<div id="formatted_blast">
{% autoescape off %}{{blast_result}}{% endautoescape %}

</div>
<!--
<table>
<tr>
  <td>
   <pre id=blast_result>
    {{blast_result}}
   </pre>

  </td>
</tr>
-->

</table>

</section>

  
{% endif %}




<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
    $('#id_input_file,#id_primersearch_input').each(function(i, e) {
        $('<input name="test_field" value="'+i+'" type="radio">')
            .insertBefore(e)
            .click(function() {
                $('#id_input_file,#id_primersearch_input').attr('disabled', 'disabled');
                $(e).removeAttr('disabled');
            })
            .next('#id_input_file').prev().click();
    });
});
</script>


</body>
</html>
