Changes for page Send Mail Status JSON
Last modified by Thomas Coelho (local) on 2023/08/09 10:59
From 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]
To 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]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. coelho1 +xwiki:XWiki.sagunski - Content
-
... ... @@ -98,21 +98,16 @@ 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'/>") 104 104 #if("$!item.state" != 'sent') 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>") 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', '')) 109 109 #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)) 116 116 #set($discard = $rows.add($row)) 117 117 #end 118 118 $jsontool.serialize($resultmap)