Revision 33139
Added by Michele Artini over 9 years ago
addRepoApi.st | ||
---|---|---|
22 | 22 |
body={ |
23 | 23 |
<div ng-app="addRepoApiUI" ng-controller="addRepoApiCtrl"> |
24 | 24 |
<form class="form-horizontal" role="form" ng-hide="repo.id"> |
25 |
<div class="form-group"> |
|
26 |
<label for="inputSearchRepo" class="col-sm-3 control-label">Datasource</label> |
|
27 |
<div class="col-sm-9"> |
|
28 |
<div class="input-group"> |
|
29 |
<input id="inputSearchRepo" type="text" class="form-control" placeholder="Datasource..." ng-model="tmpSearchText"/> |
|
30 |
<span class="input-group-btn"> |
|
31 |
<button class="btn btn-default" type="button" ng-click="searchDatasource(tmpSearchText)">search</button> |
|
32 |
</span> |
|
33 |
</div> |
|
34 |
</div> |
|
35 |
</div> |
|
25 |
<ng-select-vocabulary-field label="Typology" vocabulary="values.types" selection="selectedTypology"></ng-select-vocabulary-field> |
|
26 |
<ng-select-repo-field label="Datasource" typology="selectedTypology" selection="repo"></ng-select-repo-field> |
|
36 | 27 |
</form> |
28 |
|
|
37 | 29 |
<form class="form-horizontal" role="form" ng-show="repo.id" name="newApiForm"> |
38 |
<div class="form-group" ng-show="repo.id"> |
|
39 |
<label class="col-sm-3 control-label">Datasource</label> |
|
40 |
<div class="col-sm-9"> |
|
41 |
<div class="input-group"> |
|
42 |
<input id="inputRepoName" type="text" readonly="readonly" class="form-control" ng-model="repo.name" placeholder="Datasource..." /> |
|
43 |
<span class="input-group-btn"> |
|
44 |
<button class="btn btn-default" type="button" ng-click="resetDatasource()">reset</button> |
|
45 |
</span> |
|
46 |
</div> |
|
47 |
</div> |
|
48 |
</div> |
|
49 |
|
|
50 |
<ng-api-id-field label="Api ID" prefix="repo.prefix" exclusion="repo.apis" selection="api.id"></ng-api-id-field> |
|
51 |
<ng-select-vocabulary-field label="Typology" vocabulary="values.types" selection="api.typology"></ng-select-vocabulary-field> |
|
30 |
<ng-fixed-value-field label="Datasource" value="repo.name"></ng-fixed-value-field> |
|
31 |
<ng-fixed-value-field label="Typology" value="api.typology"></ng-fixed-value-field> |
|
32 |
<ng-api-id-field label="Api ID" prefix="api_________::{{repo.origId}}::" exclusion="repo.apis" selection="api.id"></ng-api-id-field> |
|
33 |
<!-- <ng-select-vocabulary-field label="Typology" vocabulary="values.types" selection="api.typology"></ng-select-vocabulary-field> --> |
|
52 | 34 |
<ng-select-vocabulary-field label="Compatibility level" vocabulary="values.compliances" selection="api.compliance"></ng-select-vocabulary-field> |
53 | 35 |
<ng-select-vocabulary-field label="Content description" vocabulary="values.contentDescriptions" selection="api.contentDescription"></ng-select-vocabulary-field> |
54 | 36 |
<ng-select-vocabulary-field label="Protocol" vocabulary="values.protocols" selection="api.accessProtocol" contextual-params="currentParams"></ng-select-vocabulary-field> |
55 | 37 |
<ng-simple-edit-field label="BaseURL" selection="api.baseUrl" regex="^(http|https|ftp|file):\/\/"></ng-simple-edit-field> |
56 | 38 |
<ng-simple-edit-field ng-repeat="param in currentParams" label="{{param}}" selection="api.accessParams[param]"></ng-simple-edit-field> |
57 |
<ng-simple-edit-field label="Xpath for Metadata Identifier" selection="api.extraFields[metadata_identifier_path]"></ng-simple-edit-field>
|
|
39 |
<ng-simple-edit-field label="Xpath for Metadata Identifier" selection="api.extraFields['metadata_identifier_path']"></ng-simple-edit-field>
|
|
58 | 40 |
|
59 | 41 |
<div class="form-group"> |
60 | 42 |
<div class="col-sm-offset-3 col-sm-9"> |
61 |
<button class="btn btn-default" ng-disabled="newApiForm.\$invalid">Add</button> |
|
43 |
<button class="btn btn-default" type="button" ng-click="resetForm()">reset</button> |
|
44 |
<button class="btn btn-primary" ng-disabled="newApiForm.\$invalid">add</button> |
|
62 | 45 |
</div> |
63 | 46 |
</div> |
64 | 47 |
</form> |
65 | 48 |
|
66 | 49 |
<hr /> |
67 |
<p>{{api}}</p> |
|
50 |
<p><b>Typology:</b> {{selectedTypology}}</p> |
|
51 |
<p><b>Repo:</b> {{repo}}</p> |
|
52 |
<p><b>Api:</b> {{api}}</p> |
|
68 | 53 |
<!-- |
69 | 54 |
|
70 | 55 |
|
Also available in: Unified diff
repo selection