layout.html 4.7 KB
Newer Older
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2

3
<html xmlns="http://www.w3.org/1999/xhtml">
4 5

    <head>
6
	{% block head %}
7 8 9 10 11 12 13 14
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />

        <title>Buildout runner</title>

        <meta name="keywords" content="" />

        <meta name="description" content="" />

15
        <link href="{{ url_for('static', filename='css/styles.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
16 17
        <script src="{{ url_for('static', filename='js/jquery/jquery-1.6.2.min.js') }}" type="text/javascript" charset="utf-8"></script>
	<script src="{{ url_for('static', filename='js/jquery/popup.js') }}" type="text/javascript" charset="utf-8"></script>
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
        <script type=text/javascript>
          $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
        </script>
        <script type="text/javascript">
		$(document).ready(function() {
			$('input[type="text"]').addClass("idleField");
       		$('input[type="text"]').focus(function() {
       			$(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('input[type="text"]').blur(function() {
    			$(this).removeClass("focusField").addClass("idleField");
    		    if ($.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
38 39 40 41 42
    		});		
		if($("input#fmsg").val() != ""){
		   $("#error").Popup($("input#fmsg").val(), {type:'info', duration:10000, load:true});
		}
		});		
43 44
	</script>
	{% endblock %}
45
    </head>
46
    <body>
47 48 49
	<div id="error"></div>
        <div id="page">	    
	    <input type="hidden" name="fmsg" value="{{ get_flashed_messages()[0] }}" id="fmsg" />
50 51 52
            <div id="logo">
                <a href="{{ url_for('home') }}"><img src="{{ url_for('static', filename='images/logo.png') }}" alt="" /></a>
            </div>
53 54
            <div id="header">
                <div class="block_header">
55 56
                    <a href="{{ url_for('home') }}" style="float:left;" title="Home"><img alt="" src="{{ url_for('static', filename='images/home.png') }}" /></a>
		    <div class="line"></div>
57
		    <a href="{{ url_for('curentSoftware') }}" style="float:left" title="Edit current software release"><img alt="" src="{{ url_for('static', filename='images/project.png') }}" /></a>
58
		    <div class="line"></div>
59
                    <h2 class="info">{% block title %}{% endblock %} - {{session.title}}</h2>
60 61 62
                </div>
                <div class="wmenu">
                    <ul>
63
                        <li><span class="title_software">Software</span></li>
64 65 66 67 68
                        <li><a href="{{ url_for('editSoftwareProfile') }}">Edit</a></li>
                        <li><a href="{{ url_for('runSoftwareProfile') }}">Run</a></li>
                        <li><a href="{{ url_for('viewSoftwareLog') }}">Build log</a></li>
                        <li><a href="{{ url_for('inspectSoftware') }}">Inspect</a></li>
                        <li><a href="{{ url_for('removeSoftware') }}">Remove</a></li>
69

70
                        <li class="space"><span class="title_instance">Instance</span></li>
71 72 73 74 75 76
                        <li><a href="{{ url_for('editInstanceProfile') }}">Edit</a></li>
                        <li><a href="{{ url_for('runInstanceProfile') }}">Run</a></li>
                        <li><a href="{{ url_for('viewInstanceLog') }}">Build log</a></li>
                        <li><a href="{{ url_for('inspectInstance') }}">Inspect</a></li>
                        <li><a href="{{ url_for('stopAllPartition') }}">Stop all</a></li>
                        <li><a href="{{ url_for('removeInstance') }}">Remove</a></li>
77 78 79
                    </ul>
                </div>
                <div class="clear"></div>
80
            </div>            
81
            <div id="main">
82
                <div {% if request.path == '/' %} class="home_content" {%else%} id="content" {% endif %}>
83 84 85 86 87 88 89 90 91 92 93 94
                    {% if request.path != '/' %}
                        <div class="main_head">
                        </div>
                        <div class="content">
                    {% endif %}
                    {% block body %}{% endblock %}
                    {% if request.path != '/' %}
                        </div>
                        <div class="main_foot">
                        </div>
                    {% endif %}
                </div>
95 96
            </div>
            <div id="footer">
97
                SlapOs web runner &copy; Vifib SARL 2011 - All right reserved - Creative Commons Shared Alike Non Commercial
98 99 100 101
            </div>
        </div>
    </body>
</html>