{% load static %} 
{% include "header.html" %}
{% include "navigation.html" with main_path='/main/' %}

<br/>
<br/>

<div class="container">
  <div class="dashboard">
    <div class="span8 offset2">
      <h1>Edit computing conf</h1> 
      <hr>

      <h4>Edit the configuration in JSON format for {{ data.computing }}</h4> 
      
      <br/>
      
      <form action="/edit_computing_conf/" method="POST">
      {% csrf_token %}
      <input type="hidden" name="type" value="{{ data.type }}">
      <input type="hidden" name="computing_uuid" value="{{ data.computing.uuid }}">
      <table class="dashboard" style="max-width:430px">

       <tr>
        <td>
         <textarea name="new_conf" style="height:300px; width:500px">{{ data.computing_conf_data_json }}</textarea>
        </td>
       </tr>

      {% if data.saved %}
       <tr>
        <td colspan=2 align=center style="padding:0px">
         <font color="green">Saved</font>
        </td>
       </tr>
      {% endif %}

       <tr>
        <td colspan=2 align=center style="padding:20px">
         <input type="submit" value="Save">
        </td>
       </tr>
       
      </table>
      </form>

      <br/>          
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      
    </div>
  </div>
</div>

{% include "footer.html" %}






