title: How to create custom template file for login/register pages of profile2 each user role in drupal
body: <p>I'm making a job vacancies site and it has two roles, user and employer. I used <code>profile2</code> and have unique registration path for both roles. I already make the custom <code>login/register</code> page for user and it goes well.
  <strong>I want to make custom <code>login/register</code> page for employer too.</strong>
  I already tried making <code>page--employer.tpl.php</code> and it didn't work.</p>
  
  <p>Here is codes in <code>page--user.tpl.php</code> for user <code>login/register</code>:</p>
  
  <pre><code>&lt;?php if(!user_is_logged_in()): ?&gt;
  &lt;div class="vertical-align user-page-form"&gt;
  &lt;div class="vertical-align-center"&gt;
  &lt;div class="horizontal-align-middle"&gt;
    &lt;div id="up-logo"&gt;
      &lt;a href="&lt;?php print $front_page; ?&gt;" rel="home"&gt;
        &lt;img src="&lt;?php print $logo; ?&gt;" /&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  
    &lt;?php if ($messages): ?&gt;
      &lt;?php print $messages; ?&gt;
    &lt;?php endif; ?&gt;
  
    &lt;?php print render($page['content']); ?&gt;
  
    &lt;div class="login-footer"&gt;
    &lt;?php if($_GET['q'] == 'user' || $_GET['q'] == 'user/login'): ?&gt;
      &lt;?php print l('Create new account', 'user/register', array('attributes' =&gt; array('class' =&gt; 'left'))); ?&gt;
      &lt;?php print l('Reset your password', 'user/password', array('attributes' =&gt; array('class' =&gt; 'right'))); ?&gt;
    &lt;?php elseif($_GET['q'] == 'user/register'): ?&gt;
      &lt;?php print l('Sign in', 'user/login', array('attributes' =&gt; array('class' =&gt; 'left'))); ?&gt;
      &lt;?php print l('Reset your password', 'user/password', array('attributes' =&gt; array('class' =&gt; 'right'))); ?&gt;
    &lt;?php elseif($_GET['q'] == 'user/password'): ?&gt;
      &lt;?php print l('Create new account', 'user/register', array('attributes' =&gt; array('class' =&gt; 'left'))); ?&gt;
      &lt;?php print l('Sign in', 'user/login', array('attributes' =&gt; array('class' =&gt; 'right'))); ?&gt;
    &lt;?php endif; ?&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php else: ?&gt;
  
    &lt;div class="page"&gt;
    &lt;?php if ($tabs): ?&gt;
    &lt;div class="tabs"&gt;&lt;?php print render($tabs); ?&gt;&lt;/div&gt;
    &lt;?php endif; ?&gt;
  
    &lt;?php print render($page['content']); ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;
  </code></pre>