Skip to content
Snippets Groups Projects
repository.component.html 1.84 KiB
<form [formGroup]="Form">

  <label>Upload and fill form width repository description file: </label><br>
  <input type="file" id="repofile" name="repofile " class="btn btn-primary" (change)="yamlToRepository()"><br>
  <label>Or describe your repository and save a new file for publishing in the FDP database:</label><br>


  <div>
    <label>Repository Type*</label>
    <nb-select class="form-control" formControlName="repotype" required>
      <nb-option value="Dataverse">Dataverse</nb-option>
      <nb-option value="Custom">Custom</nb-option>
      <nb-option value="ISO 19115">ISO 19115</nb-option>
    </nb-select>
  </div>
  <div class="form-group">
    <label>Repository Name*</label>
    <input nbInput type="text" class="form-control" formControlName="reponame" required>
  </div>
  <div class="form-group">
    <label>Description</label>
    <textarea nbInput class="form-control" formControlName="repodescription"></textarea>
  </div>
  <div class="form-group">
    <label>url*</label>
    <input nbInput type="text" class="form-control" formControlName="repourl" required>
  </div>
  <div class="form-group">
    <label>Version</label>
    <input nbInput type="text" class="form-control" formControlName="repoversion">
  </div>
  <div class="form-group">
    <label>License</label>
    <input nbInput type="text" class="form-control" formControlName="repolicence">
  </div>
  <div class="form-group">
    <label>Language</label>
    <input nbInput type="text" class="form-control" formControlName="repolanguage">
  </div>

  <div>
    <br>
    <button nbButton type="submit" (click)="repositorytoyaml()" class="btn btn-primary">Save repository description file</button>
  </div>
  <div>
    <br>
    <button nbButton type="submit" (click)="publishCatalog()" class="btn btn-success" [disabled]="!Form.valid">Publish catalog
      description in FDP</button>
  </div>
</form>