Changes for page Send Mail Status JSON
Last modified by Thomas Coelho (local) on 2023/08/09 10:59
From version 1.1
edited by Laura Sagunski
on 2022/09/27 12:39
on 2022/09/27 12:39
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-mail-ui/14.6]
To version 2.1
edited by Thomas Coelho (local)
on 2023/08/09 10:59
on 2023/08/09 10:59
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-mail-ui/15.5]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. sagunski1 +xwiki:XWiki.coelho - Content
-
... ... @@ -98,16 +98,21 @@ 98 98 #if ($xcontext.isMainWiki()) 99 99 #set($discard = $row.put('wiki', $!item.wiki)) 100 100 #end 101 + #set ($actionHTML = "<form action='' method='post'> 102 + <input name='mail_id' value='$!item.messageId' type='hidden'/> 103 + <input name='batch_id' value='$!item.batchId' type='hidden'/>") 101 101 #if("$!item.state" != 'sent') 102 - #set($discard = $row.put('actions', "<form action='' method='post'> 103 - <input name='mail_id' value='$!item.messageId' type='hidden'/> 104 - <input name='batch_id' value='$!item.batchId' type='hidden'/> 105 - <span class='btn-group text-left'><input name='mailsendingaction_resend' value='${escapetool.xml($services.localization.render('Mail.SendMailStatus_livetable.resend'))}' class='btn btn-primary btn-sm' type='submit'> 106 -</span> 107 - </form>" )) 108 - #else 109 - #set($discard = $row.put('actions', '')) 105 + ## Add the Resend action 106 + #set ($actionHTML = "${actionHTML} 107 + <span class='btn-group text-left'><input name='mailsendingaction_resend' value='${escapetool.xml($services.localization.render('Mail.SendMailStatus_livetable.resend'))}' class='btn btn-primary btn-sm' type='submit'> 108 + </span>") 110 110 #end 110 + ## Add the Delete action 111 + #set ($actionHTML = "${actionHTML} 112 + <span class='btn-group text-left'><input name='mailsendingaction_delete' value='${escapetool.xml($services.localization.render('Mail.SendMailStatus_livetable.delete'))}' class='btn btn-default btn-sm' type='submit'> 113 + </span> 114 + </form>") 115 + #set($discard = $row.put('actions', $actionHTML)) 111 111 #set($discard = $rows.add($row)) 112 112 #end 113 113 $jsontool.serialize($resultmap)