Hi
I am trying to do something similar to ical delete events you can
delete just the current event or all future occurrences
i am currently using a JavaScript window called modalbox which let me
write pure html into it
-
is there a way to create a delete form manually ? what i have in
mind is 2 different params that i’ll process in my controller
according to the button that was clicked just like i already have in
my edit page (which is working) -
any other idea how this functionality can be accomplished?
here’s my code:
<%- @events.each do |event|%>
<tr class=<%= cycle(‘odd’, ‘even’)%> >
<%= link_to_function “delete”,
“Modalbox.show(‘
You are about to change a recurring class.
Do
you want to change only this occurrence of the class, or this and all
future occurrences?
value=“Only This Class” /> <input name=“change_all_future” type=
“submit” value=“All Future Classes”/> <input type=“button”/
value=“Cancel” onclick=“Modalbox.hide()”>’, {title:
‘Changing a recurring class’});” %>