form.php 352 B

12345678910111213141516171819
  1. <?php echo $form->render();?>
  2. <script>
  3. $(document).ready(function(){
  4. $('#role').change();
  5. });
  6. function changeRol(role)
  7. {
  8. if (role == '<?php echo \app\models\AgenciaRole::ROLE_ADMIN;?>') {
  9. $('.nav-tabs li:last').hide();
  10. }else{
  11. $('.nav-tabs li:last').show();
  12. }
  13. }
  14. </script>