2018-07-16 18:42:49 +02:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>{{ "myOrganization" | i18n }}</h1>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="loading">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i
|
|
|
|
class="bwi bwi-spinner bwi-spin text-muted"
|
|
|
|
title="{{ 'loading' | i18n }}"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
2019-10-11 16:35:24 +02:00
|
|
|
<span class="sr-only">{{ "loading" | i18n }}</span>
|
2018-07-16 18:42:49 +02:00
|
|
|
</div>
|
|
|
|
<form
|
|
|
|
*ngIf="org && !loading"
|
|
|
|
#form
|
|
|
|
(ngSubmit)="submit()"
|
|
|
|
[appApiAction]="formPromise"
|
|
|
|
ngNativeValidate
|
|
|
|
>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="name">{{ "organizationName" | i18n }}</label>
|
2020-08-28 17:22:30 +02:00
|
|
|
<input
|
|
|
|
id="name"
|
|
|
|
class="form-control"
|
|
|
|
type="text"
|
|
|
|
name="Name"
|
|
|
|
[(ngModel)]="org.name"
|
|
|
|
[disabled]="selfHosted"
|
|
|
|
/>
|
2018-07-16 18:42:49 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="billingEmail">{{ "billingEmail" | i18n }}</label>
|
2019-02-21 22:50:37 +01:00
|
|
|
<input
|
|
|
|
id="billingEmail"
|
|
|
|
class="form-control"
|
|
|
|
type="text"
|
|
|
|
name="BillingEmail"
|
2020-08-28 17:22:30 +02:00
|
|
|
[(ngModel)]="org.billingEmail"
|
2022-05-10 09:41:52 +02:00
|
|
|
[disabled]="selfHosted || !canManageBilling"
|
2020-08-28 17:22:30 +02:00
|
|
|
/>
|
2018-07-16 18:42:49 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="businessName">{{ "businessName" | i18n }}</label>
|
2019-02-21 22:50:37 +01:00
|
|
|
<input
|
|
|
|
id="businessName"
|
|
|
|
class="form-control"
|
|
|
|
type="text"
|
|
|
|
name="BusinessName"
|
2020-08-28 17:22:30 +02:00
|
|
|
[(ngModel)]="org.businessName"
|
2022-05-10 09:41:52 +02:00
|
|
|
[disabled]="selfHosted || !canManageBilling"
|
2020-08-28 17:22:30 +02:00
|
|
|
/>
|
2018-07-16 18:42:49 +02:00
|
|
|
</div>
|
2020-08-12 22:46:18 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="identifier">{{ "identifier" | i18n }}</label>
|
|
|
|
<input
|
|
|
|
id="identifier"
|
|
|
|
class="form-control"
|
|
|
|
type="text"
|
|
|
|
name="Identifier"
|
|
|
|
[(ngModel)]="org.identifier"
|
2018-07-31 05:52:04 +02:00
|
|
|
/>
|
2018-07-16 18:42:49 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-6">
|
2018-07-31 05:52:04 +02:00
|
|
|
<app-avatar data="{{ org.name }}" dynamic="true" size="75" fontSize="35"></app-avatar>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-29 16:27:42 +02:00
|
|
|
<bit-submit-button [loading]="form.loading">
|
|
|
|
{{ "save" | i18n }}
|
|
|
|
</bit-submit-button>
|
2018-07-16 18:42:49 +02:00
|
|
|
</form>
|
2019-03-07 17:18:45 +01:00
|
|
|
<ng-container *ngIf="canUseApi">
|
|
|
|
<div class="secondary-header border-0 mb-0">
|
|
|
|
<h1>{{ "apiKey" | i18n }}</h1>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
{{ "apiKeyDesc" | i18n }}
|
|
|
|
<a href="https://docs.bitwarden.com" target="_blank" rel="noopener">
|
|
|
|
{{ "learnMore" | i18n }}
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
<button type="button" class="btn btn-outline-secondary" (click)="viewApiKey()">
|
|
|
|
{{ "viewApiKey" | i18n }}
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-outline-secondary" (click)="rotateApiKey()">
|
|
|
|
{{ "rotateApiKey" | i18n }}
|
|
|
|
</button>
|
|
|
|
</ng-container>
|
2018-07-16 18:42:49 +02:00
|
|
|
<div class="secondary-header border-0 mb-0">
|
|
|
|
<h1>{{ "taxInformation" | i18n }}</h1>
|
|
|
|
</div>
|
|
|
|
<p>{{ "taxInformationDesc" | i18n }}</p>
|
2020-06-17 19:35:39 +02:00
|
|
|
<div *ngIf="!org || loading">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i
|
|
|
|
class="bwi bwi-spinner bwi-spin text-muted"
|
|
|
|
title="{{ 'loading' | i18n }}"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
2020-06-17 19:35:39 +02:00
|
|
|
<span class="sr-only">{{ "loading" | i18n }}</span>
|
|
|
|
</div>
|
|
|
|
<form
|
|
|
|
*ngIf="org && !loading"
|
|
|
|
#formTax
|
|
|
|
(ngSubmit)="submitTaxInfo()"
|
|
|
|
[appApiAction]="taxFormPromise"
|
|
|
|
ngNativeValidate
|
|
|
|
>
|
2020-06-13 01:33:29 +02:00
|
|
|
<app-tax-info></app-tax-info>
|
|
|
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="formTax.loading">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
2020-06-08 23:24:05 +02:00
|
|
|
<span>{{ "save" | i18n }}</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
2018-07-16 18:42:49 +02:00
|
|
|
<div class="secondary-header text-danger border-0 mb-0">
|
|
|
|
<h1>{{ "dangerZone" | i18n }}</h1>
|
|
|
|
</div>
|
|
|
|
<div class="card border-danger">
|
|
|
|
<div class="card-body">
|
|
|
|
<p>{{ "dangerZoneDesc" | i18n }}</p>
|
2019-02-21 22:50:37 +01:00
|
|
|
<button type="button" class="btn btn-outline-danger" (click)="deleteOrganization()">
|
|
|
|
{{ "deleteOrganization" | i18n }}
|
|
|
|
</button>
|
2018-09-25 15:12:24 +02:00
|
|
|
<button type="button" class="btn btn-outline-danger" (click)="purgeVault()">
|
|
|
|
{{ "purgeVault" | i18n }}
|
|
|
|
</button>
|
2018-07-16 18:42:49 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<ng-template #deleteOrganizationTemplate></ng-template>
|
2018-09-25 15:12:24 +02:00
|
|
|
<ng-template #purgeOrganizationTemplate></ng-template>
|
2019-03-07 17:18:45 +01:00
|
|
|
<ng-template #apiKeyTemplate></ng-template>
|
|
|
|
<ng-template #rotateApiKeyTemplate></ng-template>
|