<commit_before>{% extends "layouts/content-bootstrap.html" %}

{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/jquery.steps.css"/>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava_scheduler_app/css/job-wizard.css"/>
{% endblock %}

{% block content %}

<h2>Job Submission Wizard</h2>

{% if is_authorized %}

<form id="job_wizard" action="{% url 'lava.scheduler.job.submit' %}" method="post">
  {% csrf_token %}
  <input type="hidden" name="wizard" value="true" />
 <h1>Basic details</h1>

 <fieldset>
   <legend>Basic job details</legend>

   <div class="media col-xs-4" style="clear: both;">
     <label for="job_name" class="control-label">Job name *</label>
     <input id="job_name" name="job_name" required type="text" class="required form-control">
   </div>

   <div class="media col-xs-4" style="clear: both;">
     <label for="timeout" class="control-label">Timeout *</label>
     <input id="timeout" name="timeout" required type="text" class="required form-control" value="18000">
   </div>

   <div class="media col-xs-4" style="clear: both;">
     <label for="notify" class="control-label">Notify on incomplete</label>
     <input id="notify" name="notify" type="text" class="form-control">
   </div>

 </fieldset>

 <h1>Boot image</h1>

 <fieldset>
   <legend style="margin-bottom: 0;">Select boot image</legend>

   <div class="col-xs-4" style="clear: both;">
     <label for="boot_type" class="control-label">Image type</label>
     <select id="boot_type" name="boot_type" class="form-control">
       <option value="linaro_image">Linaro Image</option>
       <option value="linaro_hwpack">Linaro hwpack+rootfs</option>
       <option value="linaro_kernel">Linaro kernel</option>
       <option value="android_image">Linaro Android Image</option>
     </select>
   </div>

   <div id="image_url_container" class="media col-xs-6" style="clear: both;">
     <label for="image_url" class="control-label">Image URL *</label>
     <input id="image_url" name="image_url" required type="text" class="required form-control source_url">
   </div>

   <div id="hwpack_container" class="media col-xs-6" style="clear: both;">
     <label for="hwpack_url" class="control-label">Hwpack URL *</label>
     <input id="hwpack_url" name="hwpack_url" required type="text" class="required form-control source_url">
   </div>

   <div id="rootfs_container" class="media col-xs-6" style="clear: both;">
     <label for="rootfs_url" class="control-label">Rootfs URL *</label>
     <input id="rootfs_url" name="rootfs_url" required type="text" class="required form-control source_url">
   </div>

   <div id="android_boot_container" class="media col-xs-6" style="clear: both;">
     <label for="android_boot" class="control-label">Boot URL *</label>
     <input id="android_boot" name="android_boot" required type="text" class="required form-control source_url">
   </div>

   <div id="android_data_container" class="media col-xs-6" style="clear: both;">
     <label for="android_data" class="control-label">Data URL *</label>
     <input id="android_data" name="android_data" required type="text" class="required form-control source_url">
   </div>

   <div id="android_system_container" class="media col-xs-6" style="clear: both;">
     <label for="android_system" class="control-label">System URL *</label>
     <input id="android_system" name="android_system" required type="text" class="required form-control source_url">
   </div>

   <div id="kernel_container" class="media col-xs-6" style="clear: both;">
     <label for="kernel" class="control-label">Kernel URL *</label>
     <input id="kernel" name="kernel" required type="text" class="required form-control source_url">
   </div>

   <div id="ramdisk_container" class="media col-xs-6" style="clear: both;">
     <label for="ramdisk" class="control-label">Ramdisk URL *</label>
     <input id="ramdisk" name="ramdisk" required type="text" class="required form-control source_url">
   </div>

   <div id="dtb_container" class="media col-xs-6" style="clear: both;">
     <label for="dtb" class="control-label">Device tree blob *</label>
     <input id="dtb" name="dtb" required type="text" class="required form-control source_url">
   </div>

   <div id="kernel_rootfs_container" class="media col-xs-6" style="clear: both;">
     <label for="kernel_rootfs" class="control-label">Rootfs URL *</label>
     <input id="kernel_rootfs" name="kernel_rootfs" required type="text" class="required form-control source_url">
   </div>

   <div class="media col-xs-6" style="clear: both;">
     <label for="boot_options" class="control-label">Boot options</label><commit_msg>Fix optional parameters in submission wizard for linaro kernel image setup.<commit_after>{% extends "layouts/content-bootstrap.html" %}

{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/jquery.steps.css"/>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava_scheduler_app/css/job-wizard.css"/>
{% endblock %}

{% block content %}

<h2>Job Submission Wizard</h2>

{% if is_authorized %}

<form id="job_wizard" action="{% url 'lava.scheduler.job.submit' %}" method="post">
  {% csrf_token %}
  <input type="hidden" name="wizard" value="true" />
 <h1>Basic details</h1>

 <fieldset>
   <legend>Basic job details</legend>

   <div class="media col-xs-4" style="clear: both;">
     <label for="job_name" class="control-label">Job name *</label>
     <input id="job_name" name="job_name" required type="text" class="required form-control">
   </div>

   <div class="media col-xs-4" style="clear: both;">
     <label for="timeout" class="control-label">Timeout *</label>
     <input id="timeout" name="timeout" required type="text" class="required form-control" value="18000">
   </div>

   <div class="media col-xs-4" style="clear: both;">
     <label for="notify" class="control-label">Notify on incomplete</label>
     <input id="notify" name="notify" type="text" class="form-control">
   </div>

 </fieldset>

 <h1>Boot image</h1>
 <fieldset>
   <legend style="margin-bottom: 0;">Select boot image parameter options</legend>

   <div class="col-xs-4" style="clear: both;">
     <label for="boot_type" class="control-label">Image type</label> (Only options which are required or optional for each image type are supported.)
     <select id="boot_type" name="boot_type" class="form-control">
       <option value="linaro_image">Linaro Image</option>
       <option value="linaro_hwpack">Linaro hwpack+rootfs</option>
       <option value="linaro_kernel">Linaro kernel</option>
       <option value="android_image">Linaro Android Image</option>
     </select>
   </div>

   <div id="image_url_container" class="media col-xs-6" style="clear: both;">
     <label for="image_url" class="control-label">Image URL *</label> (Required for Linaro Image)
     <input id="image_url" name="image_url" required type="text" class="required form-control source_url">
   </div>

   <div id="hwpack_container" class="media col-xs-6" style="clear: both;">
     <label for="hwpack_url" class="control-label">Hwpack URL *</label> (Required for Linaro hwpack+rootfs)
     <input id="hwpack_url" name="hwpack_url" required type="text" class="required form-control source_url">
   </div>

   <div id="rootfs_container" class="media col-xs-6" style="clear: both;">
     <label for="rootfs_url" class="control-label">Rootfs URL *</label> (Required for Linaro hwpack+rootfs, optional for Linaro kernel)
     <input id="rootfs_url" name="rootfs_url" required type="text" class="required form-control source_url">
   </div>

   <div id="android_boot_container" class="media col-xs-6" style="clear: both;">
     <label for="android_boot" class="control-label">Boot URL *</label> (Required for Linaro Android Image)
     <input id="android_boot" name="android_boot" required type="text" class="required form-control source_url">
   </div>

   <div id="android_data_container" class="media col-xs-6" style="clear: both;">
     <label for="android_data" class="control-label">Data URL *</label> (Required for Linaro Android Image)
     <input id="android_data" name="android_data" required type="text" class="required form-control source_url">
   </div>

   <div id="android_system_container" class="media col-xs-6" style="clear: both;">
     <label for="android_system" class="control-label">System URL *</label> (Required for Linaro Android Image)
     <input id="android_system" name="android_system" required type="text" class="required form-control source_url">
   </div>

   <div id="kernel_container" class="media col-xs-6" style="clear: both;">
     <label for="kernel" class="control-label">Kernel URL *</label> (Required for Linaro kernel)
     <input id="kernel" name="kernel" required type="text" class="required form-control source_url">
   </div>

   <div id="ramdisk_container" class="media col-xs-6" style="clear: both;">
     <label for="ramdisk" class="control-label">Ramdisk URL</label> (Optional for Linaro kernel)
     <input id="ramdisk" name="ramdisk" type="text" class="form-control source_url">
   </div>

   <div id="dtb_container" class="media col-xs-6" style="clear: both;">
     <label for="dtb" class="control-label">Device tree blob</label> (Optional for Linaro kernel)
     <input id="dtb" name="dtb" type="text" class="form-control source_url">
   </div>

   <div id="kernel_rootfs_container" class="media col-xs-6" style="clear: both;">
     <label for="kernel_rootfs" class="control-label">Rootfs URL *</label> (Required for Linaro hwpack+rootfs, optional for Linaro kernel)
     <input id="kernel_rootfs" name="kernel_rootfs" type="text" class="form-control source_url">
   </div>

   <div class="media col-xs-6" style="clear: both;">
     <label for="boot_options" class="control-label">Boot options</label>
{'fraction_non_alphanumeric': 0.17230175652350493, 'fraction_numerical': 0.005482790130977765, 'mean_word_length': 5.072749691738594, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 0, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4332148', 'n_tokens_mistral': 3229, 'n_tokens_neox': 3114, 'n_words': 747}