Revision 53111
Added by Myrto Koukouli over 5 years ago
register-datasource-shareable.component.html | ||
---|---|---|
19 | 19 |
<label class="control-label">Select repository's country</label> |
20 | 20 |
<select class="form-control" (change) ="getReposInCountry($event.target.value)"> |
21 | 21 |
<option value="" disabled>-- none selected --</option> |
22 |
<option *ngFor="let country of countries" value="{{ country.name }}">{{ country.name }}</option>
|
|
22 |
<option *ngFor="let country of countries" value="{{ country.code }}">{{ country.name }}</option>
|
|
23 | 23 |
</select> |
24 | 24 |
</div> |
25 | 25 |
<div class="form-group"> |
... | ... | |
45 | 45 |
<label for="{{ repo.id }}" |
46 | 46 |
class="uk-button uk-link-muted visible_uk_links" |
47 | 47 |
style="display: block; text-align: left;"> |
48 |
<input type="radio" value="{{ repo.id }}" id="{{ repo.id }}" name="repositories" (change)="onChooseRepository(repo.id)" [disabled]="repo.registered"> |
|
48 |
<input type="radio" value="{{ repo.id }}" id="{{ repo.id }}" name="repositories" (change)="onChooseRepository(repo.id)" [disabled]="repo.registeredby !== 'null'">
|
|
49 | 49 |
<span> |
50 |
{{ repo.officialName }}
|
|
51 |
<span *ngIf="repo.registered" class="uk-label uk-label-warning registeredLabel">Registered</span> |
|
52 |
<a target="_blank" href="{{repo.websiteUrl }}" [ngStyle]="">
|
|
50 |
{{(repo.officialname !== 'null') ? repo.officialname : repo.englishname }}
|
|
51 |
<span *ngIf="repo.registeredby !== 'null'" class="uk-label uk-label-warning registeredLabel">Registered</span>
|
|
52 |
<a target="_blank" href="{{ (repo.websiteurl !== 'null') ? repo.websiteurl : '' }}" [ngStyle]="">
|
|
53 | 53 |
<i class="fa fa-external-link externalLink"></i> |
54 | 54 |
</a> |
55 | 55 |
</span> |
Also available in: Unified diff
new getRepositoriesByCountry method