--- a/src/p4l/templates/p4l/record_update_form.html Wed Sep 04 15:18:22 2013 +0200
+++ b/src/p4l/templates/p4l/record_update_form.html Wed Sep 04 16:17:04 2013 +0200
@@ -11,7 +11,8 @@
<script type="text/javascript">
angular.module("recordApp")
.value('context', {
- record_id: "{{id}}",
+ record_id: "{{record.identifier}}",
+ uri_labels: JSON.parse('{{uri_labels | safe}}'),
urls: {
record_api: "{% url 'record-detail' identifier=':recordId' %}".replace("\%3A",":")
}
@@ -20,12 +21,33 @@
{% endblock %}
{% block content %}
+{% verbatim %}
<div ng-app="recordApp" ng-controller="RecordCtrl">
-{% verbatim %}
-<p>identifier <input name="identifier" ng-model="record.identifier"/></p>
+<table class="table record-table">
+ <thead>
+ <tr><td>property</td><td>value</td></tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>URI</td>
+ <td>{{record.uri}}</td>
+ </tr>
+ <tr>
+ <td>identifier</td>
+ <td>{{record.identifier}}</td>
+ </tr>
+ <tr>
+ <td>subjects</td>
+ <td>
+ <ul ng-repeat="subject in record.subjects">
+ <li>{{uriLabels[subject]}} <small class="text-muted">({{subject}})</small></li>
+ </ul>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
{% endverbatim %}
-</div>
-
<div class="row">
<div class="col-md-12 text-right">
<a href="?uri={{ record.uri }}&lang=fr" alt="FR" /><img src="{% static 'p4l/img/blank.gif' %}" class="flag flag-fr" alt="FR" /></a>