Sha256: 92e27e32973b3829ac2d7e6a5ce23c3f3004dbf1d0f0b1ff4b0834e7a1dbd78f
Contents?: true
Size: 1.57 KB
Versions: 2
Compression:
Stored size: 1.57 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI";hyper_admin/angularjs/directives/form/resource_form.js; FI" pathname; TI"}/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/directives/form/resource_form.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+M¥TI"length; Ti1I"digest; TI"%300dab0d4354077c876dbb721fd43771; FI"source; TI"1(function() { angular.module("hyperadmin").directive("resourceForm", function() { return { template: "<div class=\"row\">\n <div class=\"col-xs-12\" ng-controller=\"FormCtrl as formCtrl\">\n <form-errors errors=\"formCtrl.errors\"></form-errors> \n\n <form class=\"form-horizontal\" name=\"form\" ng-submit=\"formCtrl.submit()\" novalidate>\n <form-input-group ng-repeat=\"attribute in resourceClass.attributes\"\n resource=\"formCtrl.resource\"\n attr=\"attribute.key\"\n errors=\"formCtrl.errors[attribute.key]\"\n human=\"attribute.human\"\n type=\"attribute.type\">\n </form-input-group>\n\n <form-actions form=\"form\" cancel-state=\"resourceClass.plural\"\n </form>\n </div>\n</div>", restrict: "E", scope: { resourceClass: "=resourceClass" }, controller: function($scope) { return ["id", "created_at", "updated_at"].forEach(function(attr) { return delete $scope.resourceClass.attributes[attr]; }); } }; }); }).call(this); ; TI"required_assets_digest; TI"%8e6b9972370427d1c82f231a9d088ddc; FI" _version; TI"%6584930913c75ff69ba506e1cfbae2c9; F
Version data entries
2 entries across 1 versions & 1 rubygems