<commit_before><div>

  <p [hidden]="data?.srs"><sub class="text-danger">{{'ADDLAYERS.Vector.note' | translateHs : {app} }}</sub></p>

  <div *ngIf="data.type === 'raster'"
    class="alert alert-warning d-flex align-items-center mt-2 justify-content-between">
    <p class="m-0"> {{'ADDLAYERS.rasterImageryWith' | translateHs : {app} }}</p>
  </div>

  <div class="form-floating mb-3">
    <input [placeholder]="'ADDDATA.URL.submitLayerName' | translateHs : {app} " class="form-control" name="name"
      [(ngModel)]="data.name" (ngModelChange)="data.title = data.name" />
    <label for="name" class="capabilities_label control-label">{{'COMMON.name' | translateHs : {app} }}</label>

  </div>
  <div class="form-floating mb-3">
    <textarea class="form-control" id='hs-ows-abstract'
      [placeholder]="'COMMON.fillInDescriptive' | translateHs : {app} " name="abstract" [(ngModel)]="data.abstract">
                              </textarea>
    <label for="absctract" class="capabilities_label control-label">{{'COMMON.abstract' | translateHs : {app} }}</label>

  </div>
  <div class="form-group" *ngIf="data.dataType === 'shp' || data.type === 'raster'">
    <div class="input-group">
      <span class="input-group-text control-label">{{'ADDLAYERS.srs' | translateHs : {app} }}</span>
      <select class="form-control form-select" [(ngModel)]="data.srs" name="srs">
        <option [ngValue]="null" disabled selected hidden>{{'ADDLAYERS.SRSRequired' | translateHs : {app} }}</option>
        <option *ngFor="let epsg of hsLaymanService.supportedCRRList | filter: srsFilter" [ngValue]="epsg">{{epsg}}
        </option>
      </select>
    </div>
  </div>

  <ng-container *ngIf="hsAddDataCommonFileService.isAuthorized() && data.saveAvailable">
    <!-- TODO: Remove function call from template -->
    <hs-save-to-layman [data]="data" [app]="app"></hs-save-to-layman>
  </ng-container>
  <ng-container *ngIf="data.type === 'shp' || data.type === 'raster' || data.dataType === 'geojson'">
    <div class="d-flex justify-content-between align-items-center">
      <p class="ps-4">{{'ADDLAYERS.SHP.SLDStyleFile' | translateHs : {app} }}</p>
      <label class="dropzone-label">
        <input name="file" type="file" accept=".sld" class="inputfile"
          (change)="read({fileList: $event.target.files, uploader: 'sld', dropped: false})" id="sld">
        <label for="sld" class="p-2 rounded" style="font-size: 1em;" [ngClass]="data.sld ? 'bg-success' : 'bg-primary'">
          <i class="icon-uploadalt p-2"></i>{{sldTitle()}}</label>
      </label>
    </div><commit_msg>fix: Show SRS input for SHP file type<commit_after><div>

  <p [hidden]="data?.srs"><sub class="text-danger">{{'ADDLAYERS.Vector.note' | translateHs : {app} }}</sub></p>

  <div *ngIf="data.type === 'raster'"
    class="alert alert-warning d-flex align-items-center mt-2 justify-content-between">
    <p class="m-0"> {{'ADDLAYERS.rasterImageryWith' | translateHs : {app} }}</p>
  </div>

  <div class="form-floating mb-3">
    <input [placeholder]="'ADDDATA.URL.submitLayerName' | translateHs : {app} " class="form-control" name="name"
      [(ngModel)]="data.name" (ngModelChange)="data.title = data.name" />
    <label for="name" class="capabilities_label control-label">{{'COMMON.name' | translateHs : {app} }}</label>

  </div>
  <div class="form-floating mb-3">
    <textarea class="form-control" id='hs-ows-abstract'
      [placeholder]="'COMMON.fillInDescriptive' | translateHs : {app} " name="abstract" [(ngModel)]="data.abstract">
                              </textarea>
    <label for="absctract" class="capabilities_label control-label">{{'COMMON.abstract' | translateHs : {app} }}</label>

  </div>
  <div class="form-group" *ngIf="data.type === 'shp' || data.type === 'raster'">
    <div class="input-group">
      <span class="input-group-text control-label">{{'ADDLAYERS.srs' | translateHs : {app} }}</span>
      <select class="form-control form-select" [(ngModel)]="data.srs" name="srs">
        <option [ngValue]="null" disabled selected hidden>{{'ADDLAYERS.SRSRequired' | translateHs : {app} }}</option>
        <option *ngFor="let epsg of hsLaymanService.supportedCRRList | filter: srsFilter" [ngValue]="epsg">{{epsg}}
        </option>
      </select>
    </div>
  </div>

  <ng-container *ngIf="hsAddDataCommonFileService.isAuthorized() && data.saveAvailable">
    <!-- TODO: Remove function call from template -->
    <hs-save-to-layman [data]="data" [app]="app"></hs-save-to-layman>
  </ng-container>
  <ng-container *ngIf="data.type === 'shp' || data.type === 'raster' || data.dataType === 'geojson'">
    <div class="d-flex justify-content-between align-items-center">
      <p class="ps-4">{{'ADDLAYERS.SHP.SLDStyleFile' | translateHs : {app} }}</p>
      <label class="dropzone-label">
        <input name="file" type="file" accept=".sld" class="inputfile"
          (change)="read({fileList: $event.target.files, uploader: 'sld', dropped: false})" id="sld">
        <label for="sld" class="p-2 rounded" style="font-size: 1em;" [ngClass]="data.sld ? 'bg-success' : 'bg-primary'">
          <i class="icon-uploadalt p-2"></i>{{sldTitle()}}</label>
      </label>
    </div>
{'fraction_non_alphanumeric': 0.21199845679012347, 'fraction_numerical': 0.0030864197530864196, 'mean_word_length': 3.976007677543186, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '3756031', 'n_tokens_mistral': 1847, 'n_tokens_neox': 1776, 'n_words': 324}