# HG changeset patch # User ymh # Date 1378773023 -7200 # Node ID a1182b90cbd0fa2692b790d071f3f5e271c42bd4 # Parent 9f6e5abc5e74be14d1e4c6ba46abc2b8b40fe951 put directive togethers add id to form inputs diff -r 9f6e5abc5e74 -r a1182b90cbd0 src/p4l/static/p4l/js/p4l.js --- a/src/p4l/static/p4l/js/p4l.js Tue Sep 10 02:01:31 2013 +0200 +++ b/src/p4l/static/p4l/js/p4l.js Tue Sep 10 02:30:23 2013 +0200 @@ -1,5 +1,4 @@ - -"use strict"; +//"use strict"; // initialize the app var app = angular.module("recordApp", ['ngResource', 'ngRoute', 'pascalprecht.translate']) @@ -116,19 +115,6 @@ }); - -app.controller("RecordCtrl", function($scope, RecordModel, context){ - - $scope.record = RecordModel.record; - $scope.uriLabels = RecordModel.uriLabels; - - $scope.submitRecord = function() { - $scope.record.$save({recordId: context.record_id}); - } - - -}); - app.directive('addSemUri', function(RecordModel, context){ return { restrict: 'E', @@ -170,7 +156,19 @@ }; } } - }); +}); + +app.controller("RecordCtrl", function($scope, RecordModel, context){ + + $scope.record = RecordModel.record; + $scope.uriLabels = RecordModel.uriLabels; + + $scope.submitRecord = function() { + $scope.record.$save({recordId: context.record_id}); + } + + +}); app.config(['$routeProvider', function($routeProvider) { // $routeProvider.when('/', {controller: 'RecordCtrl', templateUrl: 'partials/record.html'}); diff -r 9f6e5abc5e74 -r a1182b90cbd0 src/p4l/static/p4l/templates/imprintForm.html --- a/src/p4l/static/p4l/templates/imprintForm.html Tue Sep 10 02:01:31 2013 +0200 +++ b/src/p4l/static/p4l/templates/imprintForm.html Tue Sep 10 02:30:23 2013 +0200 @@ -1,10 +1,10 @@
- - + +
- - + +
\ No newline at end of file