projectFolder.html 2.09 KB
Newer Older
1 2 3 4
{% extends "layout.html" %}
{% block title %}{% if method == "new" %}Adding new software{%else%}Open existing project{%endif%}{% endblock %}
{% block head %}
  {{ super() }}
5
  <link href="{{ url_for('static', filename='css/ui.fancytree.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
Alain Takoudjou's avatar
Alain Takoudjou committed
6 7
  <script src="{{ url_for('static', filename='js/jquery/jquery.fancytree.min.js') }}" type="application/javascript" charset="utf-8"></script>
  <script src="{{ url_for('static', filename='js/scripts/project.js') }}" type="application/javascript" charset="utf-8"></script>
8 9 10 11 12 13 14 15 16
{% endblock %}
{% block body %}

<form action="" method=post>
<input type="hidden" name="workdir" id="workdir" value="{{workDir}}" />
<input type="hidden" name="subfolder" id="subfolder" value="" />
<input type="hidden" name="method" id="method" value="{{method}}" />
{% if method == "new" %}
<div id="addsoftware">
17 18 19
<h2 class="hight">Create your software release</h2>
<div class='space'></div><div class='space'></div>
<label for='software'></label>
20
<input type="text" name="software" id="software" size='30' value="Enter software name..." />
21
<br/>
22 23 24 25
<div id="file_navigation">
	<h2>Select the parent directory</h2>
	<div id="fileTree" class="file_tree"></div>
	<div id="file_info" class="file_info"><span id="info">Please select your parent folder into the box...</span></div>
26
	<input type="submit" name="create" id ="create" value="Create" class="button"/>
27 28 29 30
</div>
</div>
{% elif method == "open" %}
<div id="openSoftware">
31 32
	<h2 class="hight">Select the folder of your software release into the box</h2>
  <div class='space'></div>
33 34 35
	<div id="fileTree" class="file_tree"></div>
	<div id="file_info" class="file_info">
	<img src="{{ url_for('static', filename='images/check.png') }}" class="check" id="check" alt=""/>
36
  <p><font color="red">WARNING:</font> Opening a new software release <font color="red">WILL ERASE YOUR EXISTING INSTANCE</font>. Proceed with caution!</p></div>
37 38 39 40 41 42
	<input type="hidden" name="path" id="path" value="" />
	<input type="submit" name="open" id ="open" value="Open Software" class="button"/>
</div>
{% endif %}
</form>
{% endblock %}