[freeside-commits] freeside/httemplate/edit part_event.html, 1.3, 1.4
Mark Wells
mark at wavetail.420.am
Wed Aug 31 22:13:11 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv1936/httemplate/edit
Modified Files:
part_event.html
Log Message:
svc_acct events for usage limits, #13202
Index: part_event.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_event.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- part_event.html 15 Apr 2008 13:42:39 -0000 1.3
+++ part_event.html 1 Sep 2011 05:13:09 -0000 1.4
@@ -22,6 +22,11 @@
type => 'checkbox',
value => 'Y',
},
+ { field => '_initialize',
+ type => 'checkbox',
+ onchange => '_initialize_changed',
+ value => 'Y',
+ },
{ type => 'title',
value => 'Event Conditions',
},
@@ -54,7 +59,6 @@
layer_values_callback => $action_layer_values,
html_between => n_a('action'),
},
-
],
'labels' => {
'eventpart' => 'Event',
@@ -67,6 +71,7 @@
'conditionname' => 'Add new condition',
#'weight',
'action' => 'Action',
+ '_initialize' => 'Initialize event',
},
'viewall_dir' => 'browse',
'new_callback' => sub { #start empty for new events only
@@ -469,6 +474,16 @@
}
+ function _initialize_changed(what) {
+ document.getElementById('disabled').disabled = what.checked;
+ if ( what.checked ) {
+%# because it's not an immediately obvious concept
+ alert('Initializing the event will treat it as "already run" on the '+
+ 'current date for all existing customers. This affects '+
+ 'conditions that prevent running an event more than once.');
+ }
+ }
+
</SCRIPT>
<%once>
More information about the freeside-commits
mailing list