|
34 | 34 | </div> |
35 | 35 | </div> |
36 | 36 |
|
37 | | -<div class="modal fade" id="TenantCreateModal" tabindex="-1" role="dialog" aria-labelledby="TenantCreateModalLabel"> |
| 37 | +<div class="modal fade" id="TenantCreateModal" tabindex="-1" role="dialog" aria-labelledby="TenantCreateModalLabel" data-backdrop="static"> |
38 | 38 | <div class="modal-dialog" role="document"> |
39 | 39 | <div class="modal-content"> |
40 | 40 | <form name="tenantCreateForm" role="form" novalidate class="form-validation"> |
|
45 | 45 | </div> |
46 | 46 | <div class="modal-body"> |
47 | 47 |
|
48 | | - <div class="form-group form-md-line-input form-md-floating-label no-hint"> |
| 48 | + <div class="form-group"> |
49 | 49 | <label>@L("TenancyName")</label> |
50 | | - <input auto-focus class="form-control" type="text" name="TenancyName" ng-model="vm.tenant.tenancyName" required maxlength="@Tenant.MaxTenancyNameLength" ng-pattern="/@Tenant.TenancyNameRegex/"> |
51 | | - </div> |
52 | | - <div> |
53 | | - <span class="help-block text-danger" ng-show="!tenantCreateForm.TenancyName.$valid && tenantCreateForm.TenancyName.$dirty">@L("TenantName_Regex_Description")</span> |
| 50 | + <input class="form-control" type="text" name="TenancyName" required maxlength="@Tenant.MaxTenancyNameLength" minlength="2"> |
54 | 51 | </div> |
55 | 52 |
|
56 | | - <div class="form-group form-md-line-input form-md-floating-label no-hint"> |
| 53 | + <div class="form-group"> |
57 | 54 | <label>@L("Name")</label> |
58 | | - <input type="text" name="Name" class="form-control" ng-model="vm.tenant.name" required maxlength="@Tenant.MaxNameLength"> |
| 55 | + <input type="text" name="Name" class="form-control" required maxlength="@Tenant.MaxNameLength"> |
59 | 56 | </div> |
60 | 57 |
|
61 | | - <div class="form-group form-md-line-input form-md-floating-label no-hint"> |
| 58 | + <div class="form-group"> |
62 | 59 | <label>@L("AdminEmailAddress")</label> |
63 | | - <input type="email" name="AdminEmailAddress" class="form-control" ng-model="vm.tenant.adminEmailAddress" required maxlength="@AbpCompanyName.AbpProjectName.Users.User.MaxEmailAddressLength"> |
| 60 | + <input type="email" name="AdminEmailAddress" class="form-control" required maxlength="@AbpCompanyName.AbpProjectName.Users.User.MaxEmailAddressLength"> |
64 | 61 | </div> |
65 | 62 |
|
66 | 63 | <p>@L("DefaultPasswordIs", AbpCompanyName.AbpProjectName.Users.User.DefaultPassword)</p> |
67 | 64 |
|
68 | 65 | </div> |
69 | 66 | <div class="modal-footer"> |
70 | 67 | <button type="button" class="btn btn-default" data-dismiss="modal">@L("Cancel")</button> |
71 | | - <button id="TenantCreateModalSaveButton" type="submit" class="btn btn-primary blue" ng-disabled="tenantCreateForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button> |
| 68 | + <button type="submit" class="btn btn-primary blue" ng-disabled="tenantCreateForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button> |
72 | 69 | </div> |
73 | 70 | </form> |
74 | 71 | </div> |
|
0 commit comments