<commit_before>.grid
  .grid-cell.flat-panel
    p.page-title
      i.xo-icon-vm
      |  Add VM on
      a(ng-if="'pool' === container.type", ui-sref="pools_view({id: container.UUID})")
        |  {{container.name_label}}
      a(ng-if="'host' === container.type", ui-sref="hosts_view({id: container.UUID})")
        |  {{container.name_label}}
//- Add server panel
form.form-horizontal(ng-submit="createVM()")
  .grid
    .grid-cell.flat-panel
      p.flat-panel-title
        i.fa.fa-info-circle(style="color: #e25440;")
        |  VM info
      .form-group
        label.col-sm-3.control-label Template
        .col-sm-9
          select.form-control(ng-model="template", ng-options="template.name_label for template in templates | orderBy:natural('name_label') track by template.UUID", required="")
      .form-group
        label.col-sm-3.control-label Name
        .col-sm-9
          input.form-control(type="text", placeholder="Name of your new VM", required="", ng-model="name_label")
      .form-group
        label.col-sm-3.control-label Description
        .col-sm-9
          input.form-control(type="text", placeholder="Optional description of you new VM", ng-model="name_description")
    .grid-cell.flat-panel
      p.flat-panel-title
        i.fa.fa-dashboard(style="color: #e25440;")
        |  Performances
      .form-group
        label.col-sm-3.control-label vCPUs
        .col-sm-9
          input.form-control(type="text", placeholder="{{template.CPUs.number}}", ng-model="CPUs")
      .form-group
        label.col-sm-3.control-label RAM
        .col-sm-9
          input.form-control(type="text", placeholder="{{template.memory.size | bytesToSize}}", ng-model="memory")
  .grid
    //- Install panel
    .grid-cell.flat-panel
      p.flat-panel-title
        i.fa.fa-download(style="color: #e25440;")
        |  Install settings
      .form-group(ng-show="availableMethods.cdrom")
        label.col-sm-3.control-label ISO/DVD
        .col-sm-9
          .input-group
            span.input-group-addon
              input(
                type = 'radio'
                value = 'cdrom'
                ng-model = 'installation_method'
                required
              )
            select.form-control.disabled(
              ng-disabled="'cdrom' !== installation_method"
              ng-model="installation_cdrom"
              required
            )
              option(value = '') Please select
              optgroup(ng-repeat="SR in ISO_SRs | orderBy:natural('name_label') track by SR.UUID", ng-if="SR.VDIs.length", label="{{SR.name_label}}")
                option(ng-repeat="VDI in SR.VDIs | resolve | orderBy:natural('name_label') track by VDI.UUID", ng-value="VDI.UUID")
                  | {{VDI.name_label}}
      .form-group(ng-show="availableMethods.http || availableMethods.ftp || availableMethods.nfs")
        label.col-sm-3.control-label Network
        .col-sm-9
          .input-group
            span.input-group-addon
              input(
                type = 'radio'
                ng-model = 'installation_method'
                value = 'network'
                required
              )
            input.form-control(type="text", ng-disabled="'network' !== installation_method", placeholder="e.g: http://ftp.debian.org/debian", ng-model="installation_network")

      //- <div class="form-group"> FIXME
      //-   <label class="col-sm-3 control-label">Home server</label>
      //-   <div class="col-sm-9">
      //-     <select class="form-control">
      //-       <option>Default (auto)</option>
      //-     </select>
      //-   </div>
      //- </div>

    //- Interface panel
    .grid-cell.flat-panel
      p.flat-panel-title
        i.xo-icon-network(style="color: #e25440;")
        |  Interfaces
      table.table.table-hover
        tr
          th MAC
          th Network<commit_msg>Minor fix.<commit_after>.grid
  .grid-cell.flat-panel
    p.page-title
      i.xo-icon-vm
      |  Add VM on
      a(ng-if="'pool' === container.type", ui-sref="pools_view({id: container.UUID})")
        |  {{container.name_label}}
      a(ng-if="'host' === container.type", ui-sref="hosts_view({id: container.UUID})")
        |  {{container.name_label}}
//- Add server panel
form.form-horizontal(ng-submit="createVM()")
  .grid
    .grid-cell.flat-panel
      p.flat-panel-title
        i.fa.fa-info-circle(style="color: #e25440;")
        |  VM info
      .form-group
        label.col-sm-3.control-label Template
        .col-sm-9
          select.form-control(ng-model="template", ng-options="template.name_label for template in templates | orderBy:natural('name_label') track by template.UUID", required="")
      .form-group
        label.col-sm-3.control-label Name
        .col-sm-9
          input.form-control(type="text", placeholder="Name of your new VM", required="", ng-model="name_label")
      .form-group
        label.col-sm-3.control-label Description
        .col-sm-9
          input.form-control(type="text", placeholder="Optional description of you new VM", ng-model="name_description")
    .grid-cell.flat-panel
      p.flat-panel-title
        i.fa.fa-dashboard(style="color: #e25440;")
        |  Performances
      .form-group
        label.col-sm-3.control-label vCPUs
        .col-sm-9
          input.form-control(type="text", placeholder="{{template.CPUs.number}}", ng-model="CPUs")
      .form-group
        label.col-sm-3.control-label RAM
        .col-sm-9
          input.form-control(type="text", placeholder="{{template.memory.size | bytesToSize}}", ng-model="memory")
  .grid
    //- Install panel
    .grid-cell.flat-panel
      p.flat-panel-title
        i.fa.fa-download(style="color: #e25440;")
        |  Install settings
      .form-group(ng-show="availableMethods.cdrom")
        label.col-sm-3.control-label ISO/DVD
        .col-sm-9
          .input-group
            span.input-group-addon
              input(
                type = 'radio'
                name = 'installation_method'
                ng-model = 'installation_method'
                value = 'cdrom'
                required
              )
            select.form-control.disabled(
              ng-disabled="'cdrom' !== installation_method"
              ng-model="installation_cdrom"
              required
            )
              option(value = '') Please select
              optgroup(ng-repeat="SR in ISO_SRs | orderBy:natural('name_label') track by SR.UUID", ng-if="SR.VDIs.length", label="{{SR.name_label}}")
                option(ng-repeat="VDI in SR.VDIs | resolve | orderBy:natural('name_label') track by VDI.UUID", ng-value="VDI.UUID")
                  | {{VDI.name_label}}
      .form-group(ng-show="availableMethods.http || availableMethods.ftp || availableMethods.nfs")
        label.col-sm-3.control-label Network
        .col-sm-9
          .input-group
            span.input-group-addon
              input(
                type = 'radio'
                name = 'installation_method'
                ng-model = 'installation_method'
                value = 'network'
                required
              )
            input.form-control(type="text", ng-disabled="'network' !== installation_method", placeholder="e.g: http://ftp.debian.org/debian", ng-model="installation_network")

      //- <div class="form-group"> FIXME
      //-   <label class="col-sm-3 control-label">Home server</label>
      //-   <div class="col-sm-9">
      //-     <select class="form-control">
      //-       <option>Default (auto)</option>
      //-     </select>
      //-   </div>
      //- </div>

    //- Interface panel
    .grid-cell.flat-panel
      p.flat-panel-title
        i.xo-icon-network(style="color: #e25440;")
        |  Interfaces
      table.table.table-hover
        tr
          th MAC
          th Network
{'fraction_non_alphanumeric': 0.1511583258671445, 'fraction_numerical': 0.00921541021374632, 'mean_word_length': 1.9037532515793385, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5421236', 'n_tokens_mistral': 2457, 'n_tokens_neox': 2402, 'n_words': 380}