211 lines
10 KiB
HTML
211 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<link href="https://cdn.staticfile.org/twitter-bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
|
|
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
|
|
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
|
|
<link rel="stylesheet"
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/css/bootstrap-select.min.css">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/js/bootstrap-select.min.js"></script>
|
|
<link href="../static/styles.css" rel="stylesheet" type="text/css">
|
|
<script src="../static/main.js" type="text/javascript"></script>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="modal fade" id="create_modal" tabindex="-1" role="dialog" aria-labelledby="createModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h4 class="modal-title" id="createModalLabel"></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group row">
|
|
<label for="create_name" class="col-sm-3 control-label">Name: </label>
|
|
<div class="col-sm-6">
|
|
<input type="text" class="form-control" id="create_name"
|
|
value="">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
<button type="button" id="create_btn" data-id="" class="btn btn-primary">OK
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="load_scenario_modal" tabindex="-1" role="dialog" aria-labelledby="loadScenarioModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title" id="loadScenarioModalLabel">Load Default Scenario Settings</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group row">
|
|
<label for="load_scenario_name" class="col-sm-3 control-label">Default Scenario Setting: </label>
|
|
<div class="dropdown col-sm-6">
|
|
<select class="selectpicker" data-width="auto" id="load_scenario_name">
|
|
{% if scenarios[0] %}
|
|
{% for sc in scenarios[0] %}
|
|
<option value="{{sc}}">{{sc}}</option>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="load_scenario_name2" class="col-sm-3 control-label">Scenario Setting Name: </label>
|
|
<div class="col-sm-6">
|
|
<input type="text" class="form-control" id="load_scenario_name2"
|
|
value="{{scenarios[0][0] if scenarios[0] else ''}}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
<button type="button" id="load_scenario_btn" data-id="scenario" class="btn btn-primary">OK
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="load_launch_modal" tabindex="-1" role="dialog" aria-labelledby="loadLaunchModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title" id="loadLaunchModalLabel">Load Default Launch Settings</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group row">
|
|
<label for="load_launch_name" class="col-sm-3 control-label">Default Launch Setting: </label>
|
|
<div class="dropdown col-sm-6">
|
|
<select class="selectpicker" data-width="auto" id="load_launch_name">
|
|
{% if launches[0] %}
|
|
{% for lc in launches[0] %}
|
|
<option value="{{lc}}">{{lc}}</option>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="load_launch_name2" class="col-sm-3 control-label">Launch Setting Name: </label>
|
|
<div class="col-sm-6">
|
|
<input type="text" class="form-control" id="load_launch_name2"
|
|
value="{{launches[0][0] if launches[0] else ''}}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
<button type="button" id="load_launch_btn" data-id="launch" class="btn btn-primary">OK
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<nav class="navbar navbar-inverse">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<a class="navbar-brand" href="{{ url_for('CONFIG_APP.scenarios') }}">ACRN Configurator</a>
|
|
</div>
|
|
<ul class="nav navbar-nav">
|
|
<li class="dropdown">
|
|
<a href="{{ url_for('CONFIG_APP.scenarios') }}">
|
|
Scenario Settings<span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
{% if board_info %}
|
|
<li><a href="" data-toggle="modal" data-target="#create_modal" class="create_menu"
|
|
data-id="scenario">Create a new scenario</a></li>
|
|
<li><a href="" data-toggle="modal" data-target="#load_scenario_modal" class="load_menu"
|
|
data-id="scenario">Load a default scenario</a></li>
|
|
<small class="text-muted">scenario setting list</small>
|
|
{% for sc in scenarios[1] %}
|
|
<li><a href="{{ url_for('CONFIG_APP.scenario', scenario_name=sc) }}">{{sc}}</a></li>
|
|
{% endfor %}
|
|
{% else %}
|
|
<text class="form-control" id="err_msg" data-toggle="tooltip"
|
|
title="No board selected or not supported board">No Setting
|
|
</text>
|
|
{% endif %}
|
|
</ul>
|
|
</li>
|
|
<li class="dropdown">
|
|
<a href="{{ url_for('CONFIG_APP.launches') }}">Launch Settings <span
|
|
class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
{% if board_info %}
|
|
<li><a href="" data-toggle="modal" data-target="#create_modal" class="create_menu"
|
|
data-id="launch">Create a new Launch script</a></li>
|
|
<li><a href="" data-toggle="modal" data-target="#load_launch_modal" class="load_menu"
|
|
data-id="launch">Load a default launch script</a></li>
|
|
<small class="text-muted">launch setting list</small>
|
|
{% for lc in launches[1] %}
|
|
<li><a href="{{ url_for('CONFIG_APP.launch', launch_name=lc) }}">{{lc}}</a></li>
|
|
{% endfor %}
|
|
{% else %}
|
|
<text class="form-control" id="err_msg" data-toggle="tooltip"
|
|
title="No board selected or not supported board">No Setting
|
|
</text>
|
|
{% endif %}
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
<form class="form-horizontal" action="" enctype="multipart/form-data" method='POST'>
|
|
<div class="form-group">
|
|
<label class="col-sm-1 control-label" style="text-align: left;"> Board info:</label>
|
|
<div class="col-sm-2">
|
|
<div class="dropdown">
|
|
<select class="selectpicker" id="board_info">
|
|
<option disabled selected value> -- Select an option -- </option>
|
|
{% for bi in board_info_list %}
|
|
{% if bi==board_info %}
|
|
<option value="{{bi}}" selected="selected">{{bi}}</option>
|
|
{% else %}
|
|
<option value="{{bi}}">{{bi}}</option>
|
|
{% endif%}
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-1 control-label"> Board name:</label>
|
|
<text class="col-sm-2 control-label" id="board_type" style="text-align: left;">{{board_type if board_type != None else ''}}</text>
|
|
<div class="col-sm-6">
|
|
<form action="" enctype="multipart/form-data" method='POST'>
|
|
<label for="board_info_file" class="custom-file-upload btn btn-primary" id="board_info_file2"
|
|
style="border: 1px solid #ccc; display: inline-block; padding: 6px 12px;
|
|
cursor: pointer; border-radius:5px; ">
|
|
Import Board XML</label>
|
|
<input type="file" name="file" id="board_info_file" class="col-sm-6 btn btn-primary"
|
|
style="display: none;">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-1"></label>
|
|
<text class="col-sm-2 control-label" id="bios_info" style="white-space: pre-line">{{bios_info if bios_info != None else ''}}</text>
|
|
<label class="col-sm-1"></label>
|
|
<text class="col-sm-2" id="base_board_info" style="white-space: pre-line">{{base_board_info if base_board_info != None else ''}}</text>
|
|
</div>
|
|
</form>
|
|
<hr class="col-sm-12">
|
|
|
|
{% block body_content %}
|
|
|
|
{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|