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 name="organizationForm">
25
					<fieldset>
26
						<legend>Official name and type</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 bg-primary text-white">name</div>
32
								</div>
33
								<input name="org_nm" type="text" class="form-control" placeholder="organization name..." ng-model="org.name" required="required" ng-class="{'is-invalid' : organizationForm.org_nm.$error.required}"/>
34
								<div class="input-group-append input-group-prepend">
35
									<div class="input-group-text bg-primary text-white">type</div>
36
								</div>
37
								<select name="org_tp" class="custom-select" ng-model="org.type" required="required" ng-class="{'is-invalid' : organizationForm.org_tp.$error.required}">
38
									<option disabled="disabled" value=''>type...</option>
39
									<option ng-repeat="t in vocabularies.orgTypes">{{t}}</option>
40
								</select>
41
							</div>
42
						</div>
43
					</fieldset>
44
					<fieldset class="mt-4">
45
						<legend>Geographical location</legend>
46
					
47
						<div class="form-group">
48
							<div class="input-group input-group-sm">
49
								<div class="input-group-prepend">
50
									<div class="input-group-text bg-primary text-white">city</div>
51
								</div>
52
								<input name="org_ct" type="text" class="form-control" placeholder="" ng-model="org.city" />
53
								<div class="input-group-append input-group-prepend">
54
									<div class="input-group-text bg-primary text-white">country</div>
55
								</div>
56
								<select name="org_cntr" class="custom-select" ng-model="org.country" required="required" ng-class="{'is-invalid' : organizationForm.org_cntr.$error.required}">
57
									<option disabled="disabled" value=''>country...</option>
58
									<option ng-repeat="c in vocabularies.countries">{{c}}</option>
59
								</select>
60
								<div class="input-group-append input-group-prepend">
61
									<div class="input-group-text bg-primary text-white">lat</div>
62
								</div>
63
								<input name="org_lat" type="text" class="form-control" placeholder="0.0" ng-model="org.lat" />
64
								<div class="input-group-append input-group-prepend">
65
									<div class="input-group-text bg-primary text-white">lng</div>
66
								</div>
67
								<input name="org_lng" type="text" class="form-control" placeholder="0.0" ng-model="org.lng" />
68
							</div>
69
						</div>
70
					</fieldset>
71
					
72
					<fieldset class="mt-4">
73
						<legend>Other names and identifiers</legend>
74
						
75
						<div class="form-group row">
76
							<div class="col-lg-8 mb-2">
77
								<div class="card">
78
									<div class="card-header bg-primary text-white text-center py-1">Acronyms</div>
79
									<table class="table table-sm">
80
										<tbody>
81
											<tr ng-repeat="a in org.acronyms">
82
												<td>{{a}}</td>
83
												<td class="text-right" style="width: 44px">
84
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.acronyms.splice($index, 1)"><i class="fa fa-trash"></i></button>
85
												</td>
86
											</tr>
87
										</tbody>
88
										<tfoot>
89
											<tr ng-init="newAcronym=''">
90
												<td>
91
													<input type="text" class="form-control form-control-sm" placeholder="new acronym..." ng-model='newAcronym'/>
92
												</td>
93
												<td class="text-right"  style="width: 44px">
94
													<button type="button" class="btn btn-sm btn-outline-success" ng-click="org.acronyms.push(newAcronym); newAcronym=''" ng-disabled="!newAcronym || org.acronyms.indexOf(newAcronym) !== -1" ><i class="fa fa-plus"></i></button>
95
												</td>
96
											</tr>
97
										</tfoot>
98
									</table>
99
								</div>
100
							</div>
101
						</div>
102

    
103
						<div class="form-group row">
104
							<div class="col-lg-8 mb-2">
105
								<div class="card">
106
									<div class="card-header bg-primary text-white text-center py-1">Aliases</div>
107
									<table class="table table-sm">
108
										<thead class="thead-light">
109
											<tr>
110
												<th>name</th>
111
												<th style="width: 156px">language</th>
112
												<th style="width: 44px"></th>
113
											</tr>
114
										</thead>
115
										<tbody>
116
											<tr ng-repeat="n in org.otherNames">
117
												<td>{{n.name}}</td>
118
												<td>{{n.lang}}</td>
119
												<td class="text-right">
120
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.otherNames.splice($index, 1)"><i class="fa fa-trash"></i></button>
121
												</td>
