Commit 1f09b6fa authored by dev0tion's avatar dev0tion

Add bootstrap grids to all components

parent 40dad775
<h1>Welcome to Breeze</h1> <div class="container">
<form *ngIf="hasWallet" [formGroup]="openWalletForm" (ngSubmit)="onDecryptClicked()"> <div class="row">
<p>Choose the wallet you want to open:</p> <div class="col">
<h1>Welcome to Breeze</h1>
</div>
</div>
<div class="row">
<div class="col">
<form *ngIf="hasWallet" [formGroup]="openWalletForm" (ngSubmit)="onDecryptClicked()">
<div class="form-group"> <div class="form-group">
<label>Select wallet name to open:</label> <label>Select wallet name to open</label>
<select class="form-control" formControlName="selectWallet"> <select class="form-control" formControlName="selectWallet">
<option *ngFor="let wallet of wallets" [value]="wallet">{{wallet}}</option> <option *ngFor="let wallet of wallets" [value]="wallet">{{wallet}}</option>
</select> </select>
...@@ -15,13 +21,28 @@ ...@@ -15,13 +21,28 @@
<div class="form-group"> <div class="form-group">
<button type="submit" [disabled]="!openWalletForm.valid" class="btn btn-success">Decrypt</button> <button type="submit" [disabled]="!openWalletForm.valid" class="btn btn-success">Decrypt</button>
</div> </div>
</form> </form>
</div>
<div *ngIf="hasWallet;else no_wallet"> </div>
<p> If you like to create or restore a wallet please click the button below.</p> <div class="row">
</div> <div class="col" *ngIf="hasWallet;else no_wallet">
<ng-template #no_wallet> If you like to create or restore a wallet please click the button below.
</div>
</div>
<div class="row">
<div class="col">
<ng-template #no_wallet>
<p> Looks like you're new here. Please create or restore a wallet.</p> <p> Looks like you're new here. Please create or restore a wallet.</p>
</ng-template> </ng-template>
</div>
</div>
<div class="row">
<div class="col">
<button type="button" (click)="onCreateClicked()" class="btn btn-success">Create or restore wallet</button>
</div>
</div>
</div>
<button type="button" (click)="onCreateClicked()" class="btn btn-success">Create or restore wallet</button>
<div class="content-wrapper"> <div class="container">
<h1> <div class="row">
Please create a new wallet. <div class="col">
</h1> <h1>Please create a new wallet.</h1>
<form [formGroup]="createWalletForm" (ngSubmit)="onCreateClicked()"> </div>
</div>
<div class="row">
<div class="col">
<form [formGroup]="createWalletForm" (ngSubmit)="onCreateClicked()">
<div class="form-group"> <div class="form-group">
<label>Name:</label> <label>Name:</label>
<input class="form-control" formControlName="walletName" type="text" placeholder="Enter a name for your wallet."> <input class="form-control" formControlName="walletName" type="text" placeholder="Enter a name for your wallet.">
...@@ -23,14 +27,18 @@ ...@@ -23,14 +27,18 @@
<div class="form-group"> <div class="form-group">
<button type="submit" [disabled]="!createWalletForm.valid" class="btn btn-success">Create Wallet</button> <button type="submit" [disabled]="!createWalletForm.valid" class="btn btn-success">Create Wallet</button>
</div> </div>
</form> </form>
<div> </div>
</div>
<div class="row">
<div class="col">
<label>Mnemonic:</label> <label>Mnemonic:</label>
</div>
<div>
<label>{{responseMessage}}</label> <label>{{responseMessage}}</label>
</div> </div>
<div class="form-group"> </div>
<div class="row">
<div class="col">
<button type="button" class="btn btn-success" (click)="onBackClicked()">Back</button> <button type="button" class="btn btn-success" (click)="onBackClicked()">Back</button>
</div> </div>
</div>
</div> </div>
<h1>Welcome to Breeze.</h1> <div class="container">
<p> <div class="row">
<div class="col">
<h1>Welcome to Breeze.</h1>
</div>
</div>
<div class="row">
<div vlass="col">
<p>
If you haven't used Breeze before, please create a new wallet. If you haven't used Breeze before, please create a new wallet.
</p> </p>
<p> <p>
Users who have previously used Breeze, can choose to recover their wallet. Users who have previously used Breeze, can choose to recover their wallet.
</p> </p>
<button (click)="onCreateClicked()">Create</button> </div>
<button (click)="onRecoverClicked()">Recover</button> </div>
<button (click)="onBackClicked()">Back</button> <div class="row">
<div class="col">
<button (click)="onCreateClicked()" class="btn">Create</button>
</div>
<div class="col">
<button (click)="onRecoverClicked()" class="btn">Recover</button>
</div>
<div class="col">
<button (click)="onBackClicked()" class="btn">Back</button>
</div>
</div>
</div>
<h1>History</h1> <div class="container">
<table *ngIf="transactions; else noTransactions"> <div class="row">
<div class="col">
<table *ngIf="transactions; else noTransactions">
<thead> <thead>
<th>Timestamp</th> <th>Timestamp</th>
<th>Amount</th> <th>Amount</th>
...@@ -14,5 +16,12 @@ ...@@ -14,5 +16,12 @@
<td>{{ transaction.confirmed }}</td> <td>{{ transaction.confirmed }}</td>
<td>{{ transaction.txId }}</td> <td>{{ transaction.txId }}</td>
</tr> </tr>
</table> </table>
<ng-template #noTransactions>Looks like you haven't made any transactions yet.</ng-template> </div>
<div class="row">
<div class="col">
<ng-template #noTransactions>Looks like you haven't made any transactions yet.</ng-template>
</div>
</div>
</div>
</div>
<div class="content-wrapper" id="receiveForm"> <div class="container" id="receiveForm">
<div class="row">
<div class="col">
<h1>Receive</h1> <h1>Receive</h1>
<div> </div>
<div> </div>
<div class="row">
<div class="col">
<table *ngIf="address"> <table *ngIf="address">
<thead> <thead>
<th>Receive address: </th> <th>Receive address: </th>
...@@ -10,6 +14,10 @@ ...@@ -10,6 +14,10 @@
<td>{{ address }}</td> <td>{{ address }}</td>
</tr> </tr>
</table> </table>
</div>
</div>
<div class="row">
<div class="col">
<button type="button" class="btn" (click)="activeModal.close('Close click')">Close</button> <button type="button" class="btn" (click)="activeModal.close('Close click')">Close</button>
</div> </div>
</div> </div>
......
<div class="content-wrapper" id="sendForm"> <div class="container" id="sendForm">
<div class="row">
<div class="col">
<h1>Send</h1> <h1>Send</h1>
</div>
</div>
<div class="row">
<div class="col">
<form [formGroup]="sendForm" (ngSubmit)="send()"> <form [formGroup]="sendForm" (ngSubmit)="send()">
<div class="form-group"> <div class="form-group">
<label>Pay To</label> <label>Pay To</label>
...@@ -23,4 +29,6 @@ ...@@ -23,4 +29,6 @@
<button type="submit" [disabled]="!sendForm.valid" class="btn btn-success">Send</button> <button type="submit" [disabled]="!sendForm.valid" class="btn btn-success">Send</button>
<button type="button" class="btn" (click)="activeModal.close('Close click')">Close</button> <button type="button" class="btn" (click)="activeModal.close('Close click')">Close</button>
</form> </form>
</div>
</div>
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment