add document code
authorymh <ymh.work@gmail.com>
Tue, 10 Sep 2013 10:26:18 +0200
changeset 56 cae920b54306
parent 55 a1182b90cbd0
child 59 a0ef3043b1d2
add document code
src/p4l/static/p4l/templates/documentCodeDisp.html
src/p4l/static/p4l/templates/documentCodeForm.html
src/p4l/templates/p4l/record_update_form.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/p4l/static/p4l/templates/documentCodeDisp.html	Tue Sep 10 10:26:18 2013 +0200
@@ -0,0 +1,1 @@
+<div>{{'document code'|translate}} : {{obj.documentCode}}</div>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/p4l/static/p4l/templates/documentCodeForm.html	Tue Sep 10 10:26:18 2013 +0200
@@ -0,0 +1,5 @@
+ <form class="well span3">
+    <div class="span3 row">
+     <label for="document-code-{{$id}}">{{'document code'|translate}}</label><input type="text" placeholder="{{'document code'|translate}}" ng_model="editedObj.documentCode" name="documentCode" id="document-code-{{$id}}" class="span3"/>
+     </div>
+ </form>
\ No newline at end of file
--- a/src/p4l/templates/p4l/record_update_form.html	Tue Sep 10 02:30:23 2013 +0200
+++ b/src/p4l/templates/p4l/record_update_form.html	Tue Sep 10 10:26:18 2013 +0200
@@ -79,17 +79,21 @@
         <td><textarea id="record-notes-input" class="form-control" ng-model="record.notes"></textarea></td>
     </tr>
     <tr>
-      <td>{{ 'issns' | translate }}</td>
-      <td><object-list form-template="issnForm" disp-template="issnDisp" object-list="record.issns" object-fields='["issn"]'></object-list></td>
+        <td>{{ 'issns' | translate }}</td>
+        <td><object-list form-template="issnForm" disp-template="issnDisp" object-list="record.issns" object-fields='["issn"]'></object-list></td>
     </tr>
     <tr>
-      <td>{{ 'isbns' | translate }}</td>
-      <td><object-list form-template="isbnForm" disp-template="isbnDisp" object-list="record.isbns" object-fields='["isbn"]'></object-list></td>
+        <td>{{ 'isbns' | translate }}</td>
+        <td><object-list form-template="isbnForm" disp-template="isbnDisp" object-list="record.isbns" object-fields='["isbn"]'></object-list></td>
+    </tr>
+    <tr>
+      <td>{{'document code' | translate }}</td>
+      <td><object-list form-template="documentCodeForm" disp-template="documentCodeDisp" object-list="record.documentCodes" object-fields='["documentCode"]'></object-list></td>
     </tr>
     <tr>
         <td>{{'imprints' | translate}}</td>
         <td><object-list form-template="imprintForm" disp-template="imprintDisp" object-list="record.imprints" object-fields='["imprintCity","publisher","imprintDate", "lang"]'></object-list></td>
-    </tr>
+    </tr>    
   </tbody>
 </table>
 <button ng-click="submitRecord()">{{ 'Save' | translate }}</button>