Now we have all the required tables and require entity class changes inside our project in order to
implement the classes related enhancement under the admin dashboard.
So in order to leverage this entity classes that we have created so far.
Let's go to the admin controller.
So as of now, you can see here I'm just returning the view name, which is the classes start heads
to your man.
But inside this class has dark history email since we are going to allow the admin to create the new
classes by providing the class name.
We need to pass a new object off my easy class entity for the same.
Here I can use the highlighted chord like inside model and view object, which I am going to written.
I'm trying to add an object with a variable name, easy class, and inside this, I'm trying to return
the empty object of my E-Z class entity and inside my classes.
Dart hits DML.
I'm going to use this object and I'm going to buy this object to my hat's DML form, using which my
admin can create new classes and the same information can can come back to the controller layer and
instead the controller layer.
We can save that information eventually into the database.
So just as a medium of transferring data, we are going to use this object of this easy class.
So now we are done already quite changes inside these display classes method.
As a step, we need to create a new template with the name classes dot Ketcham.
So for the same, let me go to the template folder.
Under this template folder, I'm going to create a new Hits DML file with the name classes dot kids
HTML, and I'm going to delete all this default content.
And in this place, I'm going to copy paste the it's symbol code I already have.
So here I am, pasting all the code that I have so it can see here.
This is very similar to that has HTML files.
Plus, we haven't had that important because we have a banner section and after the banner section you
can see we have a button with the name a class.
So using this button, my admin can create a new class by providing the class name information.
But here you can see I'm trying to use the history of HTML model.
And since I'm using the HTML model here, I'm seeing when someone click on this, add a class button,
the model that I have against the name create class to be popped up to my end user.
So if you look for the model with the same name, like we have a higher code, which is our type model
and the idea that we have here is a same value.
So whenever someone tried to click on this, add a class button, this model will be open.
And this model will appear as a pop up to my end user and inside that we have a form.
And inside this form, you can see we are taking up the form with an object of Yeezy class, which you
are sending from the admin controller.
And inside this form, we just have one filled with the name name.
And when the user submitting that form, it will come to an action with the name slash admin slash.
Add a new class so we can implement this in the coming lectures.
For now, I'm just giving this for your reference.
After that, we also have another table inside these classes that Hitachi email with, which will display
all the classes available inside my easy school web application.
So what is a class?
What is the class name?
And this table data will be iterated based upon the object that I am going to send from the back end
with the name easy classes.
We are eight percent these easy classes from the controller code.
Definitely.
Once we start exploring the classes details into the database inside the same page, we can display
the all the available classes as well to the admin.
And inside this table, you can see what we are trying to display.
What is a class eight?
What is a class name?
And we also have two buttons for my admin with the name, view and delete.
So Delete will delete the entire class, whereas if the admin is clicking on this view, he will be
redirected to another web page where he can see the list of all the students or persons assigned to
a particular class.
So definitely as of now, we don't have all this functionality.
We are going to implement this step by step inside our web application.
And after this table, we have a back button which which will take my admin back to the dashboard and
the class.
We also have it for better input.
I know right now you may have still some questions how this space is going to work, but when we see
a demo, I'm sure it will be cleared for you.
So let me do your bit here.
So now my build is completed.
I can start my web application by going to this easy school application, and I'm trying to start in
a bit, but more so now my Sarwari starter, let me go to the browser.
So this is my homepage.
Let me try to log in with the admin credentials.
So I have entered the admin credentials inside this login page and clicking on this login button.
This will display a beautiful dashboard to my admin.
Now, if my admin click on this class link, he will be redirected back to the page called.
Display classes, so here there is a button called add classes and there is a back button.
As of now, since there are no classes inside our database, the table that we are seeing right now
does not have any records.
And I also see that that my table and my page is displaying with 100 percent of it.
Let me try to fix this by making some CSIS changes.
So in order to make some serious changes here, I can go to my CSV file under the static folder.
So here I am, opening my case file and just go towards the end of my scissors file.
And here I will try to paste the new code that I have.
So these are all the thesis changes that I have pasted here to make sure that my view of my classes
page is looking good.
So let me say this and try to do your build here.
Once the bill is completed, I can go to my browser.
You can see right now my table and my other information is taking only half of the page.
So this is looking good compared to the previous view.
So I have just made some serious changes and I am not discussing them just because we are not focusing
on anything related to CSIS inside this course.
But if you are interested, you can go and explore them.
What I have done, and if you are already familiar with TIA, says those are very simple changes.
You can easily understand them.
Now you can see if I click on this back button, I will be redirected back to the dashboard that is
working perfectly.
Let me go to the classes again.
I will click on this add a class button that I how so you can see here I am getting a model as a pop
up where it is asking what is the class name that we want to create?
So as of now, there is no supporting functionality in the backend.
Let's try to build this saving functionality inside the backend in the next lecture.
So with this, we successfully able to display a new web page to the admin OneNote.
He's clicking on the classes link available inside the dashboard.
Let us try to and has this further in the coming lectures.
Thank you, and I'll see you in the next lecture by.