Self hosted FLOSS fitness/workout, nutrition and weight tracker
Rework HTML
Roland Geider479905573f64
diff --git a/angular/src/app/weight/weight-list/weight-list.component.html b/angular/src/app/weight/weight-list/weight-list.component.htmlindex d3361840e..460dfdc30 100644--- a/angular/src/app/weight/weight-list/weight-list.component.html+++ b/angular/src/app/weight/weight-list/weight-list.component.html@@ -9,33 +9,18 @@<ul class="list-group"><li class="list-group-item"><div class="row">- <div class="col-3">- <div i18n>- Date- </div>- </div>-- <div class="col-3" i18n>- Gewicht- </div>-- <div class="col-3" i18n>- Change- </div>-- <div class="col-2" i18n>- Days- </div>-- <div class="col-1">- </div>+ <div class="col-3 font-weight-bold" i18n>Date</div>+ <div class="col-3 font-weight-bold" i18n>Weight</div>+ <div class="col-3 font-weight-bold" i18n>Change</div>+ <div class="col-2 font-weight-bold" i18n>Days</div>+ <div class="col-1"></div></div></li>- <app-weight-detail- [entry]="entry.entry"- [dayDiff]="entry.dayDiff"- [weightDiff]="entry.weightDiff"- *ngFor="let entry of weightEntries | slice: (page-1) * pageSize : page * pageSize" ></app-weight-detail>+ <app-weight-detail+ [entry]="entry.entry"+ [dayDiff]="entry.dayDiff"+ [weightDiff]="entry.weightDiff"+ *ngFor="let entry of weightEntries | slice: (page-1) * pageSize : page * pageSize"></app-weight-detail></ul><ngb-pagination@@ -52,7 +37,7 @@<ng-template #content let-modal><div class="modal-header"><h4 class="modal-title" id="modal-basic-title" i18n>Add entry</h4>- <button type="button" class="close" aria-label="Close" (click)="modal.dismiss('Cross click')">+ <button type="button" class="close" (click)="modal.dismiss('Cross click')"><span aria-hidden="true">×</span></button></div>@@ -60,7 +45,7 @@<app-weight-edit (closeEdit)="onFormCancelled()"></app-weight-edit></div><div class="modal-footer">- <button type="button" class="btn btn-outline-dark" (click)="modal.close('Save click')">Close</button>+ <button type="button" class="btn btn-outline-dark" (click)="modal.close('Save click')" i18n>Close</button></div></ng-template>diff --git a/angular/src/app/weight/weight-list/weight-list.component.ts b/angular/src/app/weight/weight-list/weight-list.component.tsindex f4d337f6c..b8aff1d01 100644--- a/angular/src/app/weight/weight-list/weight-list.component.ts+++ b/angular/src/app/weight/weight-list/weight-list.component.ts@@ -36,7 +36,10 @@ export class WeightListComponent implements OnInit {}/**- * Processes the+ * Processes the weight entries and calculates the difference in days beween+ * entries.+ *+ * This could potentially be moved to the model*/async processWeightEntries(): Promise<void> {const entries = await this.service.loadWeightEntries();diff --git a/angular/src/locale/messages.xlf b/angular/src/locale/messages.xlfindex b7a1bf6ee..f6f10a94f 100644--- a/angular/src/locale/messages.xlf+++ b/angular/src/locale/messages.xlf@@ -272,6 +272,7 @@<notes><note category="location">src/app/weight/weight-chart/weight-chart.component.ts:50</note><note category="location">src/app/weight/weight-edit/weight-edit.component.html:14</note>+ <note category="location">src/app/weight/weight-list/weight-list.component.html:13</note></notes><segment><source>Weight</source>@@ -279,7 +280,7 @@</unit><unit id="7585826646011739428"><notes>- <note category="location">src/app/weight/weight-detail/weight-detail.component.html:23</note>+ <note category="location">src/app/weight/weight-detail/weight-detail.component.html:27</note></notes><segment><source>Edit</source>@@ -287,7 +288,7 @@</unit><unit id="7022070615528435141"><notes>- <note category="location">src/app/weight/weight-detail/weight-detail.component.html:24</note>+ <note category="location">src/app/weight/weight-detail/weight-detail.component.html:28</note></notes><segment><source>Delete</source>@@ -296,6 +297,7 @@<unit id="3973931101896534797"><notes><note category="location">src/app/weight/weight-edit/weight-edit.component.html:5</note>+ <note category="location">src/app/weight/weight-list/weight-list.component.html:12</note></notes><segment><source>Date</source>@@ -309,14 +311,46 @@<source>Save</source></segment></unit>+ <unit id="2159130950882492111">+ <notes>+ <note category="location">src/app/weight/weight-edit/weight-edit.component.html:31</note>+ </notes>+ <segment>+ <source>Cancel</source>+ </segment>+ </unit>+ <unit id="1230154438678955604">+ <notes>+ <note category="location">src/app/weight/weight-list/weight-list.component.html:14</note>+ </notes>+ <segment>+ <source>Change</source>+ </segment>+ </unit>+ <unit id="840951359074313455">+ <notes>+ <note category="location">src/app/weight/weight-list/weight-list.component.html:15</note>+ </notes>+ <segment>+ <source>Days</source>+ </segment>+ </unit><unit id="2540594807548326286"><notes>- <note category="location">src/app/weight/weight-list/weight-list.component.html:27</note>- <note category="location">src/app/weight/weight-list/weight-list.component.html:40</note>+ <note category="location">src/app/weight/weight-list/weight-list.component.html:39</note>+ <note category="location">src/app/weight/weight-list/weight-list.component.html:52</note></notes><segment><source>Add entry</source></segment></unit>+ <unit id="7819314041543176992">+ <notes>+ <note category="location">src/app/weight/weight-list/weight-list.component.html:48</note>+ </notes>+ <segment>+ <source>Close</source>+ </segment>+ </unit></file></xliff>