119 lines
2.6 KiB
HTML
119 lines
2.6 KiB
HTML
{% extends "artsurvey/base.html" %}
|
|
{% load artsurvey_templates %}
|
|
|
|
|
|
{% block header %}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
|
|
|
{% if form %}
|
|
<h3>Create or update Art<b>Selection</b> {% if basket %}-- {{ basket }}{% endif %} </h3>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
|
|
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
|
|
<div class="form-group">
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
<h5>
|
|
<table>
|
|
{{ form }}
|
|
</table>
|
|
</h5>
|
|
<input type="submit" class="btn btn-primary" value="Done" />
|
|
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if basket %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<p>
|
|
<h3>Art<b>Selection</b> {{ basket.title }}
|
|
{% if user.is_authenticated %}
|
|
[ <a href="{{ basket.get_update_url }}">edit</a> | <a href="{{ basket.get_delete_url }}">delete</a> ]
|
|
{% endif %}
|
|
</h3>
|
|
|
|
|
|
<p>{{ basket.notes }}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>
|
|
<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 basket.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_basket_url }}/{{ basket.id }}">Remove</a>
|
|
</td>
|
|
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|