Project

General

Profile

« Previous | Next » 

Revision 57326

ui

View differences:

edit.html
75 75
						<div class="form-group row">
76 76
							<div class="col-lg-8 mb-2">
77 77
								<div class="card">
78
									<div class="card-header text-center">Acronyms</div>
78
									<div class="card-header bg-primary text-white text-center py-1">Acronyms</div>
79 79
									<table class="table table-sm">
80 80
										<tbody>
81 81
											<tr ng-repeat="a in org.acronyms">
82 82
												<td>{{a}}</td>
83 83
												<td class="text-right">
84
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.acronyms.splice($index, 1)">delete</button>
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 85
												</td>
86 86
											</tr>
87 87
										</tbody>
......
90 90
										<div class="input-group input-group-sm" ng-init="newAcronym=''">
91 91
											<input type="text" class="form-control" placeholder="new acronym..." ng-model='newAcronym'/>
92 92
											<div class="input-group-append">
93
												<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>
93
												<button type="button" class="btn 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>
94 94
											</div>
95 95
										</div>
96 96
									</div>
......
101 101
						<div class="form-group row">
102 102
							<div class="col-lg-8 mb-2">
103 103
								<div class="card">
104
									<div class="card-header text-center">Aliases</div>
104
									<div class="card-header bg-primary text-white text-center py-1">Aliases</div>
105 105
									<table class="table table-sm">
106 106
										<thead class="thead-light">
107 107
											<tr>
......
115 115
												<td>{{n.name}}</td>
116 116
												<td>{{n.lang}}</td>
117 117
												<td class="text-right">
118
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.otherNames.splice($index, 1)">delete</button>
118
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.otherNames.splice($index, 1)"><i class="fa fa-trash"></i></button>
119 119
												</td>
120 120
											</tr>
121 121
										</tbody>
......
128 128
												<option ng-repeat="l in vocabularies.languages">{{l}}</option>
129 129
											</select>
130 130
											<div class="input-group-append">
131
												<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>
131
												<button type="button" class="btn 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>
132 132
											</div>
133 133
										</div>
134 134
									</div>
......
139 139
						<div class="form-group row">
140 140
							<div class="col-lg-8 mb-2">
141 141
								<div class="card">
142
									<div class="card-header text-center">Identifiers</div>
142
									<div class="card-header bg-primary text-white text-center py-1">Identifiers</div>
143 143
									<table class="table table-sm">
144 144
										<thead class="thead-light">
145 145
											<tr>
......
153 153
												<td>{{id.id}}</td>
154 154
												<td>{{id.type}}</td>
155 155
												<td class="text-right">
156
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.otherIdentifiers.splice($index, 1)">delete</button>
156
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.otherIdentifiers.splice($index, 1)"><i class="fa fa-trash"></i></button>
157 157
												</td>
158 158
											</tr>
159 159
										</tbody>
......
166 166
												<option ng-repeat="t in vocabularies.idTypes">{{t}}</option>
167 167
											</select>
168 168
											<div class="input-group-append">
169
												<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>
169
												<button type="button" class="btn 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>
170 170
											</div>
171 171
										</div>
172 172
									</div>
......
177 177
						<div class="form-group row">
178 178
							<div class="col-lg-8 mb-2">
179 179
								<div class="card">
180
									<div class="card-header text-center">Urls</div>
180
									<div class="card-header bg-primary text-white text-center py-1">Urls</div>
181 181
									<table class="table table-sm">
182 182
										<tbody>
183 183
											<tr ng-repeat="u in org.urls">
184 184
												<td><a href="{{u}}" target="_blank">{{u}}</a></td>
185 185
												<td class="text-right">
186
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.urls.splice($index, 1)">delete</button>
186
													<button type="button" class="btn btn-sm  btn-outline-danger" ng-click="org.urls.splice($index, 1)"><i class="fa fa-trash"></i></button>
187 187
												</td>
188 188
											</tr>
189 189
										</tbody>
......
192 192
										<div class="input-group input-group-sm" ng-init="newUrl=''">
193 193
											<input type="text" class="form-control" placeholder="http://..." ng-model="newUrl" />
194 194
											<div class="input-group-append">
195
												<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>
195
												<button type="button" class="btn 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>
196 196
											</div>
197 197
										</div>
198 198
									</div>	
......
201 201
						</div>
202 202
					</fieldset>
203 203
					
204
					<button type="submit" class="btn btn-primary" ng-click="save()">save</button>
204
					<button type="submit" class="btn btn-sm btn-primary" ng-click="save()">save</button>
205 205
				</form>
206 206
			</div>
207 207
		</div>

Also available in: Unified diff