Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <form class="delete" action="{{action('Asset\GarduController@destroy', $Gardu['id_gardu'])}}" method="post">
  2. {{csrf_field()}}
  3. <input name="_method" type="hidden" value="DELETE">
  4. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  5. <button class="btn btn-danger" type="submit">Delete</button>
  6. </form>
  7. @endforeach
  8. </td>
  9.  
  10. </tr>
  11. @endforeach
  12. </tbody>
  13. </table>
  14. @endsection
  15.  
  16. <script>
  17. $(".delete").on("submit", function(){
  18. return confirm("Do you want to delete this item?");
  19. });
  20. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement