-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
180 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
svjis/articles/templates/admin_building_unit_owners_edit.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% extends "base-with-aside-menu-content.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block content %} | ||
|
||
<h1 class="page-title" id="tbl-desc">{{ bu.type.description }} - {{ bu.registration_id }} - {{ bu.description }}</h1> | ||
|
||
<table class="list" aria-describedby="tbl-desc"> | ||
<tr> | ||
<th class="list" scope="col"> </th> | ||
<th class="list" scope="col">{% trans 'First Name' %}</th> | ||
<th class="list" scope="col">{% trans 'Last Name' %}</th> | ||
<th class="list" scope="col"> </th> | ||
</tr> | ||
|
||
{% if bu.owners.all %} | ||
{% for obj in bu.owners.all %} | ||
<tr> | ||
<td class="list">{{ forloop.counter }}</td> | ||
<td class="list">{{ obj.first_name }}</td> | ||
<td class="list">{{ obj.last_name }}</td> | ||
<td class="list"><a href="{% url 'admin_building_unit_owners_delete' pk=pk owner=obj.pk %}"><img src="/static/gfx/delete.png" border="0" title="{% trans 'Delete' %}" alt="{% trans 'Delete' %}"></a></td> | ||
</tr> | ||
{% endfor %} | ||
{% endif %} | ||
</table> | ||
|
||
{% if user_list %} | ||
<form action="{% url 'admin_building_unit_owners_save' %}" method="post"> | ||
{% csrf_token %} | ||
<input type="hidden" name="pk" value="{{ pk }}" /> | ||
<select class="common-input" id="owner-input" name="owner_id"> | ||
<option value="0">------</option> | ||
{% for u in user_list %} | ||
<option value="{{ u.id }}">{{ u.last_name }} {{ u.first_name }}</option> | ||
{% endfor %} | ||
</select> | ||
<input id="submit" type="submit" value="{% trans 'Add' %}" /> | ||
</form> | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% extends "base-with-aside-menu-content.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block content %} | ||
|
||
<h1 class="page-title" id="tbl-desc">{{ u.first_name }} {{ u.last_name }}</h1> | ||
|
||
<table class="list" aria-describedby="tbl-desc"> | ||
<tr> | ||
<th class="list" scope="col"> </th> | ||
<th class="list" scope="col">{% trans 'Type' %}</th> | ||
<th class="list" scope="col">{% trans 'Registration Id' %}</th> | ||
<th class="list" scope="col">{% trans 'Description' %}</th> | ||
<th class="list" scope="col"> </th> | ||
</tr> | ||
|
||
{% if u.buildingunit_set.all %} | ||
{% for obj in u.buildingunit_set.all %} | ||
<tr> | ||
<td class="list">{{ forloop.counter }}</td> | ||
<td class="list">{{ obj.type.description }}</td> | ||
<td class="list">{{ obj.registration_id }}</td> | ||
<td class="list">{{ obj.description }}</td> | ||
<td class="list"><a href="{% url 'admin_user_owns_delete' pk=pk owner=obj.pk %}"><img src="/static/gfx/delete.png" border="0" title="{% trans 'Delete' %}" alt="{% trans 'Delete' %}"></a></td> | ||
</tr> | ||
{% endfor %} | ||
{% endif %} | ||
</table> | ||
|
||
{% if bu_list %} | ||
<form action="{% url 'admin_user_owns_save' %}" method="post"> | ||
{% csrf_token %} | ||
<input type="hidden" name="pk" value="{{ pk }}" /> | ||
<select class="common-input" id="owner-input" name="owner_id"> | ||
<option value="0">------</option> | ||
{% for bu in bu_list %} | ||
<option value="{{ bu.id }}">{{ bu.type.description }} - {{ bu.registration_id }} - {{ bu.description }}</option> | ||
{% endfor %} | ||
</select> | ||
<input id="submit" type="submit" value="{% trans 'Add' %}" /> | ||
</form> | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters