2015-02-10 65 views
0

我想知道是否有方法将字段添加到groceryCrud创建表单中的某些aclarations或注释,以澄清用户在某些情况下输入的信息棘手的领域。如何在GroceryCrud中创建表单中添加一些自定义注释

例如,对于现场“招聘决定”我要添加注释“请填写此字段与负责批准雇用你所在地区的人的名字”

我希望我能找到一个在GroceryCrud中做到这一点。谢谢。

回答

0

尝试将此代码添加到您的控制器功能:

 $current_page = $_SERVER['PHP_SELF']; 
     $current_page_array = explode('/',$current_page); 
     if (end($current_page_array) =="add") 
     $crud->display_as('hiringDecisions','Hiring Decisions <br /><font size="2"><i> Please fill in the field with the name of the person responsible for approving hiring in your area</i></font>');  
     else $crud->display_as('hiringDecisions','Hiring Decisions'); 
相关问题