The final step is to create the templates. Switch to modules/Backoffice/Views/Default
and create a new directory named user
. In this new directory, create the four needed files: add.volt
, delete.volt
, edit.volt
, and list.volt
. There is nothing new to explain about these templates, so we are just going to write the code for them.
The code for add.volt
is as follows:
{% extends 'layout.volt' %} {% block body %} <h1>Add</h1> <hr> <div class="panel panel-default"> <div class="panel-body"> <form method="post" action="{{ url('user/create') }}"> <h4>User details</h4> <hr> <div class="form-group"> <label for="user_first_name">First name</label> {{ form.render('user_first_name', {'class':'form-control'}) }} </div> <div class="form-group"> <label for="user_last_name">Last name</label> {{ form.render('user_last_name...