{% block content %}
<div class="row">
- <h1><img src="{{ STATIC_URL }}img/icon_users_small.png" alt="Manage Users" /> Manage Users</h1>
+ <div class="col-md-12">
+ <h1><img src="{{ STATIC_URL }}icons/users-xs.png" alt="Manage Users" /> Manage Users</h1>
+ </div>
</div>
</button>
</td>
</tr>
+ {% if not pi %}
+ <tr class="odd">
+ <td class="key">Upgrade to PI</td>
+ <td>
+ <input type="submit" name="makepi" class="btn btn-primary btn-xs" value="Upgrade to PI" id="makepi"
+ onclick="return confirm('Are you sure? If you do so, the user will be updated to a PI');"
+ title="It will make the user PI of his instution"/>
+ </td>
+ </tr>
+ {% else %}
+ <tr class="odd">
+ <td class="key">Downgrade to user</td>
+ <td>
+ <input type="submit" name="removepi" class="btn btn-danger btn-xs" value="Downgrade to user" id="makepi"
+ onclick="return confirm('Are you sure? If you do so, the PI will be downgraded to a user');"
+ title="It will downgrade the PI to a user of his instution"/>
+ </td>
+ </tr>
+ {% endif %}
+
</table>
</div>
</div>