Hello, friend, welcome back.
In you previous video, we successfully update our album, so now I want to do if you want to delete
this album, then how can do that work for doing this here in our edit albums into this edit album.
Also here we have to do we have to do it with a specific one of the idea.
Right.
So for doing this, first of all, I wanted to create one of the button.
So, you know, our edit album, Paice, we have to create it and go to our edit album together form
so that we don't need this model.
We don't need this.
You are.
We need it.
And that's our album list.
So we also don't need this.
OK, so not into the edit album here.
I want to do after this.
That is our form after this fall.
My take one of the bracket, I take one of the bracket and after this I want to do and create another
Bartons.
I just simplify it if I need the heavy.
First of all, I want to take all the class one of the bootstrap class.
So I just take one of the booster class as a B10 and then V.T. and also then have another class as a
danger.
That means it will be as a rate.
And then I define liberty and our small size.
I just name it as it is.
OK, and then I just simply defined the a delegate that will be our direct button and into the delete
button here if you're not going to save all and now if you refresh it now you can see that is a delay
button.
So friend here, if you want to add this type of condition, first of all, if you click on the tiller,
first of all, it should be lowered on the confirmation message.
That means one of the pop up message.
I really want to delete this album or not.
So if you click as it is, then after that is you should be reelected.
So if you want to do this type of work, then you can do it with using one of the JavaScript.
So they have all of the JavaScript code.
I want to apply it on here.
And this code name as a unclick seem to the unclick that have also on the function as a confirms.
I just simply defined the return and the confirm.
OK, we've done confoundingly the return from Libya.
Whatever the message you want to display, you can display it.
I just came out of the Delek.
This album, this step up on the masses is still the display.
OK, now if you click, as I say, volle, so here I defined as unclick return and confirm function
that is of the JavaScript function and then the Dilek.
This album that means here shall be so fast.
If you click as it is then it should be deleted.
So lisick I just click the save all this click as a direct.
You can see they have some of the pop up and that is a clever pop up confirmation message as they like
this album or not.
So if you click the cancel then it should be ok rather than if you click ok then it should be deflected.
Right.
And also I want to do I want to create another page like Mwencha will be lactated soon after that,
directly related to our another page, one of the Dilek page.
And here I also want to show some of the message as this album is directed.
So these type of things I want to do for doing this in our template into the template here I want to
do and to create all the new file and I just name it as a dialect direct SGML like a friend.
So that is our director.
That's General Sabater.
I want to do, you know, edit which is essential, all the essential things I want to copy like that.
I just simply copied and here I just simply paste it and also need that and blog.
So I just simply defend that and block.
OK, that will be at a dialect.
Delek base, so this type up, one of the techs right now, I'm actually defending on here.
OK, so that is our base.
That means the base is dismal and then our that is our block.
Perfect.
So now we have to do we have to create one of the functions for this one.
So now go to our view and the view after this.
After this, I want to do want to create the function and define that function as a deaf and I name
it as a direct Elbaum delegate.
Underscore Alabam OK, I lamido the direct album.
And here also we have to parse that request and also we have to pass that I this I will add that things
later, first of all, which is essential like the action.
So now Fred, I think you can understand it.
How much is it?
Because everything is very much relative.
So I just simply defined the return and render, render and render sortie into the render.
I have to pass our request right into the request.
We have to load our base.
So here I have already defined our phase in our faster, faster and the faster that deflect the elected
XHTML.
Right.
And then also and return the context to context.
Our discussion say the same predefined addiction and also make sure you added the column.
I always forget it.
You consider exactly the column every time I have it, use it.
So that is our function to the function request.
We have to add that column, given that that's all.
So now we have to also create one that you model for this one.
So go to that our you are and better.
I just simply copied it.
So now I just simply prostitutes will be as idiolect or dialect, Taliban, whatever you want.
So now I just simply defended the dialect album album and then also we have to define some dialis.
I will do that later.
So now that is our view and that is our dialect album.
So if you want to change that name, that means here I have already created our these functions, our
function name as a dialect album.
So I just simply defined the album under your name.
So right now I'm actually using that same name if you want to change it.
I think you can well understand about it.
So with this, we actually actually get out this part, right?
That means into the part we have our already you.
So that is our name.
And here I defined that name as a dialect album.
And also, as I told you, we have to do we have to deflect it.
That means we have to direct this album with a specific one of the idee.
Right.
Like for the resource.
If you go to our edit album and here into the edit album in this album in particular, that position,
I have also defined the idea.
And also, as I told you, we have to do we have to it with a specific one of the idea.
That means if you want to delete this album, you have to delete this album with this idea.
Right.
So for the resource in our edit album into to the edit album here, if you go to that idiot album pays
into the album here, I define our edit form with as the paragraph.
So here to have some of the ideas we have already passed from unwire, which pays from our dysfunction,
that means the edit album function under the edit album here.
I have already defined not the idea, but you know, delek into the direct e-mail here.
We don't need to be to find any ideas of what the is.
I want to do.
I want to define one of the ideas in our edit album into the edit album pays after this.
OK, that means here after this I want to before in our edit album I pass into the diction update and
here I pass that edit from right through to the edit album.
Here I pass our edit form and also a password unsuccess text.
So no one from to this position that is from our edit album.
I want to pass on the idea for our dialect for the reasons here I just copy and here I find another
one as a condition.
Our update and into the update.
Also, I want to learn to pass out ideas in our edit album.
Pays sidedly determine peace.
I want to pass the album.
OK, I just named it as album one of the idea.
So here I want to pass out these requested ideas.
So that is already posted because of fall into the edit album.
Here I define our delek form.
That is our direct pattern.
So now we can actually it with a specific ID.
So for the reasons here, I have defined this idea as a al-hammadi.
OK, I hope people will understand about it.
So now we have to do we have to define out what that means in our edit into the CD here.
We have to define that you are still so here.
I just simply defined that you are.
So that will be the percentages sorry into the percentages here.
I want to do all the files that you are lucky and then we have to define our Fastweb.
That means our app name.
Right.
Our app name has a fast name and then I have already defined our name.
You know you are l I defined that app name as a dialect album.
That means our.
So here I just simply copied and now here are the final hours of the album and after the album also
they told you we have to deal with a specific one by database.
That is our album.
And that is actually our idea.
Right.
So we have to deal with it to define one of the name of the album I'd name is Al-Hammadi and into this
album be in from our view and from here, I have already passed another one as our album idea.
I passed that things with this one that was requested.
I will be as the album.
I regret the fact that it was and have actually added that part.
I hope people will understand about it because we have to also deal with the specific one of the ideas.
So now I just simply pass it in our edit album.
That means here I just simply pass it.
So now it's still very addicted to our Delek paste.
That means that the album pays with the specifics of the idea.
And also we have to add this album if you know what you want to write, because you also have to define
that specific.
I'd say Sylvette just like dubstep.
I just simply added.
So our album idea have defined, I have defined our album I do will be as album idea.
So that is actually the album might be perfect.
So now decide also we have to add in our view, in our view, I have already killed along the function
as a delayed album into the request.
Here I have to pass all requested ideas and name it as a Al-Hammadi.
So now friend, very clear to you, I am actually doing this like are clear to save all I stole it.
Everything is running well.
And now here like this page I just refresh it and not only click as a dialect and if you click it ok.
Yes.
Now considering now it's actually Decter to our direct album with the idea.
Right.
So that is the idea I have defined.
So now I think you are going to understand about this two here.
I define our requested ID and I just passed that things in our outdated album and into the edit album.
Here I define our final step and should be declared our direct album Pei's with our requested ID.
So before that, as you can see that is actually our two ideas and when you actually delete it then
it's indicated to our select album page we decided that means we decided I want to delete our D aspecific
album data.
So now here we have to define that condition in our view for this data.
So here if you go to that view, so after this album, OK, album here, I take one of the variable
as an album, I take on the variable of the album and then I define our tabi name as the album.
Right, our album table.
And then I did all that, our objects.
And then I hope to do actually find that get right filled.
And then our primary key, our primary key.
I have also defined our primary key will be as a D requested, I'd say, just simply defined the sequester
data to know how to do and it.
So I just remember the the method as a direct OK, I just simply defined as it happens, this data will
be deflective, will still be Delek.
I want to learn to pass on the message.
So here I define all the ideas as a direct success, like a direct address for success.
So they step up.
One of the ideas I want to pass would sound the message.
So here I define the message.
It should be as the album the elected, like the Lactaid successfully.
So this type of search will be directed at this type of message as the Alabama director successfully
so here, I define our discussion and the decision.
I pass our discussion in our delek base.
That means that now we can actually visible our this message that this is the message at the deal success.
Right.
So now we have to add it in our dialects.
That means here.
So it'll be just like Sam before we already did.
That works.
I just did the day for this on end of the day.
Plus, I definitely alert all the bootstrap class alert alert danger.
OK, just name it as alert alert danger one of the class.
And here I want to do I want to pass out this name from here.
I pass our ID as a direct success.
I just simply define our direct success.
Ratchford I think it's very clear to you right now.
So now let's check this out.
If you look at the Savol, so I just click on the Save All.
Check it, everything is well, sort of go to our side, go to home, and if you go to our Michael Jackson
and here they have the two hour album, so now one to do to remove our D.
Hello.
So that is actually hello is our last name is a Michael Jackson release date and the number of visitors
wanting to go to the elected Telek.
First of all, as we show our JavaScript as a day like this album, if you click on the OK.
Yes, now consists of perfectly elected and re-elected to our elected elbaum, and that is our Amdo
idea that also is also showing our Delek base as the album Delek successfully.
So here I just simply fell on the alert and that is our message.
So here I define this message with this idea as album director successfully.
So now it's perfectly visible.
So now it's perfectly display our message.
And now if you go home, go to the Michael Jackson here.
You can see that actually the two that are right now are we have already the electronic data as a hello.
So now they have the only one data so far.
And I hope we can all understand about it.
So from here, we successfully dilek our album.
So now if you also want to direct that artist name, how can do that work?
You know, next video, I will show you that things with the live example.
So thanks for watching and I'll see you in the next video.