Project

General

Profile

1
<p class="text-muted" ng-if="orgId">
2
	<b>ID: </b>{{orgId}}<br />
3
	<b>Created at</b> {{org.creationDate | date:'MMMM d, y HH:mm:ss'}} <b>by</b> {{org.createdBy}}<br />
4
	<b>Modified at</b> {{org.modificationDate | date:'MMMM d, y HH:mm:ss'}} <b>by</b> {{org.modifiedBy}}
5
</p>
6

    
7
<div class="row">
8
	<div class="col-xl-8 col-lg-10">
9
		<div class="card">
10
			<div class="card-header">
11
				<ul class="nav nav-tabs card-header-tabs">
12
					<li class="nav-item">
13
						<a href="javascript:void(0)" class="nav-link active">Metadata</a>
14
					</li>
15
					<li class="nav-item" ng-if="orgId">
16
						<a href="#!/relations/{{orgId}}" class="nav-link" href="#">Relations</a>
17
					</li>
18
					<li class="nav-item" ng-if="orgId">
19
						<a href="#!/similarities/{{orgId}}" class="nav-link" href="#">Similarities</a>
20
					</li>
21
				</ul>
22
			</div>
23
			<div class="card-body">
24
				<form>
25
					<fieldset>
26
						<legend>Organization name</legend>
27
				
28
						<div class="form-group">
29
							<div class="input-group input-group-sm">
30
								<div class="input-group-prepend">
31
									<div class="input-group-text">name</div>
32
								</div>
33
								<input type="text" class="form-control" placeholder="name" ng-model="org.name" />
34
							</div>
35
						</div>
36
					</fieldset>
37
					<fieldset class="mt-4">
38
						<legend>Geographical location</legend>
39
					
40
						<div class="form-group">
41
							<div class="input-group input-group-sm">
42
								<div class="input-group-prepend">
43
									<div class="input-group-text">city</div>
44
								</div>
45
								<input type="text" class="form-control" placeholder="" ng-model="org.city" />
46
								<div class="input-group-append input-group-prepend">
47
									<div class="input-group-text">country</div>
48
								</div>
49
								<select class="custom-select" ng-model="org.country">
50
									<option disabled="disabled" value=''>country...</option>
51
									<option ng-repeat="c in vocabularies.countries">{{c}}</option>
52
								</select>
53
								<div class="input-group-append input-group-prepend">
54
									<div class="input-group-text">lat</div>
55
								</div>
56
								<input type="text" class="form-control" placeholder="0.0" ng-model="org.lat" />
57
								<div class="input-group-append input-group-prepend">
58
									<div class="input-group-text">lng</div>
59
								</div>
60
								<input type="text" class="form-control" placeholder="0.0" ng-model="org.lng" />
61
							</div>
62
						</div>
63
					</fieldset>
64
					
65
					<fieldset class="mt-4">
66
						<legend>Organization type</legend>
67
						<div class="form-group row">
68
							<div class="col-lg-6">
69
								<div class="card">
70
									<table class="table table-sm">
71
										<tbody>
72
											<tr ng-repeat="t in org.types">
73
												<td>{{t}}</td>
74
												<td class="text-right">
75
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.types.splice($index, 1)">delete</button>
76
												</td>
77
											</tr>
78
										</tbody>
79
									</table>
80
									<div class="card-footer">
81
										<div class="input-group input-group-sm" ng-init="newType=''">
82
											<select class="custom-select" ng-model="newType">
83
												<option disabled="disabled" value=''>new type...</option>
84
												<option ng-repeat="t in vocabularies.orgTypes" ng-disabled="org.types.indexOf(t) !== -1">{{t}}</option>
85
											</select>
86
											<div class="input-group-append">
87
												<button type="button" class="btn btn-outline-success" ng-click="org.types.push(newType); newType=''" ng-disabled="!newType">add</button>
88
											</div>
89
										</div>
90
									</div>
91
								</div>
92
							</div>
93
						</div>
94
					</fieldset>
95
				
96
				
97
					<fieldset class="mt-4">
98
						<legend>Other names and identifiers</legend>
99
						
100
						<div class="form-group row">
101
							<div class="col-lg-6 mb-2">
102
								<div class="card">
103
									<div class="card-header text-center">Identifiers</div>
104
									<table class="table table-sm">
105
										<thead class="thead-light">
106
											<tr>
107
												<th>id</th>
108
												<th>type</th>
109
												<th></th>
110
											</tr>
111
										</thead>
112
										<tbody>
113
											<tr ng-repeat="id in org.otherIdentifiers">
114
												<td>{{id.id}}</td>
115
												<td>{{id.type}}</td>
116
												<td class="text-right">
