Private
Public Access
1
0

team manager can edit user

This commit is contained in:
Sander Roosendaal
2018-03-04 16:18:58 +01:00
parent fd99872160
commit e517767641
4 changed files with 48 additions and 23 deletions

View File

@@ -1,11 +1,25 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Change Rower {% endblock %}
{% block content %}
<div class="grid_12 alpha">
<h1>User Settings</h1>
<p><a href="http://analytics.rowsandall.com/2017/11/02/rowsandall-settings-page-tutorial/">Need help? Click to read the tutorial</a></p>
<div class="grid_8 alpha">
<h1>User Settings for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<p><a href="http://analytics.rowsandall.com/2017/11/02/rowsandall-settings-page-tutorial/">Need help? Click to read the tutorial</a></p>
</div>
<div class="grid_2 suffix_2 omega dropdown">
<button class="grid_2 alpha button green small dropbtn">
Change Rower
</button>
<div class="dropdown-content">
{% for rower in user|team_rowers %}
<a class="button green small" href="/rowers/rower/edit/{{ rower.id }}">{{ rower.user.first_name }} {{ rower.user.last_name }}</a>
{% endfor %}
</div>
</div>
<div class="grid_6 alpha">
<p>
<h2>Heart Rate Zones</h2>
@@ -88,7 +102,11 @@
<div class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p>
{% if rower.user == user %}
<a class="button gray small" href="/password_change/">Password Change</a>
{% else %}
&nbsp;
{% endif %}
</p>
</div>
</div>
@@ -116,7 +134,7 @@
</table>
{% csrf_token %}
<div class="grid_2 alpha">
{% if rower.rowerplan == 'basic' %}
{% if rower.rowerplan == 'basic' and rower.user == user %}
<a class="button blue" href="/rowers/promembership">Upgrade</a>
{% else %}
&nbsp;
@@ -152,6 +170,7 @@
</div>
</div>
</div>
{% if rower.user == user %}
<div class="grid_12 alpha">
<div class="grid_6 alpha">
<p>
@@ -161,7 +180,7 @@
</div>
</p>
</div>
<div class="grid_6 omega">
<p>
<h2>Favorite Charts</h2>
@@ -223,7 +242,7 @@
{% endif %}
</div>
</div>
{% endif %}