]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/profile/schedule.tpl
Merge remote-tracking branch 'upstream/2022.12-rc' into diaspora-reshare
[friendica.git] / view / templates / profile / schedule.tpl
index ae7e0859729b70d6d82b585b4007badc3b3629ca..c3b08a40fcb5e90ca2dfb8df21ebcb546afc80ed 100644 (file)
@@ -1,23 +1,25 @@
 <div class="generic-page-wrapper">
        <h1>{{$title}}</h1>
-       <form action="profile/{{$nickname}}/schedule" method="post" autocomplete="off">
-               <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
-               <table id='application-block' class='table table-condensed table-striped'>
-                       <thead>
-                               <tr>
-                                       <th>{{$scheduled_at}}</th>
-                                       <th>{{$content}}</th>
-                               </tr>
-                       </thead>
-                       <tbody>
-                               {{foreach $schedule as $entry}}
-                               <tr>
-                                       <td>{{$entry.scheduled_at}}</td>
-                                       <td>{{$entry.content}}</td>
-                                       <td><a href="{{$baseurl}}/profile/{{$nickname}}/schedule/delete/{{$entry.id}}?t={{$form_security_token}}" class="icon s22 delete" title="{{$delete}}">&nbsp;</a></td>
-                               </tr>
-                               {{/foreach}}
-                       </tbody>
-               </table>
-       </form>
+       <table id="application-block" class="table table-condensed table-striped">
+               <thead>
+                       <tr>
+                               <th>{{$scheduled_at}}</th>
+                               <th>{{$content}}</th>
+                       </tr>
+               </thead>
+               <tbody>
+                       {{foreach $schedule as $row}}
+                       <tr>
+                               <td>{{$row.scheduled_at}}</td>
+                               <td>{{$row.content}}</td>
+                               <td>
+                                       <form action="{{$baseurl}}/profile/{{$nickname}}/schedule" method="post">
+                                               <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
+                                               <button type="submit" name="delete" value="{{$row.id}}" title="{{$delete}}" class="icon s22 delete"></button>
+                                       </form>
+                               </td>
+                       </tr>
+                       {{/foreach}}
+               </tbody>
+       </table>
 </div>