From 51c4640f489c3bc924edd3227ae1f173db8beb4a Mon Sep 17 00:00:00 2001 From: Yohanes Candrajaya Date: Mon, 22 Feb 2016 11:00:44 +0700 Subject: [PATCH] fix bug at view detail data --- composer.lock | 553 +++++++++++++++++++++-------------- crud/Generator.php | 126 ++++++-- crud/default/views/_pdf.php | 1 - crud/default/views/index.php | 2 +- crud/default/views/view.php | 2 +- 5 files changed, 444 insertions(+), 240 deletions(-) diff --git a/composer.lock b/composer.lock index 2eab07a..c4340c6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "a0a845ef2c6026adadc458136cc845e1", + "hash": "4bfc009a4eadec1af67550f541d8628d", + "content-hash": "ea80e65d5abad083fa1b26c832bd71bc", "packages": [ { "name": "bower-asset/bootstrap", @@ -57,36 +58,22 @@ }, { "name": "bower-asset/jquery", - "version": "2.1.4", + "version": "2.2.0", "source": { "type": "git", - "url": "https://github.com/jquery/jquery.git", - "reference": "7751e69b615c6eca6f783a81e292a55725af6b85" + "url": "https://github.com/jquery/jquery-dist.git", + "reference": "6fc01e29bdad0964f62ef56d01297039cdcadbe5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jquery/jquery/zipball/7751e69b615c6eca6f783a81e292a55725af6b85", - "reference": "7751e69b615c6eca6f783a81e292a55725af6b85", + "url": "https://api.github.com/repos/jquery/jquery-dist/zipball/6fc01e29bdad0964f62ef56d01297039cdcadbe5", + "reference": "6fc01e29bdad0964f62ef56d01297039cdcadbe5", "shasum": "" }, - "require-dev": { - "bower-asset/qunit": "1.14.0", - "bower-asset/requirejs": "2.1.10", - "bower-asset/sinon": "1.8.1", - "bower-asset/sizzle": "2.1.1-patch2" - }, "type": "bower-asset-library", "extra": { "bower-asset-main": "dist/jquery.js", "bower-asset-ignore": [ - "**/.*", - "build", - "dist/cdn", - "speed", - "test", - "*.md", - "AUTHORS.txt", - "Gruntfile.js", "package.json" ] }, @@ -94,6 +81,7 @@ "MIT" ], "keywords": [ + "browser", "javascript", "jquery", "library" @@ -101,16 +89,16 @@ }, { "name": "bower-asset/jquery.inputmask", - "version": "3.1.63", + "version": "3.2.7", "source": { "type": "git", "url": "https://github.com/RobinHerbots/jquery.inputmask.git", - "reference": "c40c7287eadc31e341ebbf0c02352eb55b9cbc48" + "reference": "5a72c563b502b8e05958a524cdfffafe9987be38" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/RobinHerbots/jquery.inputmask/zipball/c40c7287eadc31e341ebbf0c02352eb55b9cbc48", - "reference": "c40c7287eadc31e341ebbf0c02352eb55b9cbc48", + "url": "https://api.github.com/repos/RobinHerbots/jquery.inputmask/zipball/5a72c563b502b8e05958a524cdfffafe9987be38", + "reference": "5a72c563b502b8e05958a524cdfffafe9987be38", "shasum": "" }, "require": { @@ -119,23 +107,17 @@ "type": "bower-asset-library", "extra": { "bower-asset-main": [ - "./dist/inputmask/jquery.inputmask.js", - "./dist/inputmask/jquery.inputmask.extensions.js", - "./dist/inputmask/jquery.inputmask.date.extensions.js", - "./dist/inputmask/jquery.inputmask.numeric.extensions.js", - "./dist/inputmask/jquery.inputmask.phone.extensions.js", - "./dist/inputmask/jquery.inputmask.regex.extensions.js" + "./dist/inputmask/inputmask.js" ], "bower-asset-ignore": [ - "**/.*", - "qunit/", - "nuget/", - "tools/", - "js/", - "*.md", - "build.properties", - "build.xml", - "jquery.inputmask.jquery.json" + "**/*", + "!dist/*", + "!dist/inputmask/*", + "!dist/min/*", + "!dist/min/inputmask/*", + "!extra/bindings/*", + "!extra/dependencyLibs/*", + "!extra/phone-codes/*" ] }, "license": [ @@ -181,16 +163,16 @@ }, { "name": "bower-asset/yii2-pjax", - "version": "v2.0.4", + "version": "v2.0.5", "source": { "type": "git", "url": "https://github.com/yiisoft/jquery-pjax.git", - "reference": "3f20897307cca046fca5323b318475ae9dac0ca0" + "reference": "6818718408086db6bdcf33649cecb86b6b4f9b67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/yiisoft/jquery-pjax/zipball/3f20897307cca046fca5323b318475ae9dac0ca0", - "reference": "3f20897307cca046fca5323b318475ae9dac0ca0", + "url": "https://api.github.com/repos/yiisoft/jquery-pjax/zipball/6818718408086db6bdcf33649cecb86b6b4f9b67", + "reference": "6818718408086db6bdcf33649cecb86b6b4f9b67", "shasum": "" }, "require": { @@ -318,19 +300,24 @@ }, { "name": "kartik-v/bootstrap-fileinput", - "version": "v4.2.3", + "version": "v4.3.0", "source": { "type": "git", "url": "https://github.com/kartik-v/bootstrap-fileinput.git", - "reference": "1b30f372977efdb5aa1cc8b706d9e40be90ff904" + "reference": "cde72929649da55470e0a81a5e85921f80f28f29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/bootstrap-fileinput/zipball/1b30f372977efdb5aa1cc8b706d9e40be90ff904", - "reference": "1b30f372977efdb5aa1cc8b706d9e40be90ff904", + "url": "https://api.github.com/repos/kartik-v/bootstrap-fileinput/zipball/cde72929649da55470e0a81a5e85921f80f28f29", + "reference": "cde72929649da55470e0a81a5e85921f80f28f29", "shasum": "" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2.x-dev" + } + }, "autoload": { "psr-4": { "kartik\\plugins\\fileinput\\": "" @@ -362,26 +349,26 @@ "progress", "upload" ], - "time": "2015-06-21 13:36:43" + "time": "2016-01-25 16:55:20" }, { "name": "kartik-v/bootstrap-star-rating", - "version": "v3.5.3", + "version": "v4.0.0", "source": { "type": "git", "url": "https://github.com/kartik-v/bootstrap-star-rating.git", - "reference": "bd9c52db6ac71cb270620c1aee601d142ab2cc00" + "reference": "c19be9f8bd6b29cee0110e048a2c04bb6f1c4761" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/bootstrap-star-rating/zipball/bd9c52db6ac71cb270620c1aee601d142ab2cc00", - "reference": "bd9c52db6ac71cb270620c1aee601d142ab2cc00", + "url": "https://api.github.com/repos/kartik-v/bootstrap-star-rating/zipball/c19be9f8bd6b29cee0110e048a2c04bb6f1c4761", + "reference": "c19be9f8bd6b29cee0110e048a2c04bb6f1c4761", "shasum": "" }, "type": "library", - "autoload": { - "psr-4": { - "kartik\\plugins\\rating\\": "" + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" } }, "notification-url": "https://packagist.org/downloads/", @@ -399,24 +386,71 @@ "homepage": "https://github.com/kartik-v/bootstrap-star-rating", "keywords": [ "Rating", + "awesome", "bootstrap", + "font", + "glyphicon", + "star", + "svg" + ], + "time": "2016-02-18 04:03:30" + }, + { + "name": "kartik-v/bootstrap-tabs-x", + "version": "v1.3.2", + "source": { + "type": "git", + "url": "https://github.com/kartik-v/bootstrap-tabs-x.git", + "reference": "e85a731d79f030fb7f7742e3e2e0ac828c3233a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kartik-v/bootstrap-tabs-x/zipball/e85a731d79f030fb7f7742e3e2e0ac828c3233a1", + "reference": "e85a731d79f030fb7f7742e3e2e0ac828c3233a1", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "kartik\\plugins\\tabs\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kartik Visweswaran", + "email": "kartikv2@gmail.com", + "homepage": "http://www.krajee.com/" + } + ], + "description": "Extended Bootstrap Tabs with ability to align tabs in multiple ways, add borders, rotated titles, and more.", + "homepage": "https://github.com/kartik-v/bootstrap-tabs-x", + "keywords": [ + "bootstrap", + "extended", "jquery", - "star" + "modal", + "modal-tabs", + "tabs", + "tabs-x" ], - "time": "2015-06-18 14:42:46" + "time": "2015-06-26 14:48:16" }, { "name": "kartik-v/dependent-dropdown", - "version": "v1.4.2", + "version": "v1.4.4", "source": { "type": "git", "url": "https://github.com/kartik-v/dependent-dropdown.git", - "reference": "5af96f871606fc75aa8f3a3b34b01c8fe56345fd" + "reference": "a13970aec78e8eaae5cb9f1168df20d443f95113" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/dependent-dropdown/zipball/5af96f871606fc75aa8f3a3b34b01c8fe56345fd", - "reference": "5af96f871606fc75aa8f3a3b34b01c8fe56345fd", + "url": "https://api.github.com/repos/kartik-v/dependent-dropdown/zipball/a13970aec78e8eaae5cb9f1168df20d443f95113", + "reference": "a13970aec78e8eaae5cb9f1168df20d443f95113", "shasum": "" }, "type": "library", @@ -445,7 +479,7 @@ "option", "select" ], - "time": "2015-06-18 15:04:37" + "time": "2015-12-16 18:15:01" }, { "name": "kartik-v/mpdf", @@ -539,23 +573,28 @@ }, { "name": "kartik-v/yii2-export", - "version": "v1.2.2", + "version": "v1.2.4", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-export.git", - "reference": "6c8e3aa6e555f630063d3b8c1cf37198260c5351" + "reference": "5366c8da6cddc8173feb878c4c115fbc1746cb7b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-export/zipball/6c8e3aa6e555f630063d3b8c1cf37198260c5351", - "reference": "6c8e3aa6e555f630063d3b8c1cf37198260c5351", + "url": "https://api.github.com/repos/kartik-v/yii2-export/zipball/5366c8da6cddc8173feb878c4c115fbc1746cb7b", + "reference": "5366c8da6cddc8173feb878c4c115fbc1746cb7b", "shasum": "" }, "require": { - "kartik-v/yii2-grid": "*", - "phpoffice/phpexcel": "1.8.0" + "kartik-v/yii2-grid": "~3.0", + "phpoffice/phpexcel": "~1.8.0" }, "type": "yii2-extension", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, "autoload": { "psr-4": { "kartik\\export\\": "" @@ -563,7 +602,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD 3-Clause" + "BSD-3-Clause" ], "authors": [ { @@ -589,26 +628,31 @@ "xlsx", "yii2" ], - "time": "2015-02-14 09:03:31" + "time": "2016-02-04 02:23:32" }, { "name": "kartik-v/yii2-grid", - "version": "v3.0.5", + "version": "v3.1.0", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-grid.git", - "reference": "9359dcc7f34451af035294bd4127c8ff5d1ffffc" + "reference": "8cf8bb9ef3e9dc94933c54fcffdc91471de40ecf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-grid/zipball/9359dcc7f34451af035294bd4127c8ff5d1ffffc", - "reference": "9359dcc7f34451af035294bd4127c8ff5d1ffffc", + "url": "https://api.github.com/repos/kartik-v/yii2-grid/zipball/8cf8bb9ef3e9dc94933c54fcffdc91471de40ecf", + "reference": "8cf8bb9ef3e9dc94933c54fcffdc91471de40ecf", "shasum": "" }, "require": { "kartik-v/yii2-krajee-base": "~1.7" }, "type": "yii2-extension", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, "autoload": { "psr-4": { "kartik\\grid\\": "" @@ -633,29 +677,29 @@ "widget", "yii2" ], - "time": "2015-07-07 17:50:12" + "time": "2016-01-14 07:03:28" }, { - "name": "kartik-v/yii2-helpers", - "version": "v1.3.1", + "name": "kartik-v/yii2-krajee-base", + "version": "1.8.2", "source": { "type": "git", - "url": "https://github.com/kartik-v/yii2-helpers.git", - "reference": "daafedf1ae6130d2287e417941b8c50ad59a50c0" + "url": "https://github.com/kartik-v/yii2-krajee-base.git", + "reference": "0c274e31e4392cbafc5fe158eae81738794e02ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-helpers/zipball/daafedf1ae6130d2287e417941b8c50ad59a50c0", - "reference": "daafedf1ae6130d2287e417941b8c50ad59a50c0", + "url": "https://api.github.com/repos/kartik-v/yii2-krajee-base/zipball/0c274e31e4392cbafc5fe158eae81738794e02ce", + "reference": "0c274e31e4392cbafc5fe158eae81738794e02ce", "shasum": "" }, "require": { - "yiisoft/yii2-bootstrap": "*" + "yiisoft/yii2-bootstrap": "@dev" }, "type": "yii2-extension", "autoload": { "psr-4": { - "kartik\\helpers\\": "" + "kartik\\base\\": "" } }, "notification-url": "https://packagist.org/downloads/", @@ -669,44 +713,44 @@ "homepage": "http://www.krajee.com/" } ], - "description": "A collection of useful helper functions for Yii Framework 2.0", - "homepage": "https://github.com/kartik-v/yii2-helpers", + "description": "Base library and foundation components for all Yii2 Krajee extensions.", + "homepage": "https://github.com/kartik-v/yii2-krajee-base", "keywords": [ - "bootstrap", + "base", "extension", - "helper", - "utilities", - "yii", + "foundation", + "krajee", + "widget", "yii2" ], - "time": "2015-06-15 17:18:24" + "time": "2016-01-10 12:26:29" }, { - "name": "kartik-v/yii2-krajee-base", - "version": "v1.7.7", + "name": "kartik-v/yii2-mpdf", + "version": "v1.0.0", "source": { "type": "git", - "url": "https://github.com/kartik-v/yii2-krajee-base.git", - "reference": "c0adff9d9762f4fd3bf0e7cd0000fcab0bf00f19" + "url": "https://github.com/kartik-v/yii2-mpdf.git", + "reference": "4599a1d95d7e0afb3279322e302717b7e4f52dd3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-krajee-base/zipball/c0adff9d9762f4fd3bf0e7cd0000fcab0bf00f19", - "reference": "c0adff9d9762f4fd3bf0e7cd0000fcab0bf00f19", + "url": "https://api.github.com/repos/kartik-v/yii2-mpdf/zipball/4599a1d95d7e0afb3279322e302717b7e4f52dd3", + "reference": "4599a1d95d7e0afb3279322e302717b7e4f52dd3", "shasum": "" }, "require": { - "yiisoft/yii2-bootstrap": "@dev" + "kartik-v/mpdf": "*" }, "type": "yii2-extension", "autoload": { "psr-4": { - "kartik\\base\\": "" + "kartik\\mpdf\\": "" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "BSD 3-Clause" ], "authors": [ { @@ -715,44 +759,46 @@ "homepage": "http://www.krajee.com/" } ], - "description": "Base library and foundation components for all Yii2 Krajee extensions.", - "homepage": "https://github.com/kartik-v/yii2-krajee-base", + "description": "A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.", + "homepage": "https://github.com/kartik-v/yii2-mpdf", "keywords": [ - "base", + "component", "extension", - "foundation", - "krajee", - "widget", + "html", + "mpdf", + "pdf", + "utf8", "yii2" ], - "time": "2015-06-16 05:19:57" + "time": "2014-11-10 18:09:37" }, { - "name": "kartik-v/yii2-mpdf", - "version": "v1.0.0", + "name": "kartik-v/yii2-tabs-x", + "version": "v1.2.2", "source": { "type": "git", - "url": "https://github.com/kartik-v/yii2-mpdf.git", - "reference": "4599a1d95d7e0afb3279322e302717b7e4f52dd3" + "url": "https://github.com/kartik-v/yii2-tabs-x.git", + "reference": "3c53773bf463a0e3f3d9eadd0231bf58f3ae08b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-mpdf/zipball/4599a1d95d7e0afb3279322e302717b7e4f52dd3", - "reference": "4599a1d95d7e0afb3279322e302717b7e4f52dd3", + "url": "https://api.github.com/repos/kartik-v/yii2-tabs-x/zipball/3c53773bf463a0e3f3d9eadd0231bf58f3ae08b3", + "reference": "3c53773bf463a0e3f3d9eadd0231bf58f3ae08b3", "shasum": "" }, "require": { - "kartik-v/mpdf": "*" + "kartik-v/bootstrap-tabs-x": "~1.3", + "kartik-v/yii2-krajee-base": "~1.7" }, "type": "yii2-extension", "autoload": { "psr-4": { - "kartik\\mpdf\\": "" + "kartik\\tabs\\": "" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD 3-Clause" + "BSD-3-Clause" ], "authors": [ { @@ -761,31 +807,31 @@ "homepage": "http://www.krajee.com/" } ], - "description": "A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.", - "homepage": "https://github.com/kartik-v/yii2-mpdf", + "description": "An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.", + "homepage": "https://github.com/kartik-v/yii2-tabs-x", "keywords": [ - "component", - "extension", - "html", - "mpdf", - "pdf", - "utf8", - "yii2" + "bootstrap", + "extended", + "jquery", + "modal", + "modal-tabs", + "tabs", + "tabs-x" ], - "time": "2014-11-10 18:09:37" + "time": "2016-01-12 07:59:30" }, { "name": "kartik-v/yii2-widget-activeform", - "version": "v1.4.4", + "version": "v1.4.7", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-activeform.git", - "reference": "c62c8b92e8ee38892cc4e2b29851864a7a20ee01" + "reference": "6acc1539c37d731c79a67989409ad76e389fd5f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-activeform/zipball/c62c8b92e8ee38892cc4e2b29851864a7a20ee01", - "reference": "c62c8b92e8ee38892cc4e2b29851864a7a20ee01", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-activeform/zipball/6acc1539c37d731c79a67989409ad76e389fd5f0", + "reference": "6acc1539c37d731c79a67989409ad76e389fd5f0", "shasum": "" }, "require": { @@ -819,7 +865,7 @@ "widget", "yii2" ], - "time": "2015-07-08 11:36:38" + "time": "2015-12-11 19:07:50" }, { "name": "kartik-v/yii2-widget-affix", @@ -922,22 +968,27 @@ }, { "name": "kartik-v/yii2-widget-colorinput", - "version": "v1.0.0", + "version": "v1.0.3", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-colorinput.git", - "reference": "1f3e3dc32a7dae0c83623fbda8e0dd77b84771b1" + "reference": "3f6e847ef72cf6e27e4d3b4870b00b8f80d51752" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-colorinput/zipball/1f3e3dc32a7dae0c83623fbda8e0dd77b84771b1", - "reference": "1f3e3dc32a7dae0c83623fbda8e0dd77b84771b1", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-colorinput/zipball/3f6e847ef72cf6e27e4d3b4870b00b8f80d51752", + "reference": "3f6e847ef72cf6e27e4d3b4870b00b8f80d51752", "shasum": "" }, "require": { "kartik-v/yii2-krajee-base": "*" }, "type": "yii2-extension", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { "psr-4": { "kartik\\color\\": "" @@ -967,24 +1018,24 @@ "widget", "yii2" ], - "time": "2014-11-08 21:10:18" + "time": "2016-01-14 11:15:49" }, { "name": "kartik-v/yii2-widget-datepicker", - "version": "v1.3.2", + "version": "v1.3.7", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-datepicker.git", - "reference": "3fb31048bb70ebddf94a827aec77779835305629" + "reference": "ff5a97576c49a72e0480f135d9e7ce1a18c788e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-datepicker/zipball/3fb31048bb70ebddf94a827aec77779835305629", - "reference": "3fb31048bb70ebddf94a827aec77779835305629", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-datepicker/zipball/ff5a97576c49a72e0480f135d9e7ce1a18c788e6", + "reference": "ff5a97576c49a72e0480f135d9e7ce1a18c788e6", "shasum": "" }, "require": { - "kartik-v/yii2-krajee-base": "*" + "kartik-v/yii2-krajee-base": "~1.7" }, "type": "yii2-extension", "autoload": { @@ -994,7 +1045,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD 3-Clause" + "BSD-3-Clause" ], "authors": [ { @@ -1016,20 +1067,20 @@ "widget", "yii2" ], - "time": "2015-03-02 13:03:59" + "time": "2016-01-10 15:14:17" }, { "name": "kartik-v/yii2-widget-datetimepicker", - "version": "v1.4.0", + "version": "v1.4.2", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-datetimepicker.git", - "reference": "3e59cc0f074df3b883c045395c6814506e4db7c6" + "reference": "f4e7024e31da40460d1b36dc880c2ec20a21bf6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-datetimepicker/zipball/3e59cc0f074df3b883c045395c6814506e4db7c6", - "reference": "3e59cc0f074df3b883c045395c6814506e4db7c6", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-datetimepicker/zipball/f4e7024e31da40460d1b36dc880c2ec20a21bf6e", + "reference": "f4e7024e31da40460d1b36dc880c2ec20a21bf6e", "shasum": "" }, "require": { @@ -1043,7 +1094,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD 3-Clause" + "BSD-3-Clause" ], "authors": [ { @@ -1065,20 +1116,20 @@ "widget", "yii2" ], - "time": "2015-01-25 16:36:55" + "time": "2016-01-10 12:18:38" }, { "name": "kartik-v/yii2-widget-depdrop", - "version": "v1.0.2", + "version": "v1.0.4", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-depdrop.git", - "reference": "40bbe95d8d5afe4eef5eecc4c2f1a5a21f9edf43" + "reference": "6918ca6f7d7be153c80f6aa9c261f9b333293e9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-depdrop/zipball/40bbe95d8d5afe4eef5eecc4c2f1a5a21f9edf43", - "reference": "40bbe95d8d5afe4eef5eecc4c2f1a5a21f9edf43", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-depdrop/zipball/6918ca6f7d7be153c80f6aa9c261f9b333293e9c", + "reference": "6918ca6f7d7be153c80f6aa9c261f9b333293e9c", "shasum": "" }, "require": { @@ -1114,20 +1165,20 @@ "widget", "yii2" ], - "time": "2015-06-26 20:20:32" + "time": "2016-01-10 17:30:48" }, { "name": "kartik-v/yii2-widget-fileinput", - "version": "v1.0.3", + "version": "v1.0.4", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-fileinput.git", - "reference": "bfed1b4201cc5fb3ac11563e1269f0ca64071e0b" + "reference": "36f9f493c2d814529f2a195422a8af2e020fc80c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-fileinput/zipball/bfed1b4201cc5fb3ac11563e1269f0ca64071e0b", - "reference": "bfed1b4201cc5fb3ac11563e1269f0ca64071e0b", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-fileinput/zipball/36f9f493c2d814529f2a195422a8af2e020fc80c", + "reference": "36f9f493c2d814529f2a195422a8af2e020fc80c", "shasum": "" }, "require": { @@ -1164,7 +1215,7 @@ "widget", "yii2" ], - "time": "2015-06-26 20:23:24" + "time": "2016-01-10 16:10:58" }, { "name": "kartik-v/yii2-widget-growl", @@ -1217,16 +1268,16 @@ }, { "name": "kartik-v/yii2-widget-rangeinput", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-rangeinput.git", - "reference": "b7a0b1eb627a3d6d99bad3d8ff31b28259f9e987" + "reference": "ad82cf956b95555d39dbb534587c7827b1dc7bdf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-rangeinput/zipball/b7a0b1eb627a3d6d99bad3d8ff31b28259f9e987", - "reference": "b7a0b1eb627a3d6d99bad3d8ff31b28259f9e987", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-rangeinput/zipball/ad82cf956b95555d39dbb534587c7827b1dc7bdf", + "reference": "ad82cf956b95555d39dbb534587c7827b1dc7bdf", "shasum": "" }, "require": { @@ -1262,20 +1313,20 @@ "widget", "yii2" ], - "time": "2014-11-08 21:15:27" + "time": "2015-11-22 06:52:44" }, { "name": "kartik-v/yii2-widget-rating", - "version": "v1.0.0", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-rating.git", - "reference": "902f73385e6ed42d65576b8fd6e97889c3c18e65" + "reference": "69b192bc2b26a435618e17eed7c56294ef805fab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-rating/zipball/902f73385e6ed42d65576b8fd6e97889c3c18e65", - "reference": "902f73385e6ed42d65576b8fd6e97889c3c18e65", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-rating/zipball/69b192bc2b26a435618e17eed7c56294ef805fab", + "reference": "69b192bc2b26a435618e17eed7c56294ef805fab", "shasum": "" }, "require": { @@ -1283,6 +1334,11 @@ "kartik-v/yii2-krajee-base": "*" }, "type": "yii2-extension", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { "psr-4": { "kartik\\rating\\": "" @@ -1313,26 +1369,31 @@ "widget", "yii2" ], - "time": "2014-11-08 19:30:37" + "time": "2016-02-17 19:13:26" }, { "name": "kartik-v/yii2-widget-select2", - "version": "v2.0.2", + "version": "v2.0.8", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-select2.git", - "reference": "585e8797d7982e0c9d09370b98b451a028a59439" + "reference": "4d03239c1e28ef8d3b96ab7fe360f5cbda34fb69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-select2/zipball/585e8797d7982e0c9d09370b98b451a028a59439", - "reference": "585e8797d7982e0c9d09370b98b451a028a59439", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-select2/zipball/4d03239c1e28ef8d3b96ab7fe360f5cbda34fb69", + "reference": "4d03239c1e28ef8d3b96ab7fe360f5cbda34fb69", "shasum": "" }, "require": { "kartik-v/yii2-krajee-base": "~1.7" }, "type": "yii2-extension", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { "psr-4": { "kartik\\select2\\": "" @@ -1361,7 +1422,7 @@ "widget", "yii2" ], - "time": "2015-07-01 15:20:59" + "time": "2016-02-17 11:49:30" }, { "name": "kartik-v/yii2-widget-sidenav", @@ -1462,16 +1523,16 @@ }, { "name": "kartik-v/yii2-widget-switchinput", - "version": "v1.3.0", + "version": "v1.3.1", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-switchinput.git", - "reference": "f6fd88e978b526323538b62ffd9d8845a9799758" + "reference": "7d8ee999d79bcdc1601da5cd59439ac7eb1f5ea6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-switchinput/zipball/f6fd88e978b526323538b62ffd9d8845a9799758", - "reference": "f6fd88e978b526323538b62ffd9d8845a9799758", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-switchinput/zipball/7d8ee999d79bcdc1601da5cd59439ac7eb1f5ea6", + "reference": "7d8ee999d79bcdc1601da5cd59439ac7eb1f5ea6", "shasum": "" }, "require": { @@ -1508,20 +1569,20 @@ "widget", "yii2" ], - "time": "2015-01-14 16:27:26" + "time": "2016-01-10 16:47:35" }, { "name": "kartik-v/yii2-widget-timepicker", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-timepicker.git", - "reference": "432a8e166f89c2172fd5b86f6badcd943dbd3bc2" + "reference": "fa230caf281fbf6abea29a5dc1c28ebc005e4438" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-timepicker/zipball/432a8e166f89c2172fd5b86f6badcd943dbd3bc2", - "reference": "432a8e166f89c2172fd5b86f6badcd943dbd3bc2", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-timepicker/zipball/fa230caf281fbf6abea29a5dc1c28ebc005e4438", + "reference": "fa230caf281fbf6abea29a5dc1c28ebc005e4438", "shasum": "" }, "require": { @@ -1557,20 +1618,20 @@ "widget", "yii2" ], - "time": "2014-11-08 20:01:29" + "time": "2016-01-12 09:50:39" }, { "name": "kartik-v/yii2-widget-touchspin", - "version": "v1.2.0", + "version": "v1.2.1", "source": { "type": "git", "url": "https://github.com/kartik-v/yii2-widget-touchspin.git", - "reference": "fd117e07c5dab1e5308cb8d75431269effb66212" + "reference": "afc56f68d87c65c9659b76ac82ae4ae8160634c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kartik-v/yii2-widget-touchspin/zipball/fd117e07c5dab1e5308cb8d75431269effb66212", - "reference": "fd117e07c5dab1e5308cb8d75431269effb66212", + "url": "https://api.github.com/repos/kartik-v/yii2-widget-touchspin/zipball/afc56f68d87c65c9659b76ac82ae4ae8160634c6", + "reference": "afc56f68d87c65c9659b76ac82ae4ae8160634c6", "shasum": "" }, "require": { @@ -1607,7 +1668,7 @@ "widget", "yii2" ], - "time": "2014-12-04 12:53:04" + "time": "2016-01-10 17:10:39" }, { "name": "kartik-v/yii2-widget-typeahead", @@ -1754,18 +1815,66 @@ ], "time": "2015-06-27 03:49:10" }, + { + "name": "mootensai/yii2-optimistic-lock-validator", + "version": "0.0.1", + "source": { + "type": "git", + "url": "https://github.com/mootensai/yii2-optimistic-lock-validator.git", + "reference": "422b012a87973bb296080f3572e1e45c7643a31a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mootensai/yii2-optimistic-lock-validator/zipball/422b012a87973bb296080f3572e1e45c7643a31a", + "reference": "422b012a87973bb296080f3572e1e45c7643a31a", + "shasum": "" + }, + "require": { + "yiisoft/yii2": "*" + }, + "type": "yii2-extension", + "autoload": { + "psr-4": { + "mootensai\\components\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Yohanes Candrajaya", + "email": "moo.tensai@gmail.com" + }, + { + "name": "Jiwantoro Ndaru", + "email": "jiwanndaru@gmail.com" + } + ], + "description": "Yii 2 Optimistic Lock validator", + "keywords": [ + "lock", + "optimistic", + "optimistic-lock", + "validator", + "yii", + "yii2" + ], + "time": "2015-08-15 03:27:57" + }, { "name": "mootensai/yii2-relation-trait", - "version": "1.0.5", + "version": "1.0.8", "source": { "type": "git", "url": "https://github.com/mootensai/yii2-relation-trait.git", - "reference": "c9fec0bb253e657a1b051e6af8cf03093a0c18c2" + "reference": "702a3ad747735ca957eb98ce17021babae9882ff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mootensai/yii2-relation-trait/zipball/c9fec0bb253e657a1b051e6af8cf03093a0c18c2", - "reference": "c9fec0bb253e657a1b051e6af8cf03093a0c18c2", + "url": "https://api.github.com/repos/mootensai/yii2-relation-trait/zipball/702a3ad747735ca957eb98ce17021babae9882ff", + "reference": "702a3ad747735ca957eb98ce17021babae9882ff", "shasum": "" }, "require": { @@ -1802,7 +1911,7 @@ "transaction", "yii2" ], - "time": "2015-07-08 01:44:00" + "time": "2016-02-17 06:20:51" }, { "name": "mootensai/yii2-uuid-behavior", @@ -1861,16 +1970,16 @@ }, { "name": "phpoffice/phpexcel", - "version": "1.8.0", + "version": "1.8.1", "source": { "type": "git", "url": "https://github.com/PHPOffice/PHPExcel.git", - "reference": "e69a5e4d0ffa7fb6f171859e0a04346e580df30b" + "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPOffice/PHPExcel/zipball/e69a5e4d0ffa7fb6f171859e0a04346e580df30b", - "reference": "e69a5e4d0ffa7fb6f171859e0a04346e580df30b", + "url": "https://api.github.com/repos/PHPOffice/PHPExcel/zipball/372c7cbb695a6f6f1e62649381aeaa37e7e70b32", + "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32", "shasum": "" }, "require": { @@ -1914,33 +2023,34 @@ "xls", "xlsx" ], - "time": "2014-03-02 15:22:49" + "time": "2015-05-01 07:00:55" }, { "name": "yiisoft/yii2", - "version": "2.0.5", + "version": "2.0.7", "source": { "type": "git", "url": "https://github.com/yiisoft/yii2-framework.git", - "reference": "ea8c13b9f5cd437bd7bf73cad8a3457a155f3727" + "reference": "f45651582cb853b4326730d9d187a0f7a44a45a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/ea8c13b9f5cd437bd7bf73cad8a3457a155f3727", - "reference": "ea8c13b9f5cd437bd7bf73cad8a3457a155f3727", + "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/f45651582cb853b4326730d9d187a0f7a44a45a3", + "reference": "f45651582cb853b4326730d9d187a0f7a44a45a3", "shasum": "" }, "require": { - "bower-asset/jquery": "2.1.*@stable | 1.11.*@stable", - "bower-asset/jquery.inputmask": "3.1.*", + "bower-asset/jquery": "2.2.*@stable | 2.1.*@stable | 1.11.*@stable", + "bower-asset/jquery.inputmask": "~3.2.2", "bower-asset/punycode": "1.3.*", - "bower-asset/yii2-pjax": ">=2.0.1", + "bower-asset/yii2-pjax": "~2.0.1", "cebe/markdown": "~1.0.0 | ~1.1.0", + "ext-ctype": "*", "ext-mbstring": "*", "ezyang/htmlpurifier": "4.6.*", "lib-pcre": "*", "php": ">=5.4.0", - "yiisoft/yii2-composer": "*" + "yiisoft/yii2-composer": "~2.0.4" }, "bin": [ "yii" @@ -1994,6 +2104,11 @@ "name": "Paul Klimov", "email": "klimov.paul@gmail.com", "role": "Core framework development" + }, + { + "name": "Dmitry Naumenko", + "email": "d.naumenko.a@gmail.com", + "role": "Core framework development" } ], "description": "Yii PHP Framework Version 2", @@ -2002,25 +2117,25 @@ "framework", "yii2" ], - "time": "2015-07-11 02:37:59" + "time": "2016-02-14 14:45:55" }, { "name": "yiisoft/yii2-bootstrap", - "version": "2.0.4", + "version": "2.0.5", "source": { "type": "git", "url": "https://github.com/yiisoft/yii2-bootstrap.git", - "reference": "1b6b1e61cf91c3cdd517d6a7e71d30bb212e4af0" + "reference": "1464f93834b1d5edb1f5625f7ffd6c3723fa4923" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/yiisoft/yii2-bootstrap/zipball/1b6b1e61cf91c3cdd517d6a7e71d30bb212e4af0", - "reference": "1b6b1e61cf91c3cdd517d6a7e71d30bb212e4af0", + "url": "https://api.github.com/repos/yiisoft/yii2-bootstrap/zipball/1464f93834b1d5edb1f5625f7ffd6c3723fa4923", + "reference": "1464f93834b1d5edb1f5625f7ffd6c3723fa4923", "shasum": "" }, "require": { "bower-asset/bootstrap": "3.3.* | 3.2.* | 3.1.*", - "yiisoft/yii2": ">=2.0.4" + "yiisoft/yii2": ">=2.0.6" }, "type": "yii2-extension", "extra": { @@ -2052,24 +2167,24 @@ "bootstrap", "yii2" ], - "time": "2015-05-10 22:08:17" + "time": "2015-09-23 17:48:24" }, { "name": "yiisoft/yii2-composer", - "version": "2.0.3", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/yiisoft/yii2-composer.git", - "reference": "ca8d23707ae47d20b0454e4b135c156f6da6d7be" + "reference": "7452fd908a5023b8bb5ea1b123a174ca080de464" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/yiisoft/yii2-composer/zipball/ca8d23707ae47d20b0454e4b135c156f6da6d7be", - "reference": "ca8d23707ae47d20b0454e4b135c156f6da6d7be", + "url": "https://api.github.com/repos/yiisoft/yii2-composer/zipball/7452fd908a5023b8bb5ea1b123a174ca080de464", + "reference": "7452fd908a5023b8bb5ea1b123a174ca080de464", "shasum": "" }, "require": { - "composer-plugin-api": "1.0.0" + "composer-plugin-api": "^1.0" }, "type": "composer-plugin", "extra": { @@ -2099,7 +2214,7 @@ "extension installer", "yii2" ], - "time": "2015-03-01 06:22:44" + "time": "2016-02-06 00:49:24" } ], "packages-dev": [], diff --git a/crud/Generator.php b/crud/Generator.php index 2485172..aab8526 100644 --- a/crud/Generator.php +++ b/crud/Generator.php @@ -347,11 +347,11 @@ public function generate() if (empty($this->searchModelClass) || strpos($this->tableName, '*') !== false) { $searchModelClassName = $modelClassName . 'Search'; } else { - if ($this->nsSearchModel === $this->nsModel && $this->searchModelClass === $modelClassName) { - $searchModelClassName = $this->searchModelClass . 'Search'; - } else { - $searchModelClassName = $this->searchModelClass; - } + if ($this->nsSearchModel === $this->nsModel && $this->searchModelClass === $modelClassName) { + $searchModelClassName = $this->searchModelClass . 'Search'; + } else { + $searchModelClassName = $this->searchModelClass; + } } $this->searchModelClass = $this->nsSearchModel . '\\' . $searchModelClassName; $searchModel = Yii::getAlias('@' . str_replace('\\', '/', ltrim($this->searchModelClass, '\\') . '.php')); @@ -427,7 +427,7 @@ public function generate() * Generates relations using a junction table by adding an extra viaTable(). * @param TableSchema the table being checked * @param array $fks obtained from the checkPivotTable() method - * @param array $relations + * @param array $relations * @param TableSchema $table * @return array modified $relations */ @@ -581,7 +581,7 @@ protected function generateRelationLink($refs) * Checks if the given table is a junction table. * For simplicity, this method only deals with the case where the pivot contains two PK columns, * each referencing a column in a different table. - * @param TableSchema the table being checked + * @param TableSchema the table being checked * @param TableSchema $table * @return array|boolean the relevant foreign key constraint information if the table is a junction table, * or false if the table is not a junction table. @@ -823,7 +823,7 @@ public function generateRules($table) * @param TableSchema $tableSchema * @return string */ - public function generateGridViewField($attribute, $fk, $tableSchema = null) + public function generateDetailViewField($attribute, $fk, $tableSchema = null) { if (is_null($tableSchema)) { $tableSchema = $this->getTableSchema(); @@ -850,17 +850,8 @@ public function generateGridViewField($attribute, $fk, $tableSchema = null) $humanize = Inflector::humanize($rel[3]); $id = 'grid-' . Inflector::camel2id(StringHelper::basename($this->searchModelClass)) . '-' . $attribute; $output = "[ - 'attribute' => '$attribute', + 'attribute' => '$rel[3].$labelCol', 'label' => " . $this->generateString(ucwords(Inflector::humanize($rel[5]))) . ", - 'value' => function(\$model){ - return \$model->$rel[3]->$labelCol; - }, - 'filterType' => GridView::FILTER_SELECT2, - 'filter' => \\yii\\helpers\\ArrayHelper::map(\\$this->nsModel\\$rel[1]::find()->asArray()->all(), '$rel[4]', '$labelCol'), - 'filterWidgetOptions' => [ - 'pluginOptions' => ['allowClear' => true], - ], - 'filterInputOptions' => ['placeholder' => '$humanize', 'id' => '$id'] ],\n"; return $output; } else { @@ -868,6 +859,105 @@ public function generateGridViewField($attribute, $fk, $tableSchema = null) } } + /** + * Generates code for Grid View field + * @param string $attribute + * @param array $fk + * @param TableSchema $tableSchema + * @return string + */ + public function generateGridViewField($attribute, $fk, $tableSchema = null) + { + if (is_null($tableSchema)) { + $tableSchema = $this->getTableSchema(); + } + if (in_array($attribute, $this->hiddenColumns)) { + return "['attribute' => '$attribute', 'hidden' => true],\n"; + } + $humanize = Inflector::humanize($attribute, true); + if ($tableSchema === false || !isset($tableSchema->columns[$attribute])) { + if (preg_match('/^(password|pass|passwd|passcode)$/i', $attribute)) { + return ""; + } else { + return "'$attribute',\n"; + } + } + $column = $tableSchema->columns[$attribute]; + $format = $this->generateColumnFormat($column); +// if($column->autoIncrement){ +// return ""; +// } else + if (array_key_exists($attribute, $fk) && $attribute) { + $rel = $fk[$attribute]; +// print_r($rel); + $labelCol = $this->getNameAttributeFK($rel[3]); + $humanize = Inflector::humanize($rel[3]); + $id = 'grid-' . Inflector::camel2id(StringHelper::basename($this->searchModelClass)) . '-' . $attribute; + $modelRel = $rel[2] ? Inflector::pluralize($rel[3]) : $rel[3]; + $output = "[ + 'attribute' => '$modelRel.$labelCol', + 'label' => " . $this->generateString(ucwords(Inflector::humanize($rel[5]))) . " + ],\n"; + return $output; + } else { + return "'$attribute" . ($format === 'text' ? "" : ":" . $format) . "',\n"; + } + } + + /** + * Generates code for Grid View field + * @param string $attribute + * @param array $fk + * @param TableSchema $tableSchema + * @return string + */ + public function generateGridViewFieldIndex($attribute, $fk, $tableSchema = null) + { + if (is_null($tableSchema)) { + $tableSchema = $this->getTableSchema(); + } + if (in_array($attribute, $this->hiddenColumns)) { + return "['attribute' => '$attribute', 'hidden' => true],\n"; + } + $humanize = Inflector::humanize($attribute, true); + if ($tableSchema === false || !isset($tableSchema->columns[$attribute])) { + if (preg_match('/^(password|pass|passwd|passcode)$/i', $attribute)) { + return ""; + } else { + return "'$attribute',\n"; + } + } + $column = $tableSchema->columns[$attribute]; + $format = $this->generateColumnFormat($column); +// if($column->autoIncrement){ +// return ""; +// } else + if (array_key_exists($attribute, $fk) && $attribute) { + $rel = $fk[$attribute]; +// print_r($rel); + $labelCol = $this->getNameAttributeFK($rel[3]); + $humanize = Inflector::humanize($rel[3]); + $id = 'grid-' . Inflector::camel2id(StringHelper::basename($this->searchModelClass)) . '-' . $attribute; + $modelRel = $rel[2] ? Inflector::pluralize($rel[3]) : $rel[3]; + $output = "[ + 'attribute' => '$attribute', + 'label' => " . $this->generateString(ucwords(Inflector::humanize($rel[5]))) . ", + 'value' => function(\$model){ + return \$model->$modelRel->$labelCol; + }, + 'filterType' => GridView::FILTER_SELECT2, + 'filter' => \\yii\\helpers\\ArrayHelper::map(\\$this->nsModel\\$rel[1]::find()->asArray()->all(), '$rel[4]', '$labelCol'), + 'filterWidgetOptions' => [ + 'pluginOptions' => ['allowClear' => true], + ], + 'filterInputOptions' => ['placeholder' => '$humanize', 'id' => '$id'] + ],\n"; + return $output; + } else { + return "'$attribute" . ($format === 'text' ? "" : ":" . $format) . "',\n"; + } + } + public function generateFK($tableSchema = null) { if (is_null($tableSchema)) { diff --git a/crud/default/views/_pdf.php b/crud/default/views/_pdf.php index 4d51495..c1aed36 100644 --- a/crud/default/views/_pdf.php +++ b/crud/default/views/_pdf.php @@ -44,7 +44,6 @@ foreach($tableSchema->getColumnNames() as $attribute){ if(!in_array($attribute, $generator->skippedColumns)) { echo " ".$generator->generateGridViewField($attribute,$generator->generateFK($tableSchema), $tableSchema); - } } }?> diff --git a/crud/default/views/index.php b/crud/default/views/index.php index f18dff0..40bb1ee 100644 --- a/crud/default/views/index.php +++ b/crud/default/views/index.php @@ -84,7 +84,7 @@ foreach ($tableSchema->getColumnNames() as $attribute): if (!in_array($attribute, $generator->skippedColumns)) : ?> - generateGridViewField($attribute, $generator->generateFK($tableSchema), $tableSchema)?> + generateGridViewFieldIndex($attribute, $generator->generateFK($tableSchema), $tableSchema)?> diff --git a/crud/default/views/view.php b/crud/default/views/view.php index 0ff7d5a..b231ce8 100644 --- a/crud/default/views/view.php +++ b/crud/default/views/view.php @@ -71,7 +71,7 @@ } else{ foreach($tableSchema->getColumnNames() as $attribute){ if(!in_array($attribute, $generator->skippedColumns)) { - echo " ".$generator->generateGridViewField($attribute,$generator->generateFK($tableSchema), $tableSchema); + echo " ".$generator->generateDetailViewField($attribute,$generator->generateFK($tableSchema), $tableSchema); } }