{% extends "layout.html" %}
{% block title %}Update software profile{% endblock %}
{% block head %}
  {{ super() }}
    <script src="{{ url_for('static', filename='js/ace/ace.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/ace/theme-crimson_editor.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/ace/mode-buildout.js') }}" type="application/javascript" charset="utf-8"></script>
  <script src="{{ url_for('static', filename='js/scripts/editor.js') }}" type="application/javascript" charset="utf-8"></script>
{% endblock %}
{% block body %}
<form method=post class=add-entry>
    <dl>
        <dd><h2>Edit software profile <a href='#' id="editOption" rel="tooltip" title='Show more option'>[More]</a>:</h2></dd>
        <dd><div class='md5sum' id='md5sum'></div></dd>
        <dd>
           <div class="main_content">
<pre id="editor"></pre>
            </div>
            <input type="hidden" name="profile" id="profile" value="{{ profile|safe }}" />
	    <input type="hidden" name="workdir" id="workdir" value="{{workDir}}"/>
        </dd>
        <dd><input type=submit value=Save id="save" class="button"></dd>
    </dl>
</form>
<div id="tooltip-editOption" style="display:none">
  <span class="list">Current profile options</span>
    <a id='getmd5' href="#">Get or Update md5sum</a>
    <a href="{{ url_for('editCurrentProject')}}">Edit software release files</a>
    <div class="sep"></div>
    <span class="list">Add Project to Develop</span>
    <ul id="plist">
    {% for name in projectList%}
      <li><input type="checkbox" name="develop" value="{{name}}" id="{{name}}">
      <label>{{name}}</label></li>
    {% endfor %}
    </ul>
    <a href="#" id="adddevelop" class="lshare">Add to profile</a>
</div>
{% endblock %}

