Commit a2b8c712 authored by Sebastian's avatar Sebastian

meh

parent 37445876
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
Du möchtest Daten aus dem GeoPortal herunterladen, um Sie außerhalb unserer Plattform weiternutzen zu können? Dann Du möchtest Daten aus dem GeoPortal herunterladen, um Sie außerhalb unserer Plattform weiternutzen zu können? Dann
bist du hier richtig. Um den gesamten Datensatz herunterzuladen, gehe folgendermaßen vor: bist du hier richtig. Um den gesamten Datensatz herunterzuladen, gehe folgendermaßen vor:
</p> </p>
<form [formGroup]="exportFormGroup" (ngSubmit)="exportUrl=apiService.apiURL; submitExportForm();"> <form [formGroup]="exportFormGroup" (ngSubmit)="exportUrl=this.getApiService().apiURL; submitExportForm();">
<h2>1. Welche allgemeinen Information zu den jeweiligen Ort möchtest du herunterladen? (soweit verfügbar).</h2> <h2>1. Welche allgemeinen Information zu den jeweiligen Ort möchtest du herunterladen? (soweit verfügbar).</h2>
<br> <br>
......
...@@ -77,4 +77,7 @@ export class DatenexportSeiteComponent implements OnInit { ...@@ -77,4 +77,7 @@ export class DatenexportSeiteComponent implements OnInit {
win.opener = null; win.opener = null;
win.focus(); win.focus();
} }
getApiService(){
return this.apiService;
}
} }
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<input type="text" formControlName="searchPattern" <input type="text" formControlName="searchPattern"
class="form-control searchinput" placeholder="Wie heißt dein Ort?" /> class="form-control searchinput" placeholder="Wie heißt dein Ort?" />
--> -->
<app-autosuggest formControlName="searchPattern" (selected)="search($term)"></app-autosuggest> <app-autosuggest formControlName="searchPattern" (selected)="search()"></app-autosuggest>
<!-- old search button <!-- old search button
<div class="input-group-append"> <div class="input-group-append">
<button (click)="search()" <button (click)="search()"
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<label class="col-sm-3 col-form-label"></label> <label class="col-sm-3 col-form-label"></label>
<div class="col"> <div class="col">
<button type="button" class="btn btn-primary btn-block" <button type="button" class="btn btn-primary btn-block"
(click)="modalService.open('networkpartnersearch',true,undefined,{node:node})"><i (click)="getModalService().open('networkpartnersearch',true,undefined,{node:node})"><i
aria-hidden="true" class="fa fa-plus-circle fa-lg"></i> Netzwerkpartner*innen aria-hidden="true" class="fa fa-plus-circle fa-lg"></i> Netzwerkpartner*innen
hinzufügen</button> hinzufügen</button>
</div> </div>
......
...@@ -17,6 +17,9 @@ export class NetworkpartnerComponent implements OnInit { ...@@ -17,6 +17,9 @@ export class NetworkpartnerComponent implements OnInit {
private modalService: ModalManagerService private modalService: ModalManagerService
) { } ) { }
getModalService(){
return this.modalService;
}
ngOnInit() { ngOnInit() {
if(this.form){ if(this.form){
console.log("Have form in networkpartner."); console.log("Have form in networkpartner.");
......
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title">Neue Kategorie hinzufügen</h4> <h4 class="modal-title">Neue Kategorie hinzufügen</h4>
<button type="button" class="close" aria-label="Close" (click)="modalService.close('Cross click')"> <button type="button" class="close" aria-label="Close" (click)="close('Cross click')">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Auswahl hinzufügen</button> <button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Auswahl hinzufügen</button>
</div> </div>
...@@ -17,5 +17,8 @@ export class AddcategoryComponent implements OnInit { ...@@ -17,5 +17,8 @@ export class AddcategoryComponent implements OnInit {
ngOnInit() { ngOnInit() {
} }
close(){
}
} }
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title">Etwas Eintragen</h4> <h4 class="modal-title">Etwas Eintragen</h4>
<button type="button" class="close" aria-label="Close" (click)="this.close()"> <button type="button" class="close" aria-label="Close" (click)="close()">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
......
...@@ -23,6 +23,9 @@ export class AddsomethingComponent implements OnInit { ...@@ -23,6 +23,9 @@ export class AddsomethingComponent implements OnInit {
} }
this.activeModal.close(); this.activeModal.close();
} }
close(){
this.activeModal.close();
}
ngOnInit() { ngOnInit() {
} }
......
...@@ -13,5 +13,5 @@ ...@@ -13,5 +13,5 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Änderungen verwerfen</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Änderungen verwerfen</button>
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Auf dieser Seite bleiben</button> <button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Auf dieser Seite bleiben</button>
</div> </div>
...@@ -17,5 +17,8 @@ export class ContentPublicComponent implements OnInit { ...@@ -17,5 +17,8 @@ export class ContentPublicComponent implements OnInit {
ngOnInit() { ngOnInit() {
} }
close(){
}
} }
...@@ -11,5 +11,5 @@ ...@@ -11,5 +11,5 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Alles Klar</button> <button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Alles Klar</button>
</div> </div>
...@@ -17,5 +17,7 @@ export class EditsourceComponent implements OnInit { ...@@ -17,5 +17,7 @@ export class EditsourceComponent implements OnInit {
ngOnInit() { ngOnInit() {
} }
close(){
}
} }
...@@ -11,5 +11,5 @@ ...@@ -11,5 +11,5 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Akzeptieren</button> <button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Akzeptieren</button>
</div> </div>
...@@ -17,5 +17,7 @@ export class TermsofuseComponent implements OnInit { ...@@ -17,5 +17,7 @@ export class TermsofuseComponent implements OnInit {
ngOnInit() { ngOnInit() {
} }
close(){
}
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Änderungen verwerfen</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Änderungen verwerfen</button>
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Auf dieser Seite bleiben</button> <button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Auf dieser Seite bleiben</button>
</div> </div>
...@@ -17,5 +17,7 @@ export class UnsafedcontentComponent implements OnInit { ...@@ -17,5 +17,7 @@ export class UnsafedcontentComponent implements OnInit {
ngOnInit() { ngOnInit() {
} }
close(){
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment