Revision 60310
Added by Konstantinos Triantafyllou about 3 years ago
entities.component.html | ||
---|---|---|
113 | 113 |
</tr> |
114 | 114 |
</tbody> |
115 | 115 |
</table> |
116 |
<div class="uk-width-1-1 uk-flex uk-flex-center " *ngIf="isPortalAdministrator"> |
|
117 |
<div class="uk-width-small uk-button uk-button-default" (click)="newEntity()"> |
|
118 |
<i class="" uk-icon="plus"></i> |
|
119 |
</div> |
|
120 |
</div> |
|
121 |
<div *ngIf="checkboxes.length==0" class="col-md-12"> |
|
116 |
<div *ngIf="checkboxes.length ==0 "> |
|
122 | 117 |
<div class="uk-alert-warning" uk-alert>No entities found</div> |
123 | 118 |
</div> |
124 | 119 |
</div> |
... | ... | |
129 | 124 |
</div> |
130 | 125 |
</div> |
131 | 126 |
|
132 |
<modal-alert #AlertModalSaveEntity (alertOutput)="entitySaveConfirmed($event)"
|
|
133 |
[okDisabled]="myForm && (myForm.invalid || !myForm.dirty)">
|
|
127 |
<modal-alert #editModal (alertOutput)="entitySaveConfirmed($event)"
|
|
128 |
[okDisabled]="entityForm && (entityForm.invalid || !entityForm.dirty)">
|
|
134 | 129 |
<div *ngIf="modalErrorMessage" class="uk-alert-danger" uk-alert aria-hidden="true">{{ modalErrorMessage }}</div> |
135 |
<form [formGroup]="myForm"> |
|
136 |
|
|
137 |
<div dashboard-input class="uk-margin-small-left" [formInput]="myForm.controls.name" |
|
138 |
type="text" |
|
130 |
<form *ngIf="entityForm" [formGroup]="entityForm" class="uk-grid uk-child-width-1-1" uk-grid> |
|
131 |
<div dashboard-input [formInput]="entityForm.get('name')" |
|
132 |
type="text" placeholder="Write a name" |
|
139 | 133 |
label="Entity Name"> |
140 | 134 |
</div> |
141 |
|
|
142 |
<div dashboard-input class="uk-margin-small-left" [formInput]="myForm.controls.pid" |
|
143 |
type="text" |
|
135 |
<div dashboard-input [formInput]="entityForm.get('pid')" |
|
136 |
type="text" placeholder="Write a pid" |
|
144 | 137 |
label="Entity Pid"> |
145 | 138 |
</div> |
146 |
<input type="hidden" formControlName="_id"> |
|
147 | 139 |
</form> |
148 | 140 |
</modal-alert> |
149 | 141 |
|
150 |
<modal-alert #AlertModalRelatedPages (alertOutput)="continueToggling($event)"></modal-alert>
|
|
142 |
<modal-alert #relatedPages (alertOutput)="continueToggling($event)"></modal-alert>
|
|
151 | 143 |
|
152 |
<modal-alert #AlertModalDeleteEntities (alertOutput)="confirmedDeleteEntities($event)"></modal-alert> |
|
144 |
<modal-alert #deleteModal (alertOutput)="confirmedDeleteEntities($event)"></modal-alert> |
Also available in: Unified diff
[Library | Trunk]: Admin tools pages, fix modals and update behaviour