1
00:00:00,300 --> 00:00:06,930
Last time, we already create a detailed page and now we are going to add a daily function to this back

2
00:00:07,470 --> 00:00:10,840
and first at the department in the detail page.

3
00:00:10,860 --> 00:00:14,870
We are going to at the is equal to delete button.

4
00:00:16,860 --> 00:00:24,090
And then before the end of the party, we are going to add the squit and under the square we are going

5
00:00:24,090 --> 00:00:29,130
to select the department and we add the on Iran.

6
00:00:32,340 --> 00:00:40,430
And then the first thing is we are going to prevent the default essence, which is if we do not have

7
00:00:40,440 --> 00:00:44,910
these, will refresh the page after we checked the buttons.

8
00:00:45,810 --> 00:00:50,010
So now we are going to consult on the people in.

9
00:00:52,720 --> 00:01:00,490
Now we go to the page and refresh and then we try to click on the delete button, you can see it already

10
00:01:00,490 --> 00:01:02,380
pop up the message here.

11
00:01:02,620 --> 00:01:04,810
So which made it work?

12
00:01:05,710 --> 00:01:10,600
In order to get that IP, we also have to post her IP here.

13
00:01:11,050 --> 00:01:20,260
So now we passed the items document IP, so we type item thought on the school I.D. and then we goosestep

14
00:01:20,260 --> 00:01:26,890
percent and coastie and corrected and then we can get the IP by using Coniston.

15
00:01:27,310 --> 00:01:37,570
IP is equal to the department, but they have that I.D. So now we can try to not allow the IP to see

16
00:01:37,570 --> 00:01:39,220
whether it works or not.

17
00:01:39,690 --> 00:01:41,980
We refresh the page and click on the delete.

18
00:01:42,430 --> 00:01:43,810
Now you get the IP.

19
00:01:44,790 --> 00:01:53,370
Yeah, many ways to get it, the other way to get your I.D. using the typical method, which is AECO

20
00:01:53,370 --> 00:02:00,060
to eat or target thought Archibold, and since we're used to the idea.

21
00:02:00,630 --> 00:02:02,870
So now we passed the data, I'd be here.

22
00:02:03,270 --> 00:02:08,540
Now if we refresh the page and click on this piece, also can get the ID.

23
00:02:08,610 --> 00:02:17,850
So now we turn on the original method and now we are going to create the end point items and you pass

24
00:02:17,850 --> 00:02:18,490
the ID.

25
00:02:18,780 --> 00:02:23,260
Now we back to the server and we make the delete request.

26
00:02:24,060 --> 00:02:29,940
Now we are going to create a delete handle and this is actually very similar to this.

27
00:02:30,210 --> 00:02:35,460
So we can copy and paste here and we are going to change this to delete.

28
00:02:35,730 --> 00:02:43,530
And instead of five by IDEO, we are going to use the five by IP and delete and then we can delete this.

29
00:02:43,890 --> 00:02:51,030
Now we back to the item detail page and after we have this end point, we can use Fach.

30
00:02:51,390 --> 00:03:00,960
And then we passed the end point and then we specify the method is in it and then Tulpan and then we

31
00:03:01,110 --> 00:03:03,360
use the cash to catch the error.

32
00:03:03,900 --> 00:03:10,620
So now if we refresh the page and then we press delete and then we go back to the home page and now

33
00:03:10,620 --> 00:03:12,690
you can see the full.

34
00:03:12,690 --> 00:03:13,430
Already did.

35
00:03:13,830 --> 00:03:22,050
And maybe we can also choose another items and then we press the date again and then we go to the home.

36
00:03:22,560 --> 00:03:25,030
You see, you just have one item left.

37
00:03:25,290 --> 00:03:34,740
Now we are going to the airport ask and then we are going to try to do the same things right before.

38
00:03:34,950 --> 00:03:41,610
So after the date and then we go to redirect to the home page and then we try again.

39
00:03:42,000 --> 00:03:43,620
You can see it.

40
00:03:43,620 --> 00:03:45,470
Do not redirect to the home page.

41
00:03:46,170 --> 00:03:51,850
And this is because this request is not from the form, for example, in this post that we crash.

42
00:03:52,230 --> 00:04:00,810
For example, if we post the new items we are posting from the forms rather than like this time we are

43
00:04:00,810 --> 00:04:05,050
going to use the HRC request to make the delete request.

44
00:04:05,430 --> 00:04:09,930
So this make this redirects to the home page not work.

45
00:04:10,290 --> 00:04:14,500
So in the next part we are going to fix these problems.
