Skip to content

Commit

Permalink
Add message for suspended PDs [#700]
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrupinski committed May 28, 2018
1 parent 00375fd commit 3ffab05
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
4 changes: 3 additions & 1 deletion polymer/src/elements/message-box.html
Expand Up @@ -43,7 +43,9 @@
<div class="icon-wrapper self-center">
<iron-icon icon="icons:info"></iron-icon>
</div>
<content></content>
<div class="self-center">
<content></content>
</div>
</div>
</template>

Expand Down
6 changes: 5 additions & 1 deletion polymer/src/elements/page-header.html
Expand Up @@ -55,7 +55,7 @@

<div class="layout horizontal baseline">

<div class="title flex ">
<div class="title flex">
<div class="above-title">
<content select=".above-title"></content>
</div>
Expand All @@ -74,6 +74,10 @@ <h1>[[title]]<content select=".in-title"></content></h1>
</div>
</div>

<div class="header-content">
<content select=".header-content"></content>
</div>

<div class="tabs">
<content select=".tabs"></content>
</div>
Expand Down
16 changes: 16 additions & 0 deletions polymer/src/pages/app/ip-reporting/pd/pd-details.html
Expand Up @@ -4,6 +4,7 @@
<link rel="import" href="../../../../../bower_components/iron-pages/iron-pages.html">

<link rel="import" href="../../../../elements/page-header.html">
<link rel="import" href="../../../../elements/message-box.html">
<link rel="import" href="../../../../elements/ip-reporting/pd-details-overview.html">
<link rel="import" href="../../../../elements/ip-reporting/pd-details-reports.html">
<link rel="import" href="../../../../elements/ip-reporting/pd-details-calculation-methods.html">
Expand All @@ -27,6 +28,10 @@
:host {
display: block;
}

.header-content {
margin: .5em 0;
}
</style>

<app-route
Expand All @@ -36,6 +41,17 @@
</app-route>

<page-header title="[[ pd.title ]]" back="pd?&status=Sig%2CAct%2CSus">
<template
is="dom-if"
if="[[_equals(pd.status, 'Suspended')]]"
restamp="true">
<message-box
class="header-content"
type="warning">
PD is suspended, please contact UNICEF programme focal person to confirm reporting requirement.
</message-box>
</template>

<div class="tabs">
<paper-tabs
selected="{{ routeData.dashTab }}"
Expand Down

0 comments on commit 3ffab05

Please sign in to comment.