# HG changeset patch # User cavaliet # Date 1379061093 -7200 # Node ID d585f6b46b88ace845d5b5ed269b30edcd91ccdc # Parent d1b1768855152642fae4a81f789873a4fc19c0e9 new system for object list diff -r d1b176885515 -r d585f6b46b88 src/p4l/static/p4l/css/p4l.css --- a/src/p4l/static/p4l/css/p4l.css Thu Sep 12 11:42:29 2013 +0200 +++ b/src/p4l/static/p4l/css/p4l.css Fri Sep 13 10:31:33 2013 +0200 @@ -45,6 +45,12 @@ opacity: .7; margin-right: 4px; } +.grey-bottom { + border-bottom: 1px dotted #CCC; +} +.grey-hover:hover { + background-color: #EEE; +} /* Flags */ .flag { diff -r d1b176885515 -r d585f6b46b88 src/p4l/static/p4l/js/p4l.js --- a/src/p4l/static/p4l/js/p4l.js Thu Sep 12 11:42:29 2013 +0200 +++ b/src/p4l/static/p4l/js/p4l.js Fri Sep 13 10:31:33 2013 +0200 @@ -66,9 +66,27 @@ list:"=objectList", dispTemplate: "@dispTemplate", formTemplate: "@formTemplate", - objectFields: "@objectFields" + objectFields: "@objectFields", + labelFields: "@labelFields", + sizeFields: "@sizeFields", + table: "@table" }, controller: function($scope, $element, $attrs, $transclude) { + // Setup divs table parameters + $scope.headFields = angular.fromJson($scope.objectFields); + $scope.headLabels = angular.fromJson($scope.labelFields); + $scope.headSizes = angular.fromJson($scope.sizeFields); + if($scope.headSizes==undefined){ + $scope.headSizes = []; + var n = $scope.headFields.length; + for(var i=0;i - {{ obj.imprintCity }} - {{ obj.publisher }} - {{ obj.imprintDate }} - {{ obj.lang }} - \ No newline at end of file + +
c {{ obj.imprintCity }}
+
p {{ obj.publisher }}
+
d {{ obj.imprintDate }}
+
l {{ obj.lang }}
+
\ No newline at end of file diff -r d1b176885515 -r d585f6b46b88 src/p4l/static/p4l/templates/objectListTable.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/p4l/static/p4l/templates/objectListTable.html Fri Sep 13 10:31:33 2013 +0200 @@ -0,0 +1,22 @@ +
+
+
{{l | translate}}
+
{{'Actions' | translate}}
+
+
+ +
{{ obj[f] }}
+
+ +
+ + +
+
+ + +
+ + +
+
\ No newline at end of file diff -r d1b176885515 -r d585f6b46b88 src/p4l/static/p4l/templates/serieDisp.html --- a/src/p4l/static/p4l/templates/serieDisp.html Thu Sep 12 11:42:29 2013 +0200 +++ b/src/p4l/static/p4l/templates/serieDisp.html Fri Sep 13 10:31:33 2013 +0200 @@ -1,5 +1,5 @@ - + +
{{ obj.title }}
+
{{ obj.volume }}
+
{{ obj.lang }}
+
\ No newline at end of file diff -r d1b176885515 -r d585f6b46b88 src/p4l/static/p4l/templates/urlDisp.html --- a/src/p4l/static/p4l/templates/urlDisp.html Thu Sep 12 11:42:29 2013 +0200 +++ b/src/p4l/static/p4l/templates/urlDisp.html Fri Sep 13 10:31:33 2013 +0200 @@ -1,5 +1,5 @@ - + + +
{{ obj.display }}
+
{{ obj.accessLevel }}
+
\ No newline at end of file diff -r d1b176885515 -r d585f6b46b88 src/p4l/templates/p4l/record_update_form.html --- a/src/p4l/templates/p4l/record_update_form.html Thu Sep 12 11:42:29 2013 +0200 +++ b/src/p4l/templates/p4l/record_update_form.html Fri Sep 13 10:31:33 2013 +0200 @@ -113,8 +113,10 @@ - {{ 'imprints' | translate }} - + {{ 'imprints' | translate }} + {{ 'collations' | translate }} @@ -138,7 +140,9 @@ {{ 'series' | translate }} - + {{ 'authors' | translate }} @@ -162,7 +166,9 @@ {{ 'Urls' | translate }} - + {{ 'record type' | translate }}