Revision 52270
Added by Sofia Baltzi almost 6 years ago
subjects-edit-form.component.html | ||
---|---|---|
16 | 16 |
<div [style.display]="showLoading ? 'inline' : 'none'" class="uk-animation-fade uk-width-1-1" role="alert"><img class="uk-align-center loading-gif"></div> |
17 | 17 |
</td> |
18 | 18 |
</tr> |
19 |
<tr> |
|
20 |
<!-- <td for="name" class="uk-text-bold uk-width-1-2@xl uk-width-1-3@m uk-width-1-3@s uk-text-right">Name <span class="uk-text-danger uk-text-bold">*</span> :</td> --> |
|
19 |
<!-- <tr> |
|
21 | 20 |
<td for="name" class="uk-text-bold uk-width-1-2@xl uk-width-1-3@m uk-width-1-3@s uk-text-right">Name <span class="uk-text-danger uk-text-bold">*</span> :</td> |
22 | 21 |
<td class="uk-text-left"> |
23 | 22 |
<div *ngIf="community.title == '' " class="uk-width-medium uk-text-danger uk-text-small style=display:none"> Please add name. </div> |
... | ... | |
66 | 65 |
class="uk-width-large uk-text-danger uk-text-small uk-margin-top"> Please add a valid email. </div> |
67 | 66 |
<input placeholder="Type managers" type="text" class="form-control uk-input uk-width-large@l uk-width-medium@s" |
68 | 67 |
id="{{'manager'+i}}" name="{{'manager'+i}}" [(ngModel)] = "community.managers[i]" (input)="change()"> |
69 |
<!-- <img type="uk-image" src="assets/imgs/delete-icon.png" height="25" width="25" title="Remove" onmouseover="" style="cursor: pointer;" (click)="removeManager(i)"/> --> |
|
70 | 68 |
<a class="uk-icon-button remove red_background_color red_color" uk-icon="close" title="Remove" (click)="removeManager(i)"></a> |
71 | 69 |
<a *ngIf="i == community.managers.length - 1" class="uk-icon-button add green_background_color green_color" uk-icon="plus" title="Add" (click)="addManager()"></a> |
72 | 70 |
</div> |
73 | 71 |
<a *ngIf="community.managers.length == 0" class="uk-icon-button add green_background_color green_color" uk-icon="plus" title="Add" (click)="addManager()"></a> |
74 |
<!-- <img type="uk-image" src="assets/imgs/add-icon.png" height="25" width="25" title="Add" onmouseover="" style="cursor: pointer;" (click)="addManager()"/> --> |
|
75 | 72 |
</div> |
76 | 73 |
</td> |
77 |
</tr> |
|
74 |
</tr> -->
|
|
78 | 75 |
<tr> |
79 | 76 |
<td for="subjects" class="uk-text-bold uk-text-right">Subjects:</td> |
80 | 77 |
<td class="uk-text-left"> |
... | ... | |
91 | 88 |
</div> |
92 | 89 |
</td> |
93 | 90 |
</tr> |
94 |
<tr> |
|
91 |
<!-- <tr>
|
|
95 | 92 |
<td class="uk-text-right"></td> |
96 | 93 |
<td><div class="uk-padding uk-padding-remove-top uk-padding-remove-bottom uk-text-danger uk-text-bold">* Required fields</div> |
97 | 94 |
</td> |
98 |
</tr> |
|
95 |
</tr> -->
|
|
99 | 96 |
<tr> |
100 | 97 |
<td class="uk-text-right"></td> |
101 | 98 |
<td> |
102 | 99 |
<div class="uk-grid-margin uk-first-column uk-align-center uk-text-left uk-padding uk-padding-remove-top uk-padding-remove-bottom"> |
103 |
<button *ngIf="hasChanged" class="uk-button uk-button-primary" (click)="updateCommunity()">Save</button>
|
|
100 |
<button *ngIf="hasChanged" class="uk-button uk-button-primary" (click)="updateSubjects()">Save</button>
|
|
104 | 101 |
<button *ngIf="!hasChanged" class="uk-button uk-button-default" disabled>Save</button> |
105 | 102 |
<button class="uk-button" (click)="resetForm(communityId)">Reset</button> |
106 | 103 |
</div> |
Also available in: Unified diff
Parse communities only if type is community or ri. Update subjects-edit-form. Add subjects.service