﻿<esh-header url="/catalog">Back to catalog</esh-header>
<div class="container">
    <div *ngIf="campaigns?.data?.length > 0">
        <esh-pager [model]="paginationInfo" (changed)="onPageChanged($event)"></esh-pager>

        <div class="card-group esh-campaign-items row">
            <div class="esh-campaign-item col-md-4"
                 *ngFor="let item of campaigns.data">

                <div class="card-block">
                    <h4 class="card-title esh-campaigns-name">{{item.name}}</h4>
                    <img class="card-img-top esh-campaigns-thumbnail" src="{{item.pictureUri}}" alt="{{item.name}}">
                    <input [ngClass]="{'esh-campaign-button': true}" type="submit" value="More details" routerLink="/campaigns/{{item.id}}">
                </div>
                <div class="card-footer">

                    <small class="text-muted">
                        From {{item.from | date }} To {{item.to | date }}
                    </small>
                </div>
            </div>
        </div>

        <esh-pager [model]="paginationInfo" (changed)="onPageChanged($event)"></esh-pager>
    </div>
    <div *ngIf="campaigns?.data?.length == 0">
        <span>THERE ARE NO RESULTS THAT MATCH YOUR SEARCH</span>
    </div>
</div>


﻿<esh-header url="/catalog">Back to catalog</esh-header>
<div class="container">
    <div *ngIf="campaigns?.data?.length > 0">
        <esh-pager [model]="paginationInfo" (changed)="onPageChanged($event)"></esh-pager>

        <div class="card-group esh-campaign-items row">
            <div class="esh-campaign-item col-md-4"
                 *ngFor="let item of campaigns.data">

                <div class="card-block">
                    <h4 class="card-title esh-campaign-name">{{item.name}}</h4>
                    <img class="card-img-top esh-campaign-thumbnail" src="{{item.pictureUri}}" alt="{{item.name}}">
                    <input [ngClass]="{'esh-campaign-button': true}" type="submit" value="More details" routerLink="/campaigns/{{item.id}}">
                </div>
                <div class="card-footer">

                    <small class="text-muted">
                        From {{item.from | date }} To {{item.to | date }}
                    </small>
                </div>
            </div>
        </div>

        <esh-pager [model]="paginationInfo" (changed)="onPageChanged($event)"></esh-pager>
    </div>
    <div *ngIf="campaigns?.data?.length == 0">
        <span>THERE ARE NO RESULTS THAT MATCH YOUR SEARCH</span>
    </div>
</div>


Update spa marketing campaign view
Update spa marketing campaign view
