Merge pull request #19981 from colemanw/fullScreenDashlet
[civicrm-core.git] / ang / crmStatusPage / SnoozeOptions.html
index 7a890016a196deee5aec284571b51de508d22012..49865b2f7c1433797b0ce46d3e316f585030f0bc 100644 (file)
@@ -1,7 +1,11 @@
-<span ng-form="snoozeOptions" crm-ui-id-scope style="display: inline">
-    <span crm-ui-field="{name: 'snoozeOptions.until', title: ts('Snooze until')}" style="display: inline" >
-        <input name="until" crm-ui-datepicker ng-model="status.snoozeOptions.until" style="display: inline" />
-        <a crm-icon="fa-floppy-o" ng-click="snooze(status)" class="crm-hover-button" title="{{ts('Save Preference')}}"></a>
-      <span>
-</span>
- <!-- snooze options page, creates a box for picking a date you would like to snooze a status alert until -->
+<div ng-if="!status.is_visible">
+  <button ng-click="setPref(status, '', 1)" type="button" >{{:: ts('Unhide') }}</button>
+</div>
+<div ng-if="status.is_visible && status.severity_id >= 2">
+  <button type="button" class="hush-menu-button">{{:: ts('Hide') }}</button>
+  <ul style="display:none;">
+    <li ng-click="setPref(status, 'now + 1 week', 0)">{{:: ts('Remind me again in a week') }}</li>
+    <li ng-click="setPref(status, 'now + 1 month', 0)">{{:: ts('Remind me again in a month') }}</li>
+    <li ng-click="setPref(status, '', 0)">{{:: ts('Never remind me again') }}</li>
+  </ul>
+</div>