Templates added
This commit is contained in:
115
Templates/artsurvey/profile.html
Normal file
115
Templates/artsurvey/profile.html
Normal file
@@ -0,0 +1,115 @@
|
||||
{% extends "artsurvey/base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h3><strong>{{ user.first_name }} {{ user.last_name }}</strong> ({{ user }})</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% if user.artselection.sources.all.count %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
|
||||
<h3><span class="glyphicon glyphicon-star"></span> Art<b>Selection</b> [<a href="{% url 'artsurvey basket create' %}">+folder</a>]</h3>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm"></th>
|
||||
<th class="th-sm">Name</th>
|
||||
<th class="th-sm">Notes</th>
|
||||
<th class="th-sm">Count</th>
|
||||
<th class="th-sm"></th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for basket in user.artbasket_set.all %}
|
||||
<tr>
|
||||
<td>{{ forloop.counter }}</td>
|
||||
<td><a href="{{ basket.get_absolute_url }}">{{ basket }}</a></td>
|
||||
<td>{{ basket.notes }}</td>
|
||||
<td>{{ basket.get_sources_count }}</td>
|
||||
<td><a href="{{ basket.get_update_url }}">edit</a> | <a href="{{ basket.get_delete_url }}">delete</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h3>Source Selection ({{ user.artselection.sources.all.count }})</h3>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm"></th>
|
||||
<th class="th-sm">Name</th>
|
||||
<th class="th-sm">Survey</th>
|
||||
<th class="th-sm">CName</th>
|
||||
<th class="th-sm">Notes</th>
|
||||
<th class="th-sm">Follow up</th>
|
||||
<th class="th-sm">Category</th>
|
||||
<th class="th-sm">Type</th>
|
||||
<th class="th-sm">Paper Notes</th>
|
||||
<th class="th-sm">Papers</th>
|
||||
<th class="th-sm">Files</th>
|
||||
<th class="th-sm"></th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for src in user.artselection.sources.all %}
|
||||
<tr>
|
||||
<td>{{ forloop.counter }}</td>
|
||||
<td><a href="{{ src.get_absolute_url }}">{{ src.name }}</a></td>
|
||||
<td>{{ src.survey }}</td>
|
||||
<td>{% if src.cname %}{{ src.cname }}{% endif %}</td>
|
||||
<td>{% if src.notes %}<span title="{{ src.notes }}">{{ src.notes|truncatechars:20 }}</span>{% endif %}</td>
|
||||
<td>{% if src.follow_up %}<span title="{{ src.follow_up }}">{{ src.follow_up|truncatechars:20 }}</span>{% endif %}</td>
|
||||
<td>{% if src.category %}{{ src.category }}{% endif %}</td>
|
||||
<td>{{ src.get_otype }}</td>
|
||||
<td>{% if src.notes_paper %}<span title="{{ src.notes_paper }}">{{ src.notes_paper|truncatechars:20 }}</span>{% endif %}</td>
|
||||
<td>
|
||||
{% for paper in src.catalog.all %}
|
||||
{{ paper }},
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for upload in src.uploads.all %}
|
||||
<a title="{{ upload }}" href="{{ upload.get_download_url }}"><big><span class="glyphicon glyphicon-save-file"></span></big></a>
|
||||
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_remove_from_selection_profile_url }}">Remove</a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h3>History</h3>
|
||||
<pre>{{ user.artsurveyparams.history|safe }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user