1
0
mirror of https://github.com/bitwarden/web synced 2026-01-01 08:03:13 +00:00

create and update premium license for self host

This commit is contained in:
Kyle Spearrin
2018-07-02 10:30:51 -04:00
parent 463c1f8b77
commit 3bb667f524
10 changed files with 160 additions and 21 deletions

View File

@@ -0,0 +1,14 @@
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
<div class="form-group">
<label for="file">{{'licenseFile' | i18n}}</label>
<input type="file" id="file" class="form-control-file" name="file" required>
<small class="form-text text-muted">{{'licenseFileDesc' | i18n : (user ? 'bitwarden_premium_license.json' : 'bitwarden_organization_license.json')}}</small>
</div>
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
<i class="fa fa-spinner fa-spin"></i>
<span>{{'submit' | i18n}}</span>
</button>
<button type="button" class="btn btn-outline-secondary" (click)="cancel()" *ngIf="!create">
{{'cancel' | i18n}}
</button>
</form>