Skip to content

Commit df23f2b

Browse files
committed
Add is active to tenant edit.
1 parent 51bcce0 commit df23f2b

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

angular/src/app/tenants/create-tenant/create-tenant.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div bsModal #createTenantModal="bs-modal" class="modal fade" (onShown)="onShown()" tabindex="-1" role="dialog" aria-labelledby="createUserModal" aria-hidden="true" [config]="{backdrop: 'static'}">
1+
<div bsModal #createTenantModal="bs-modal" class="modal fade" (onShown)="onShown()" tabindex="-1" role="dialog" aria-labelledby="createUserModal" aria-hidden="true" [config]="{backdrop: 'static'}">
22
<div class="modal-dialog">
33

44
<div #modalContent class="modal-content">
@@ -39,6 +39,12 @@ <h4 class="modal-title">
3939
<label class="form-label">{{l("AdminEmailAddress")}}</label>
4040
</div>
4141
</div>
42+
<div class="form-group form-float">
43+
<div class="">
44+
<input id="isactive" type="checkbox" name="IsActive" [(ngModel)]="tenant.isActive" checked class="form-control" />
45+
<label for="isactive" class="form-label">{{l("IsActive")}}</label>
46+
</div>
47+
</div>
4248
<p>{{l("DefaultPasswordIs","123qwe")}}</p>
4349
</div>
4450

angular/src/app/tenants/create-tenant/create-tenant.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { Component, ViewChild, Injector, Output, EventEmitter, ElementRef } from '@angular/core';
1+
import { Component, ViewChild, Injector, Output, EventEmitter, ElementRef } from '@angular/core';
22
import { ModalDirective } from 'ngx-bootstrap';
33
import { TenantServiceProxy, CreateTenantDto } from '@shared/service-proxies/service-proxies';
44
import { AppComponentBase } from '@shared/app-component-base';
5-
import { AppConsts } from '@shared/AppConsts';
65

76
import * as _ from "lodash";
87

@@ -38,13 +37,13 @@ export class CreateTenantComponent extends AppComponentBase {
3837
($ as any).AdminBSB.input.activate($(this.modalContent.nativeElement));
3938

4039
$('#frm_create_tenant').validate({
41-
highlight: function (input) {
40+
highlight: input => {
4241
$(input).parents('.form-line').addClass('error');
4342
},
44-
unhighlight: function (input) {
43+
unhighlight: input => {
4544
$(input).parents('.form-line').removeClass('error');
4645
},
47-
errorPlacement: function (error, element) {
46+
errorPlacement: (error, element) => {
4847
$(element).parents('.form-group').append(error);
4948
}
5049
});

angular/src/app/tenants/edit-tenant/edit-tenant.component.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,10 @@ <h4 class="modal-title">
2727
<label class="form-label">{{l("Name")}}</label>
2828
</div>
2929
</div>
30-
<div class="row clearfix">
31-
<div class="col-sm-12">
32-
<div class="form-group form-float">
33-
<div class="">
34-
<input id="isactive" type="checkbox" name="IsActive" [(ngModel)]="tenant.isActive" checked class="form-control" />
35-
<label for="isactive" class="form-label">{{l("IsActive")}}</label>
36-
</div>
37-
</div>
30+
<div class="form-group form-float">
31+
<div class="">
32+
<input id="isactive" type="checkbox" name="IsActive" [(ngModel)]="tenant.isActive" checked class="form-control" />
33+
<label for="isactive" class="form-label">{{l("IsActive")}}</label>
3834
</div>
3935
</div>
4036
</div>

0 commit comments

Comments
 (0)