<commit_before>{{! -------------------------------------------------------------------------- }}
{{! Copyright 2002-2021, OpenNebula Project, OpenNebula Systems                }}
{{!                                                                            }}
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
{{! not use this file except in compliance with the License. You may obtain    }}
{{! a copy of the License at                                                   }}
{{!                                                                            }}
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
{{!                                                                            }}
{{! Unless required by applicable law or agreed to in writing, software        }}
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
{{! See the License for the specific language governing permissions and        }}
{{! limitations under the License.                                             }}
{{! -------------------------------------------------------------------------- }}
<textarea id="templateStr" hidden></textarea>
<div class="row">
  <div class="large-12 columns">
    <input id="{{diskTabId}}radioImage" type="radio" name="{{diskTabId}}" value="image" checked>
    <label for="{{diskTabId}}radioImage">{{tr "Image"}}</label>
    <input id="{{diskTabId}}radioVolatile" type="radio" name="{{diskTabId}}" value="volatile">
    <label for="{{diskTabId}}radioVolatile">{{tr "Volatile disk"}}</label>
  </div>
</div>
<div id="disk_type" class="image">
  {{{imageTableSelectHTML}}}
  <br>
  <div id="image_values">
     {{#advancedSection (tr "Advanced options") }}
    <fieldset>
      <legend>{{tr "Image"}}</legend>
      <div class="row">
        <div class="medium-6 columns">
          <label for="IMAGE_ID">
            {{tr "Image ID"}}
          </label>
          <input type="text" wizard_field="IMAGE_ID" id="IMAGE_ID" name="IMAGE_ID"/>
        </div>
        <div class="medium-6 columns">
          <label for="IMAGE">
            {{tr "Image name"}}
          </label>
          <input type="text" wizard_field="IMAGE" id="IMAGE" name="IMAGE"/>
        </div>
      </div>
      <div class="row">
        <div class="medium-6 columns">
          <label for="IMAGE_UID">
            {{tr "Image owner's user ID"}}
          </label>
          <input type="text" wizard_field="IMAGE_UID" id="IMAGE_UID" name="IMAGE_UID"/>
        </div>
        <div class="medium-6 columns">
          <label for="IMAGE_UNAME">
            {{tr "Image owner's user name"}}
          </label>
          <input type="text" wizard_field="IMAGE_UNAME" id="IMAGE_UNAME" name="IMAGE_UNAME"/>
        </div>
      </div>
    </fieldset>
  {{> ./options volatile=false }}
  {{/advancedSection}}
  </div>
</div>
<div id="disk_type" class="volatile" style="display: none;">
  <div class="row">
    <div class="medium-6 columns">
      <label for="SIZE">
        {{tr "Size"}}
      </label>
      <div class="input-group mb_input_wrapper">
        <div class="input-group-field">
          <input wizard_field="SIZE" type="number" id="SIZE" name="SIZE"/>
        </div>
        <div class="input-group-button">
          <select class="mb_input_unit">
            <option value="MB">{{tr "MB"}}</option>
            <option value="GB" selected>{{tr "GB"}}</option>
            <option value="TB">{{tr "TB"}}</option>
          </select>
        </div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="medium-6 columns">
      <label for="TYPE">
        {{tr "Disk type"}}
      </label>
      <select class="hypervisor only_kvm" wizard_field="TYPE" id="TYPE_KVM" name="type">
        <option value="fs">{{tr "FS"}}</option>
        <option value="swap">{{tr "Swap"}}</option>
      </select>
      <select class="hypervisor only_vcenter" style="display: none" wizard_field="TYPE" id="TYPE_VCENTER" name="type">
        <option value="fs">{{tr "FS"}}</option>
      </select>
    </div>
    <div class="medium-6 columns">
      <label for="TYPE">
        {{tr "Filesystem"}}
      </label>
      <select class="hypervisor only_kvm" wizard_field="FS" id="FS_KVM" name="type">
        {{{optionsFilesystem}}}
      </select>
    </div>
    <div class="medium-6 columns">
      <label for="FORMAT">
        {{tr "Format"}}
      </label>
      <select class="hypervisor only_kvm" wizard_field="FORMAT" name="format" id="FORMAT_KVM">
        <option value="raw" selected="selected">raw</option>
        <option value="qcow2">qcow2</option>
      </select>
      <select class="hypervisor only_vcenter" style="display: none" wizard_field="FORMAT" name="format" id="FORMAT_VCENTER">
        <option value="raw" selected="selected">raw</option>
      </select>
    </div>
  </div>
  <br>
  {{#isAdvancedEnabled "show_attach_disk_advanced"}}
  {{#advancedSection (tr "Advanced options") }}
  {{> ./options volatile=true }}
  {{/advancedSection}}<commit_msg>M #~: hide label attach disk (#1064)<commit_after>{{! -------------------------------------------------------------------------- }}
{{! Copyright 2002-2021, OpenNebula Project, OpenNebula Systems                }}
{{!                                                                            }}
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
{{! not use this file except in compliance with the License. You may obtain    }}
{{! a copy of the License at                                                   }}
{{!                                                                            }}
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
{{!                                                                            }}
{{! Unless required by applicable law or agreed to in writing, software        }}
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
{{! See the License for the specific language governing permissions and        }}
{{! limitations under the License.                                             }}
{{! -------------------------------------------------------------------------- }}
<textarea id="templateStr" hidden></textarea>
<div class="row">
  <div class="large-12 columns">
    <input id="{{diskTabId}}radioImage" type="radio" name="{{diskTabId}}" value="image" checked>
    <label for="{{diskTabId}}radioImage">{{tr "Image"}}</label>
    <input id="{{diskTabId}}radioVolatile" type="radio" name="{{diskTabId}}" value="volatile">
    <label for="{{diskTabId}}radioVolatile">{{tr "Volatile disk"}}</label>
  </div>
</div>
<div id="disk_type" class="image">
  {{{imageTableSelectHTML}}}
  <br>
  <div id="image_values">
     {{#advancedSection (tr "Advanced options") }}
    <fieldset>
      <legend>{{tr "Image"}}</legend>
      <div class="row">
        <div class="medium-6 columns">
          <label for="IMAGE_ID">
            {{tr "Image ID"}}
          </label>
          <input type="text" wizard_field="IMAGE_ID" id="IMAGE_ID" name="IMAGE_ID"/>
        </div>
        <div class="medium-6 columns">
          <label for="IMAGE">
            {{tr "Image name"}}
          </label>
          <input type="text" wizard_field="IMAGE" id="IMAGE" name="IMAGE"/>
        </div>
      </div>
      <div class="row">
        <div class="medium-6 columns">
          <label for="IMAGE_UID">
            {{tr "Image owner's user ID"}}
          </label>
          <input type="text" wizard_field="IMAGE_UID" id="IMAGE_UID" name="IMAGE_UID"/>
        </div>
        <div class="medium-6 columns">
          <label for="IMAGE_UNAME">
            {{tr "Image owner's user name"}}
          </label>
          <input type="text" wizard_field="IMAGE_UNAME" id="IMAGE_UNAME" name="IMAGE_UNAME"/>
        </div>
      </div>
    </fieldset>
  {{> ./options volatile=false }}
  {{/advancedSection}}
  </div>
</div>
<div id="disk_type" class="volatile" style="display: none;">
  <div class="row">
    <div class="medium-6 columns">
      <label for="SIZE">
        {{tr "Size"}}
      </label>
      <div class="input-group mb_input_wrapper">
        <div class="input-group-field">
          <input wizard_field="SIZE" type="number" id="SIZE" name="SIZE"/>
        </div>
        <div class="input-group-button">
          <select class="mb_input_unit">
            <option value="MB">{{tr "MB"}}</option>
            <option value="GB" selected>{{tr "GB"}}</option>
            <option value="TB">{{tr "TB"}}</option>
          </select>
        </div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="medium-6 columns">
      <label for="TYPE">
        {{tr "Disk type"}}
      </label>
      <select class="hypervisor only_kvm" wizard_field="TYPE" id="TYPE_KVM" name="type">
        <option value="fs">{{tr "FS"}}</option>
        <option value="swap">{{tr "Swap"}}</option>
      </select>
      <select class="hypervisor only_vcenter" style="display: none" wizard_field="TYPE" id="TYPE_VCENTER" name="type">
        <option value="fs">{{tr "FS"}}</option>
      </select>
    </div>
    <div class="medium-6 columns">
      <label for="TYPE" class="hypervisor only_kvm">
        {{tr "Filesystem"}}
      </label>
      <select class="hypervisor only_kvm" wizard_field="FS" id="FS_KVM" name="type">
        {{{optionsFilesystem}}}
      </select>
    </div>
    <div class="medium-6 columns">
      <label for="FORMAT">
        {{tr "Format"}}
      </label>
      <select class="hypervisor only_kvm" wizard_field="FORMAT" name="format" id="FORMAT_KVM">
        <option value="raw" selected="selected">raw</option>
        <option value="qcow2">qcow2</option>
      </select>
      <select class="hypervisor only_vcenter" style="display: none" wizard_field="FORMAT" name="format" id="FORMAT_VCENTER">
        <option value="raw" selected="selected">raw</option>
      </select>
    </div>
  </div>
  <br>
  {{#isAdvancedEnabled "show_attach_disk_advanced"}}
  {{#advancedSection (tr "Advanced options") }}
  {{> ./options volatile=true }}
  {{/advancedSection}}
{'fraction_non_alphanumeric': 0.1969329321556828, 'fraction_numerical': 0.005047073667863729, 'mean_word_length': 2.0675796367966655, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 215, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3442129', 'n_tokens_mistral': 2972, 'n_tokens_neox': 2866, 'n_words': 698}