[Rt-commit] r19275 - in rt/3.8/trunk: . sbin
sartak at bestpractical.com
sartak at bestpractical.com
Fri Apr 17 20:28:28 EDT 2009
Author: sartak
Date: Fri Apr 17 20:28:27 2009
New Revision: 19275
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/sbin/rt-email-dashboards.in
rt/3.8/trunk/share/html/Dashboards/Subscription.html
Log:
r82295 at onn: sartak | 2009-04-17 20:28:02 -0400
Add monday through friday subscriptions
Modified: rt/3.8/trunk/sbin/rt-email-dashboards.in
==============================================================================
--- rt/3.8/trunk/sbin/rt-email-dashboards.in (original)
+++ rt/3.8/trunk/sbin/rt-email-dashboards.in Fri Apr 17 20:28:27 2009
@@ -176,6 +176,10 @@
elsif ($subscription->SubValue('Frequency') eq 'monthly') {
next if $subscription->SubValue('Dom') != $dom;
}
+
+ elsif ($subscription->SubValue('Frequency') eq 'm-f') {
+ next if $dow eq 'Sunday' || $dow eq 'Saturday';
+ }
}
my $email = $subscription->SubValue('Recipient')
Modified: rt/3.8/trunk/share/html/Dashboards/Subscription.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Subscription.html (original)
+++ rt/3.8/trunk/share/html/Dashboards/Subscription.html Fri Apr 17 20:28:27 2009
@@ -94,10 +94,15 @@
<tr><td class="label">
<&|/l&>Frequency</&>:
</td><td class="value">
+
<input type="radio" name="Frequency" value="daily" <% $fields{'Frequency'} eq 'daily' ? 'checked="checked"' : "" %>>
<&|/l&>daily</&>
</input><br />
+<input type="radio" name="Frequency" value="m-f" <% $fields{'Frequency'} eq 'm-f' ? 'checked="checked"' : "" %>>
+ <&|/l&>Monday through Friday</&>
+</input><br />
+
<input type="radio" name="Frequency" value="weekly"<% $fields{'Frequency'} eq 'weekly' ? 'checked="checked"' : "" %>>
<&|/l&>weekly</&></input>, <&|/l&>on</&>
<select name="Dow">
More information about the Rt-commit
mailing list