Last modified by Adrian Nöthlich on 2025/01/05 01:25

Show last authors
1 {{velocity output="false"}}
2 $services.localization.use('document', 'XWiki.Notifications.Code.LegacyNotificationAdministrationTranslations')
3
4 #if ($request.migrate)
5 #if ($request.mode == 'since')
6 #set($since = $request.since)
7 #if ($since)
8 #set($since = $datetool.toDate('yyyy-MM-dd', $since))
9 #end
10 #end
11 $services.eventstream.startLegacyMigration($since)
12 #end
13 {{/velocity}}
14
15 {{translation key="legacy.event.migration.description"/}}
16
17 {{velocity}}
18 {{info}}
19 {{translation key="legacy.event.count.store"/}}: **$services.eventstream.eventCount**
20 {{translation key="legacy.event.count.legacy"/}}: **$services.eventstream.legacyEventCount**
21 {{/info}}
22
23 {{html}}
24 <form id="migrate" action="$escapetool.xml($xwiki.relativeRequestURL)" method="post" class="xform third">
25 <div>
26 <input type="radio" id="mode_alltime" name="mode" value="alltime"#if($request.mode != 'since')checked#end/>
27 <label for="mode_alltime">$services.localization.render('legacy.event.migration.alltime')</label>
28 </div>
29 <div>
30 <input type="radio" id="mode_since" name="mode" value="since"#if($request.mode == 'since')checked#end/>
31 <label for="mode_since">$escapetool.html($services.localization.render('legacy.event.migration.since'))</label>
32 <label for="since" class="sr-only">$escapetool.html($services.localization.render('legacy.event.migration.since.picker.label'))</label>
33 <input type="date" id="since" name="since"#if($request.since) value="$escapetool.xml($request.since)"#end max="$datetool.format('yyyy-MM-dd', $datetool.date)"/>
34 </div>
35 <div class="buttons"><span class="buttonwrapper"><input type="submit" value="$escapetool.xml($services.localization.render('legacy.event.migration.start'))" name="migrate" class="button"/></span></div>
36 </form>
37
38 #set($jobStatus = $services.eventstream.getLegacyMigrationStatus())
39 #if ($jobStatus)
40 #template("job_macros.vm")
41 #displayJobStatus($jobStatus)
42 #end
43 {{/html}}
44
45 #set ($showCompleteStepButton = true)
46 {{/velocity}}