Specified template file for user-profile-form based on role I use drupal 7.x and field_group and nultiple registration module.
How I can use a template file (.tpl) for user-profile-form only based on roles.
in other words when a user with A role login to site and go to user/%/edit page see a specified form with specified fields. and When user loged on with B role have another form for edit information.field permissions control fields but field groups is visible yet because field_group module have a bug with field_group_multiple module.

So , I want to use specified tpl file for user-profile-form (no registration page or profile page - only user-profile-form )  by role  .
Can you help me ?
You can simply load $user variable in your template file and check which role current user is having and simply based on the role print your form.
for e.g

if ($user-&gt;roles[4] == 'role1') {
  print render $form['form_field1'];
  print render $form['form_field2'];
}
if ($user-&gt;roles[5] == 'role2') {
  print render $form['form_field_field1'];
  print render $form['form_field_field2'];
}


In the end don't forget to print the following

print drupal_render_children($form);