117
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.otherIdentifiers.splice($index, 1)">delete</button>
118
												</td>
119
											</tr>
120
										</tbody>
121
									</table>
122
									<div class="card-footer">
123
										<div class="input-group input-group-sm" ng-init="newId=newIdType=''">
124
											<input type="text" class="form-control" placeholder="new id..." ng-model="newId" />
125
											<select class="custom-select" ng-model="newIdType">
126
												<option disabled="disabled" value=''>new type...</option>
127
												<option ng-repeat="t in vocabularies.idTypes">{{t}}</option>
128
											</select>
129
											<div class="input-group-append">
130
												<button type="button" class="btn btn-outline-success" ng-click="org.otherIdentifiers.push({'id': newId, 'type': newIdType}); newId=newIdType=''" ng-disabled="!newId || !newIdType">add</button>
131
											</div>
132
										</div>
133
									</div>
134
								</div>
135
							</div>
136
						
137
							<div class="col-lg-6 mb-2">
138
								<div class="card">
139
									<div class="card-header text-center">Aliases</div>
140
									<table class="table table-sm">
141
										<thead class="thead-light">
142
											<tr>
143
												<th>name</th>
144
												<th>lang</th>
145
												<th></th>
146
											</tr>
147
										</thead>
148
										<tbody>
149
											<tr ng-repeat="n in org.otherNames">
150
												<td>{{n.name}}</td>
151
												<td>{{n.lang}}</td>
152
												<td class="text-right">
153
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.otherNames.splice($index, 1)">delete</button>
154
												</td>
155
											</tr>
156
										</tbody>
157
									</table>	
158
									<div class="card-footer">
159
										<div class="input-group input-group-sm" ng-init="newOtherName=newLang=''">
160
											<input type="text" class="form-control" placeholder="new alias..." ng-model="newOtherName" />
161
											<select class="custom-select" ng-model="newLang">
162
												<option disabled="disabled" value=''>language...</option>
163
												<option ng-repeat="l in vocabularies.languages">{{l}}</option>
164
											</select>
165
											<div class="input-group-append">
166
												<button type="button" class="btn btn-outline-success" ng-click="org.otherNames.push({'name': newOtherName, 'lang': newLang}); newOtherName=newLang=''" ng-disabled="!newOtherName || !newLang">add</button>
167
											</div>
168
										</div>
169
									</div>
170
								</div>
171
							</div>
172
						</div>
173
						<div class="form-group row">
174
							<div class="col-lg-6 mb-2">
175
								<div class="card">
176
									<div class="card-header text-center">Acronyms</div>
177
									<table class="table table-sm">
178
										<tbody>
179
											<tr ng-repeat="a in org.acronyms">
180
												<td>{{a}}</td>
181
												<td class="text-right">
182
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.acronyms.splice($index, 1)">delete</button>
183
												</td>
184
											</tr>
185
										</tbody>
186
									</table>
187
									<div class="card-footer">
188
										<div class="input-group input-group-sm" ng-init="newAcronym=''">
189
											<input type="text" class="form-control" placeholder="new acronym..." ng-model='newAcronym'/>
190
											<div class="input-group-append">
191
												<button type="button" class="btn btn-outline-success" ng-click="org.acronyms.push(newAcronym); newAcronym=''" ng-disabled="!newAcronym || org.acronyms.indexOf(newAcronym) !== -1" >add</button>
192
											</div>
193
										</div>
194
									</div>
195
								</div>
196
							</div>
197
							<div class="col-lg-6 mb-2">
198
								<div class="card">
199
									<div class="card-header text-center">Urls</div>
200
									<table class="table table-sm">
201
										<tbody>
202
											<tr ng-repeat="u in org.urls">
203
												<td><a href="{{u}}" target="_blank">{{u}}</a></td>
204
												<td class="text-right">
205
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.urls.splice($index, 1)">delete</button>
206
												</td>
207
											</tr>
208
										</tbody>
209
									</table>
210
									<div class="card-footer">
211
										<div class="input-group input-group-sm" ng-init="newUrl=''">
212
											<input type="text" class="form-control" placeholder="http://..." ng-model="newUrl" />
213
											<div class="input-group-append">
214
												<button type="button" class="btn btn-outline-success" ng-click="org.urls.push(newUrl); newUrl=''" ng-disabled="!newUrl || org.urls.indexOf(newUrl) !== -1" >add</button>
215
											</div>
216
										</div>
217
									</div>	
218
								</div>
219
							</div>
220
						</div>
221
					</fieldset>
222
					
223
					<button type="submit" class="btn btn-primary" ng-click="save()">save</button>
224
				</form>
225
			</div>
226
		</div>
227
	</div>
228
</div>
(2-2/6)