</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>