# HG changeset patch # User ymh # Date 1378284413 -7200 # Node ID f26426e9360b0e258989051662c4874e44c5d8a8 # Parent d2a40f44cbb9b3ab9df33dcad68755eba40df588 update view simplification. Baby step towards complete form. diff -r d2a40f44cbb9 -r f26426e9360b src/p4l/static/p4l/js/p4l.js --- a/src/p4l/static/p4l/js/p4l.js Wed Sep 04 10:02:22 2013 +0200 +++ b/src/p4l/static/p4l/js/p4l.js Wed Sep 04 10:46:53 2013 +0200 @@ -8,10 +8,11 @@ }); app.controller("RecordCtrl", function($scope, Api){ - $scope.record = Api.record.get(); + $scope.record = Api.record.get({recordId: record_id}); }); app.config(['$routeProvider', function($routeProvider) { // $routeProvider.when('/', {controller: 'RecordCtrl', templateUrl: 'partials/record.html'}); // $routeProvider.otherwise({redirectTo: '/'}); }]); + diff -r d2a40f44cbb9 -r f26426e9360b src/p4l/static/p4l/lib/bootstrap/bootstrap.js diff -r d2a40f44cbb9 -r f26426e9360b src/p4l/static/p4l/lib/bootstrap/bootstrap.min.js diff -r d2a40f44cbb9 -r f26426e9360b src/p4l/templates/p4l/record_update_form.html --- a/src/p4l/templates/p4l/record_update_form.html Wed Sep 04 10:02:22 2013 +0200 +++ b/src/p4l/templates/p4l/record_update_form.html Wed Sep 04 10:46:53 2013 +0200 @@ -2,11 +2,12 @@ {% load static %} {% load i18n %} -{% block page_title %}{% trans 'Record' %} {{ record.identifier }} - {% trans 'View' %}{% endblock %} +{% block page_title %}{% trans 'Record' %} {{ params.identifier }} - {% trans 'View' %}{% endblock %} {% block js_page %} @@ -14,12 +15,6 @@ {% endblock %} {% block content %} -
{% csrf_token %} - -{{ form.as_table }} -
- -
{% verbatim %}

identifier