<commit_before>@(assetMeta: Seq[AssetMeta])(implicit flash: Flash, req: Request[AnyContent])

@import helper._
@import _root_.util.views.OptionSorter
@import _root_.util.config.MultiCollinsConfig
@import util._

@basicFormatter(asset: AssetMeta) = {
<input type="text" id="@asset.name" name="@asset.name">
  <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="@asset.description"></i></span>
}

@main("Asset Search") {
<div class="row">
  <div class="span12">

    @notice("message", Some("notice"))
    @notice("success")
    @notice("error")
    @notice("security", Some("error"))

    @form(app.routes.Resources.find(0,50,"DESC","and"), 'class -> "form-horizontal") {

    <h1>Asset Search</h1>
    <hr>

    <input type="hidden" name="operation" value="and">

    <div class="row">
      <div class="span6">
        @formField {
          @formLabel("ASSET_TAG", "Asset Tag")
          @formInput {
            <input type="text" class="focus" id="ASSET_TAG" name="ASSET_TAG" autocomplete="off">
            <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="Unique identifier for asset"></i></span>
          }
        }
        @formField {
          @formLabel("status", "Status")
          @formInput {
            <select name="status" id="status">
              <option value="" selected="selected"></option>
              @OptionSorter.sortStrings(Status.Enum.values.toSeq, Some(" ")).map { v =>
              <option value="@v._1">@v._2</option>
              }
            </select>
            <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="Asset Status (New, Incomplete, etc)"></i></span>
          }
        }
        @formField {
          @formLabel("type", "Type")
          @formInput {
            <select name="type" id="type">
              <option value="" selected="selected"></option>
              @OptionSorter.sortStrings(AssetType.Enum.values.toSeq, Some(" ")).map { v =>
              <option value="@v._1">@v._2</option>
              }
            </select>
            <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="Type of Asset (Service Chassis, Server Node, etc)"></i></span>
          }
        }
        @formField {
          @formLabel("IP_ADDRESS", "IP Address")
          @formInput {
            <input type="text" id="IP_ADDRESS" name="IP_ADDRESS">
            <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="IP address of the asset. Prefix searches are also supported."></i></span>
          }
        }
        @formField {
          @formLabel("IPMI_ADDRESS", "IPMI Address")
          @formInput {
            <input type="text" id="IPMI_ADDRESS" name="IPMI_ADDRESS" placeholder="IPMI IP Address">
          }
        }
        @formField {
          @formLabel("", "Created Between")
          @formInput {
            <div class="input-prepend date" data-type="date" data-date-format="yyyy-mm-dd" data-date="2011-11-01">
              <span class="add-on"><i class="icon-th"></i></span>
              <input class="span2" size="16" type="text" id="createdAfter" name="createdAfter" placeholder="Start" readonly>
            </div>
            and
            <div class="input-prepend date" data-type="date" data-date-format="yyyy-mm-dd" data-date="2012-09-23">
              <span class="add-on"><i class="icon-th"></i></span>
              <input class="span2" size="16" type="text" id="createdBefore" name="createdBefore" placeholder="End" readonly>
            </div>
          }
        }
        @formField {
          @formLabel("", "Updated Between")
          @formInput {
            <div class="input-prepend date" data-type="date" data-date-format="yyyy-mm-dd" data-date="2011-11-01">
              <span class="add-on"><i class="icon-th"></i></span>
              <input class="span2" size="16" type="text" id="updatedAfter" name="updatedAfter" placeholder="Start" readonly>
            </div>
            and
            <div class="input-prepend date" data-type="date" data-date-format="yyyy-mm-dd" data-date="2012-09-23">
              <span class="add-on"><i class="icon-th"></i></span>
              <input class="span2" size="16" type="text" id="updatedBefore" name="updatedBefore" placeholder="End" readonly>
            </div>
          }
        }<commit_msg>Use default field sizes for date selectors<commit_after>@(assetMeta: Seq[AssetMeta])(implicit flash: Flash, req: Request[AnyContent])

@import helper._
@import _root_.util.views.OptionSorter
@import _root_.util.config.MultiCollinsConfig
@import util._

@basicFormatter(asset: AssetMeta) = {
<input type="text" id="@asset.name" name="@asset.name">
  <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="@asset.description"></i></span>
}

@main("Asset Search") {
<div class="row">
  <div class="span12">

    @notice("message", Some("notice"))
    @notice("success")
    @notice("error")
    @notice("security", Some("error"))

    @form(app.routes.Resources.find(0,50,"DESC","and"), 'class -> "form-horizontal") {

    <h1>Asset Search</h1>
    <hr>

    <input type="hidden" name="operation" value="and">

    <div class="row">
      <div class="span6">
        @formField {
          @formLabel("ASSET_TAG", "Asset Tag")
          @formInput {
            <input type="text" class="focus" id="ASSET_TAG" name="ASSET_TAG" autocomplete="off">
            <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="Unique identifier for asset"></i></span>
          }
        }
        @formField {
          @formLabel("status", "Status")
          @formInput {
            <select name="status" id="status">
              <option value="" selected="selected"></option>
              @OptionSorter.sortStrings(Status.Enum.values.toSeq, Some(" ")).map { v =>
              <option value="@v._1">@v._2</option>
              }
            </select>
            <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="Asset Status (New, Incomplete, etc)"></i></span>
          }
        }
        @formField {
          @formLabel("type", "Type")
          @formInput {
            <select name="type" id="type">
              <option value="" selected="selected"></option>
              @OptionSorter.sortStrings(AssetType.Enum.values.toSeq, Some(" ")).map { v =>
              <option value="@v._1">@v._2</option>
              }
            </select>
            <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="Type of Asset (Service Chassis, Server Node, etc)"></i></span>
          }
        }
        @formField {
          @formLabel("IP_ADDRESS", "IP Address")
          @formInput {
            <input type="text" id="IP_ADDRESS" name="IP_ADDRESS">
            <span class="help-inline"><i class="icon-question-sign" data-rel="tooltip" title="IP address of the asset. Prefix searches are also supported."></i></span>
          }
        }
        @formField {
          @formLabel("IPMI_ADDRESS", "IPMI Address")
          @formInput {
            <input type="text" id="IPMI_ADDRESS" name="IPMI_ADDRESS" placeholder="IPMI IP Address">
          }
        }
        @formField {
          @formLabel("", "Created Between")
          @formInput {
            <div class="input-prepend date" data-type="date" data-date-format="yyyy-mm-dd" data-date="2011-11-01">
              <span class="add-on"><i class="icon-th"></i></span>
              <input type="text" id="createdAfter" name="createdAfter" placeholder="Start" readonly>
            </div>
            and
            <div class="input-prepend date" data-type="date" data-date-format="yyyy-mm-dd" data-date="2012-09-23">
              <span class="add-on"><i class="icon-th"></i></span>
              <input type="text" id="createdBefore" name="createdBefore" placeholder="End" readonly>
            </div>
          }
        }
        @formField {
          @formLabel("", "Updated Between")
          @formInput {
            <div class="input-prepend date" data-type="date" data-date-format="yyyy-mm-dd" data-date="2011-11-01">
              <span class="add-on"><i class="icon-th"></i></span>
              <input type="text" id="updatedAfter" name="updatedAfter" placeholder="Start" readonly>
            </div>
            and
            <div class="input-prepend date" data-type="date" data-date-format="yyyy-mm-dd" data-date="2012-09-23">
              <span class="add-on"><i class="icon-th"></i></span>
              <input type="text" id="updatedBefore" name="updatedBefore" placeholder="End" readonly>
            </div>
          }
        }
{'fraction_non_alphanumeric': 0.177609716970322, 'fraction_numerical': 0.011458691417440128, 'mean_word_length': 2.4648670107185393, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 153, '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': '4315284', 'n_tokens_mistral': 2654, 'n_tokens_neox': 2568, 'n_words': 486}