# HG changeset patch # User cavaliet # Date 1378978949 -7200 # Node ID d1b1768855152642fae4a81f789873a4fc19c0e9 # Parent dd1d59471697f04b427b78b75d4bdd68544b0b1b# Parent abd73d06615e1dc427783e9dfa1d2ea4cf50eff7 Merge with abd73d06615e1dc427783e9dfa1d2ea4cf50eff7 diff -r dd1d59471697 -r d1b176885515 src/p4l/static/p4l/css/img/ajax-loader.gif Binary file src/p4l/static/p4l/css/img/ajax-loader.gif has changed diff -r dd1d59471697 -r d1b176885515 src/p4l/static/p4l/css/p4l.css --- a/src/p4l/static/p4l/css/p4l.css Wed Sep 11 15:52:30 2013 +0200 +++ b/src/p4l/static/p4l/css/p4l.css Thu Sep 12 11:42:29 2013 +0200 @@ -36,7 +36,15 @@ -ms-transform:rotate(90deg); -webkit-transform:rotate(90deg); } - +.spinner { + width: 14px; + height: 14px; + float: left; + background:url(./img/ajax-loader.gif) no-repeat center center; + border-radius: 50%; + opacity: .7; + margin-right: 4px; +} /* Flags */ .flag { diff -r dd1d59471697 -r d1b176885515 src/p4l/static/p4l/js/p4l.js --- a/src/p4l/static/p4l/js/p4l.js Wed Sep 11 15:52:30 2013 +0200 +++ b/src/p4l/static/p4l/js/p4l.js Thu Sep 12 11:42:29 2013 +0200 @@ -235,10 +235,13 @@ app.controller("RecordCtrl", function($scope, RecordModel, context){ $scope.record = RecordModel.record; - $scope.uriLabels = RecordModel.uriLabels; + $scope.uriLabels = RecordModel.uriLabels; + + $scope.saving = false; $scope.submitRecord = function() { - $scope.record.$save({recordId: context.record_id}); + $scope.saving = true; + $scope.record.$save({recordId: context.record_id}).then(function(response) { $scope.saving=false;}); } diff -r dd1d59471697 -r d1b176885515 src/p4l/static/p4l/templates/imprintDisp.html --- a/src/p4l/static/p4l/templates/imprintDisp.html Wed Sep 11 15:52:30 2013 +0200 +++ b/src/p4l/static/p4l/templates/imprintDisp.html Thu Sep 12 11:42:29 2013 +0200 @@ -1,6 +1,6 @@ - + + {{ obj.imprintCity }} + {{ obj.publisher }} + {{ obj.imprintDate }} + {{ obj.lang }} + \ No newline at end of file diff -r dd1d59471697 -r d1b176885515 src/p4l/static/p4l/templates/volumeIssueForm.html --- a/src/p4l/static/p4l/templates/volumeIssueForm.html Wed Sep 11 15:52:30 2013 +0200 +++ b/src/p4l/static/p4l/templates/volumeIssueForm.html Thu Sep 12 11:42:29 2013 +0200 @@ -1,6 +1,6 @@
- +
diff -r dd1d59471697 -r d1b176885515 src/p4l/templates/p4l/p4l_home.html --- a/src/p4l/templates/p4l/p4l_home.html Wed Sep 11 15:52:30 2013 +0200 +++ b/src/p4l/templates/p4l/p4l_home.html Thu Sep 12 11:42:29 2013 +0200 @@ -36,16 +36,16 @@ {% endif %} - + {% for record in object_list %} - - + +
URIlang.{% trans 'titles' %}{% trans 'actions' %}
{% trans 'identifier' %}{% trans 'titles' %}{% trans 'dates' %} (années imprint){% trans 'actions' %}
{{ record.uri|reduce:"4,13" }}{{ record.language.uri|reduce:"0,3" }}{{ record.identifier }}
    {% for t in record.titles.all %}
  • {{ t.title }}
  • {% endfor %}
  diff -r dd1d59471697 -r d1b176885515 src/p4l/templates/p4l/record_update_form.html --- a/src/p4l/templates/p4l/record_update_form.html Wed Sep 11 15:52:30 2013 +0200 +++ b/src/p4l/templates/p4l/record_update_form.html Thu Sep 12 11:42:29 2013 +0200 @@ -178,7 +178,10 @@
- +
{% endverbatim %} {% endblock %} \ No newline at end of file