<!--
-
- Copyright (C) 2019 Xilinx, Inc.  All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of
- this software and associated documentation files (the "Software"), to deal in
- the Software without restriction, including without limitation the rights to
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- of the Software, and to permit persons to whom the Software is furnished to do
- so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
-
- Author: Michael Chyziak <chyziak@xilinx.com>
-
-->


{% extends "Default/default.html" %}
{% block content %}

<div class="page-header">
  <h1 class="display-4"><b>{% block title %}dnf Package Update{% endblock %}</b></h1>
</div>

<div class="alert alert-danger alert-dismissable" style="display: {{ no_wifi }}">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  <strong>ERROR: Must be connected to Wi-Fi to update packages</strong>
</div>
<div class="alert alert-success alert-dismissable" style="display: {{ updates_done }}">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  <strong>Updated selected packages</strong>
</div>

<h2>Information</h2>
<div class="well">
  <p>Choose what packages should be updated in the table below. Once selected press the Update button at the bottom of the page. You must be connected to a Wi-Fi network to update.</p> 
</div>

<form action="dnf_update.html" method="post">
<table class="table table-bordered">
  <thead>
    <tr>
      <th>Package</th>
      <th>Description</th>
      <th>Update?</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Petalinux 96Boards Sensors</td>
      <td>Installs required packages to run 96boards sensor mezzanine card examples</td>
      <td><input type="checkbox" name="96boards" value="packagegroup-petalinux-96boards-sensors"></td>
    </tr>
    <tr>
      <td>Petalinux Audio</td>
      <td>Petalinux ASLA supported packages</td>
      <td><input type="checkbox" name="audio" value="packagegroup-petalinux-audio"></td>
    </tr>
    <tr>
      <td>Petalinux Benchmarks</td>
      <td>Petalinux packages for benchmarks(hdparm, iotop, nicstat, lmbench, iptarf, net-snmp, lsof, babeltrace, sysstat, dstat, dhrystone, linpack, whetstone)</td>
      <td><input type="checkbox" name="benchmaks" value="packagegroup-petalinux-benchmarks"></td>
    </tr>
    <tr>
      <td>Petalinux GStreamer</td>
      <td>Petalinux GStreamer supported packages</td>
      <td><input type="checkbox" name="gstreamer" value="packagegroup-petalinux-gstreamer"></td>
    </tr>
    <tr>
      <td>Petalinux mraa</td>
      <td>Petalinux mraa and upm supported packages</td>
      <td><input type="checkbox" name="mraa" value="packagegroup-petalinux-mraa"></td>
    </tr>
    <tr>
      <td>Petalinux OpenAMP</td>
      <td>Petalinux OpenAMP supported packages</td>
      <td><input type="checkbox" name="openamp" value="packagegroup-petalinux-openamp"></td>
    </tr>
    <tr>
      <td>Petalinux OpenCV</td>
      <td>Petalinux OpenCV supported packages</td>
      <td><input type="checkbox" name="opencv" value="packagegroup-petalinux-opencv"></td>
    </tr>
    <tr>
      <td>Petalinux Qt</td>
      <td>Petalinux Qt supported packages</td>
      <td><input type="checkbox" name="qt" value="packagegroup-petalinux-qt"></td>
    </tr>
    <tr>
      <td>Petalinux X11</td>
      <td>Petalinux X11 related packages</td>
      <td><input type="checkbox" name="x11" value="packagegroup-petalinux-x11"></td>
    </tr>
    <tr>
    <td>Petalinux Xfce</td>
      <td>Petalinux Xfce related packages</td>
      <td><input type="checkbox" name="xfce" value="packagegroup-petalinux-xfce"></td>
    </tr>
    <tr>
      <td>Petalinux Ultra96 Startup Pages</td>
      <td>Required packages for Ultra96 Startup Pages</td>
      <td><input type="checkbox" name="startup" value="packagegroup-petalinux-ultra96-webapp"></td>
    </tr>
    <tr>
      <td>Petalinux</td>
      <td>All packages available in Petalinux</td>
      <td><input type="checkbox" name="petalinux" value="packagegroup-petalinux"></td>
    </tr>
    <tr>
      <td>Self Hosted</td>
      <td>Petalinux self hosted tools packages</td>
      <td><input type="checkbox" name="self" value="packagegroup-self-hosted"></td>
    </tr>
  </tbody>
</table>
<div>
  <button type="submit" class="btn btn-default">Update</button>
</div>
</form>
        
{% endblock %}
