Revision 50634
Added by Michele Artini about 6 years ago
affiliations.st | ||
---|---|---|
19 | 19 |
<td class="col-xs-1">{{year}}</td> |
20 | 20 |
<td> |
21 | 21 |
<span ng-repeat="g in groups"> |
22 |
<span ng-if="g.id != 'UNKNOWN'">{{g.name}} ({{g.id}})</span> |
|
23 |
<button type="button" class="btn btn-xs btn-danger" |
|
24 |
ng-if="g.id == 'UNKNOWN'" |
|
25 |
ng-click="prepareTempAffiliation(p.id, aff.name, year)" |
|
26 |
data-toggle="modal" |
|
27 |
data-target="#newAffiliationModal">edit</button> |
|
22 | 28 |
<span class="label label-default pull-right" ng-class="{ |
23 |
'label-info' : g.type == 'Laboratorio', |
|
24 |
'label-success' : g.type == 'Servizio' |
|
29 |
'label-info' : g.type == 'Laboratorio', |
|
30 |
'label-success' : g.type == 'Servizio', |
|
31 |
'label-danger' : g.type == 'UNKNOWN' |
|
25 | 32 |
}">{{g.type}}</span> |
26 |
{{g.name}} ({{g.id}})<br />
|
|
33 |
<br /> |
|
27 | 34 |
</span> |
28 | 35 |
</td> |
29 | 36 |
</tr> |
30 |
<tr> |
|
31 |
<td colspan="3" class="text-right"> |
|
32 |
<button type="button" class="btn btn-xs btn-default" ng-click="prepareTempAffiliation(p.id, aff.name)" data-toggle="modal" data-target="#newAffiliationModal">Add affiliation</button> |
|
33 |
</td> |
|
34 | 37 |
</tbody> |
35 | 38 |
</table> |
36 | 39 |
</div> |
... | ... | |
54 | 57 |
<p class="form-control-static">{{tempAffiliation.pname}}</p> |
55 | 58 |
</div> |
56 | 59 |
<div class="form-group"> |
60 |
<label>Year</label> |
|
61 |
<p class="form-control-static">{{tempAffiliation.year}}</p> |
|
62 |
</div> |
|
63 |
<div class="form-group"> |
|
57 | 64 |
<label>Group</label> |
58 | 65 |
<select class="form-control" ng-model="tempAffiliation.gid" ng-options="g.id as g.name group by g.type for g in groups"></select> |
59 | 66 |
</div> |
60 |
<div class="form-group"> |
|
61 |
<label>Year</label> |
|
62 |
<select class="form-control" ng-model="tempGroup.year" ng-options="y as y for y in daterange"></select> |
|
63 |
</div> |
|
64 | 67 |
</form> |
65 | 68 |
</div> |
66 | 69 |
<div class="modal-footer"> |
Also available in: Unified diff