MOBILE-3814 calendar: Add collapsible footer save and discard buttons
parent
b3ccad2b92
commit
9bcbdfd3c6
|
@ -183,7 +183,7 @@
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item class="ion-text-wrap">
|
<ion-item class="ion-text-wrap">
|
||||||
<ion-label position="stacked">
|
<ion-label position="stacked">
|
||||||
<p>{{ 'addon.calendar.repeatweeksl' | translate }}</p>
|
<p class="item-heading">{{ 'addon.calendar.repeatweeksl' | translate }}</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
<ion-input type="number" name="repeats" formControlName="repeats" [disabled]="!form.controls.repeat.value">
|
<ion-input type="number" name="repeats" formControlName="repeats" [disabled]="!form.controls.repeat.value">
|
||||||
</ion-input>
|
</ion-input>
|
||||||
|
@ -231,23 +231,17 @@
|
||||||
<ion-input type="text" name="location" [placeholder]="'core.location' | translate" formControlName="location">
|
<ion-input type="text" name="location" [placeholder]="'core.location' | translate" formControlName="location">
|
||||||
</ion-input>
|
</ion-input>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<ion-item>
|
|
||||||
<ion-label>
|
|
||||||
<ion-row>
|
|
||||||
<ion-col *ngIf="hasOffline && eventId && eventId < 0">
|
|
||||||
<ion-button expand="block" fill="outline" (click)="discard()">
|
|
||||||
{{ 'core.discard' | translate }}
|
|
||||||
</ion-button>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col>
|
|
||||||
<ion-button expand="block" (click)="submit()" [disabled]="!form.valid" type="submit">
|
|
||||||
{{ 'core.save' | translate }}
|
|
||||||
</ion-button>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
</form>
|
</form>
|
||||||
|
<div collapsible-footer appearOnBottom *ngIf="loaded && !error" slot="fixed">
|
||||||
|
<div class="list-item-limited-width adaptable-buttons-row">
|
||||||
|
<ion-button *ngIf="hasOffline && eventId && eventId < 0" expand="block" fill="outline" (click)="discard()"
|
||||||
|
class="ion-margin ion-text-wrap">
|
||||||
|
{{ 'core.discard' | translate }}
|
||||||
|
</ion-button>
|
||||||
|
<ion-button expand="block" (click)="submit()" [disabled]="!form.valid" type="submit" class="ion-margin ion-text-wrap">
|
||||||
|
{{ 'core.save' | translate }}
|
||||||
|
</ion-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</core-loading>
|
</core-loading>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
|
@ -146,7 +146,8 @@ export class CoreCollapsibleFooterDirective implements OnInit, OnDestroy {
|
||||||
? this.finalHeight
|
? this.finalHeight
|
||||||
: this.initialHeight;
|
: this.initialHeight;
|
||||||
|
|
||||||
this.setBarHeight(newHeight); }
|
this.setBarHeight(newHeight);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.resizeListener = CoreDomUtils.onWindowResize(() => {
|
this.resizeListener = CoreDomUtils.onWindowResize(() => {
|
||||||
|
|
Loading…
Reference in New Issue