/**
  * the index page of the user homes admin
  */
 public function templates()
 {
     $form = basket_plus::get_template_form();
     if (request::method() == "post") {
         access::verify_csrf();
         if ($form->validate()) {
             basket_plus::extractTemplateForm($form);
             message::success(t("Basket Module Configured!"));
         }
     } else {
         basket_plus::populateTemplateForm($form);
     }
     $view = new Admin_View("admin.html");
     $view->content = new View("admin_templates.html");
     $view->content->form = $form;
     print $view;
 }