diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-28 12:52:55 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-28 12:52:55 +0100 |
commit | 65ebc99e76becf72a40dc1c1f4b420ceeedc1a98 (patch) | |
tree | 600aabf2684c613a33ee060ce4602d1ed8821be2 /client/templates | |
parent | fix missing date warning (diff) | |
download | scout-subs-65ebc99e76becf72a40dc1c1f4b420ceeedc1a98.tar.gz scout-subs-65ebc99e76becf72a40dc1c1f4b420ceeedc1a98.zip |
use usercode id instead of code
Diffstat (limited to 'client/templates')
-rw-r--r-- | client/templates/client/doc_create.html | 2 | ||||
-rw-r--r-- | client/templates/client/index.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/templates/client/doc_create.html b/client/templates/client/doc_create.html index a6efae8..9649a73 100644 --- a/client/templates/client/doc_create.html +++ b/client/templates/client/doc_create.html @@ -13,7 +13,7 @@ <div class="col l8 offset-l2 s12"> <div class="card-panel"> <div class="row"> - <form id="form" action="{% url 'create' code=uc.code %}" method="post" class="col s12"> + <form id="form" action="{% url 'create' code=uc.id %}" method="post" class="col s12"> {% csrf_token %} <input type="hidden" name="action" id="action"> {% if not next %} diff --git a/client/templates/client/index.html b/client/templates/client/index.html index 1acdd8c..41f709c 100644 --- a/client/templates/client/index.html +++ b/client/templates/client/index.html @@ -35,7 +35,7 @@ <div class="card"> <div class="card-content"> <span class="card-title"> - <p style="text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: {{data.2}};">{{data.0.first_name}} {{data.0.last_name}}<a href="{% url "edit_user" code=data.0.code %}" class="btn-flat"><i class="material-icons">edit</i></a></p> + <p style="text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: {{data.2}};">{{data.0.first_name}} {{data.0.last_name}}<a href="{% url "edit_user" code=data.0.id %}" class="btn-flat"><i class="material-icons">edit</i></a></p> <div style="font-size: 0.5em; line-height: normal;">{{data.0.born_date}}</div> </span> {% if data.1|length > 0 %} @@ -440,7 +440,7 @@ </div> </div> {% else %} -<a id="add" class="btn-floating halfway-fab btn-large {{color}}" href="{% url 'create' code=data.0.code %}"><i class="material-icons">add</i></a> +<a id="add" class="btn-floating halfway-fab btn-large {{color}}" href="{% url 'create' code=data.0.id %}"><i class="material-icons">add</i></a> {% endif %} </div> </div> |