Cleanup of templates to use {% url %} for locations, instead of using hardcoded locations

This commit is contained in:
2010-04-23 15:34:58 +01:00
parent c4631f3dbb
commit daaee6cc3c
22 changed files with 41 additions and 75 deletions

View File

@@ -7,7 +7,7 @@
The person you are recommending needs to have created their application before you can add a recommendation.</p>
<form action="/hr/add/application/" method="post">
<form action="{% url hr.views.add_application %}" method="post">
<table>
{{ form.as_table }}
</table>

View File

@@ -8,7 +8,7 @@
<table>
<tr><th>Application ID</th><th>Character</th><th>Corporation</th><th>Application Status</th></tr>
{% for app in apps %}
<tr><td><a href="/hr/applications/{{ app.id }}/">{{ app.id }}</a></td>
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
<td>{{ app.character }}</td>
<td>{{ app.corporation }}</td>
<td>{{ app.status_description }}</td>

View File

@@ -8,13 +8,13 @@
<h3>Application Details</h3>
<ul>
<li>Applying Auth User: <a href="/users/{{ app.user }}">{{ app.user }}</a></li>
<li>Applying Auth User: <a href="{% url sso.views.user_view app.user %}">{{ app.user }}</a></li>
<li>Applying Character: {{ app.character }} <button type="button" onclick="CCPEVE.showInfo('1377//{{ app.character.id }}')">Show In Eve</button></li>
<li>Application Status: <b>{{ app.status_description }}</b></li>
</ul>
{% if form %}
<form action="/hr/applications/{{ app.id }}/update/" method="post">
<form action="{% url hr.views.update_application app.id %}" method="post">
<table>
{{ form.as_table }}
</table>
@@ -26,7 +26,7 @@
<h3>Recommendations</h3>
<ul>
{% for rec in recs %}
<li><a href="/users/{{ rec.user }}/">{{ rec.user }}</a> / {{ rec.user_character }} - {{ rec.user_character.corporation }}</li>
<li><a href="{% url sso.views.user_view rec.user %}">{{ rec.user }}</a> / {{ rec.user_character }} - {{ rec.user_character.corporation }}</li>
{% endfor %}
</ul>
{% endif %}
@@ -36,7 +36,7 @@
<ul>
{% for acc in eveacc %}
{% for char in acc.characters.all %}
<li><a href="/profile/characters/{{ char.id }}/">{{ char.name }}</a> - {{ char.corporation }} / {{ char.corporation.alliance }} - {{ char.balance|intcomma }} ISK, {{ char.total_sp|intcomma }} SP <button type="button" onclick="CCPEVE.showInfo('1377//{{ char.id }}')">Show In Eve</button></li>
<li><a href="{% url sso.views.characters char.id %}">{{ char.name }}</a> - {{ char.corporation }} / {{ char.corporation.alliance }} - {{ char.balance|intcomma }} ISK, {{ char.total_sp|intcomma }} SP <button type="button" onclick="CCPEVE.showInfo('1377//{{ char.id }}')">Show In Eve</button></li>
{% endfor %}
{% endfor %}
</ul>

View File

@@ -8,7 +8,7 @@
<table>
<tr><th>Application ID</th><th>Character</th><th>Corporation</th><th>Application Status</th></tr>
{% for app in apps %}
<tr><td><a href="/hr/applications/{{ app.id }}/">{{ app.id }}</a></td>
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
<td>{{ app.character }}</td>
<td>{{ app.corporation }}</td>
<td>{{ app.status_description }}</td>