122
											</tr>
123
										</tbody>
124
										<tfoot>
125
											<tr ng-init="newOtherName=newLang=''">
126
												<td>
127
													<input type="text" class="form-control form-control-sm" placeholder="new alias..." ng-model="newOtherName" />
128
												</td>
129
												<td>
130
													<select class="custom-select custom-select-sm" ng-model="newLang">
131
														<option disabled="disabled" value=''>language...</option>
132
														<option ng-repeat="l in vocabularies.languages">{{l}}</option>
133
													</select>
134
												</td>
135
												<td class="text-right" style="width: 44px">
136
													<button type="button" class="btn btn-sm btn-outline-success" ng-click="org.otherNames.push({'name': newOtherName, 'lang': newLang}); newOtherName=newLang=''" ng-disabled="!newOtherName || !newLang"><i class="fa fa-plus"></i></button>
137
												</td>
138
											</tr>
139
										</tfoot>
140
									</table>
141
								</div>
142
							</div>
143
						</div>
144

    
145
						<div class="form-group row">
146
							<div class="col-lg-8 mb-2">
147
								<div class="card">
148
									<div class="card-header bg-primary text-white text-center py-1">Identifiers</div>
149
									<table class="table table-sm">
150
										<thead class="thead-light">
151
											<tr>
152
												<th>id</th>
153
												<th style="width: 156px">type</th>
154
												<th style="width: 44px"></th>
155
											</tr>
156
										</thead>
157
										<tbody>
158
											<tr ng-repeat="id in org.otherIdentifiers">
159
												<td>{{id.id}}</td>
160
												<td>{{id.type}}</td>
161
												<td class="text-right" style="width: 44px">
162
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.otherIdentifiers.splice($index, 1)"><i class="fa fa-trash"></i></button>
163
												</td>
164
											</tr>
165
										</tbody>
166
										<tfoot>
167
											<tr ng-init="newId=newIdType=''">
168
												<td>
169
													<input type="text" class="form-control form-control-sm" placeholder="new id..." ng-model="newId" />
170
												</td>
171
												<td>
172
													<select class="custom-select custom-select-sm" ng-model="newIdType">
173
														<option disabled="disabled" value=''>type...</option>
174
														<option ng-repeat="t in vocabularies.idTypes">{{t}}</option>
175
													</select>
176
												</td>
177
												<td class="text-right" style="width: 44px">
178
													<button type="button" class="btn btn-sm btn-outline-success" ng-click="org.otherIdentifiers.push({'id': newId, 'type': newIdType}); newId=newIdType=''" ng-disabled="!newId || !newIdType"><i class="fa fa-plus"></i></button>
179
												</td>
180
											</tr>
181
										</tfoot>
182
									</table>
183
								</div>
184
							</div>
185
						</div>
186

    
187
						<div class="form-group row">
188
							<div class="col-lg-8 mb-2">
189
								<div class="card">
190
									<div class="card-header bg-primary text-white text-center py-1">Urls</div>
191
									<table class="table table-sm">
192
										<tbody>
193
											<tr ng-repeat="u in org.urls">
194
												<td><a href="{{u}}" target="_blank">{{u}}</a></td>
195
												<td class="text-right" style="width: 44px">
196
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.urls.splice($index, 1)"><i class="fa fa-trash"></i></button>
197
												</td>
198
											</tr>
199
										</tbody>
200
										<tfoot>
201
											<tr ng-init="newUrl=''">
202
												<td>
203
													<input type="text" class="form-control form-control-sm" placeholder="http://..." ng-model="newUrl" />
204
												</td>
205
												<td class="text-right" style="width: 44px">
206
													<button type="button" class="btn btn-sm btn-outline-success" ng-click="org.urls.push(newUrl); newUrl=''" ng-disabled="!newUrl || org.urls.indexOf(newUrl) !== -1" ><i class="fa fa-plus"></i></button>
207
												</td>
208
											</tr>
209
										</tfoot>
210
									</table>
211
								</div>
212
							</div>
213
						</div>
214
					</fieldset>
215
					
216
					<button type="submit" class="btn btn-sm btn-primary" ng-click="save()" ng-disabled="organizationForm.$invalid">save</button>
217
				</form>
218
			</div>
219
		</div>
220
	</div>
221
</div>
(2-2/6)