{"action":"created","comment":{"url":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/comments/117178830","pull_request_review_id":38861695,"id":117178830,"diff_hunk":"@@ -1,64 +1,41 @@\n @extends('backpack::layout')\n \n @section('header')\n-\t<section class=\"content-header\">\n-\t  <h1>\n-\t    {{ trans('backpack::crud.add') }} <span class=\"text-lowercase\">{{ $crud->entity_name }}</span>\n-\t  </h1>\n-\t  <ol class=\"breadcrumb\">\n-\t    <li><a href=\"{{ url(config('backpack.base.route_prefix'), 'dashboard') }}\">{{ trans('backpack::crud.admin') }}</a></li>\n-\t    <li><a href=\"{{ url($crud->route) }}\" class=\"text-capitalize\">{{ $crud->entity_name_plural }}</a></li>\n-\t    <li class=\"active\">{{ trans('backpack::crud.add') }}</li>\n-\t  </ol>\n-\t</section>\n+  <section class=\"content-header\">\n+    <h1>\n+      {{ trans('backpack::crud.add_a_new') }} <span class=\"text-lowercase\">{{ $crud->entity_name }}</span>","path":"src/resources/views/create.blade.php","position":16,"original_position":16,"commit_id":"5f4364143dde777dd5d8b42ff8e6cd9ffa5b759b","original_commit_id":"5f4364143dde777dd5d8b42ff8e6cd9ffa5b759b","user":{"login":"jguyomard","id":1242207,"avatar_url":"https://avatars1.githubusercontent.com/u/1242207?v=3","gravatar_id":"","url":"https://api.github.com/users/jguyomard","html_url":"https://github.com/jguyomard","followers_url":"https://api.github.com/users/jguyomard/followers","following_url":"https://api.github.com/users/jguyomard/following{/other_user}","gists_url":"https://api.github.com/users/jguyomard/gists{/gist_id}","starred_url":"https://api.github.com/users/jguyomard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jguyomard/subscriptions","organizations_url":"https://api.github.com/users/jguyomard/orgs","repos_url":"https://api.github.com/users/jguyomard/repos","events_url":"https://api.github.com/users/jguyomard/events{/privacy}","received_events_url":"https://api.github.com/users/jguyomard/received_events","type":"User","site_admin":false},"body":"Good question. \r\n\r\nBefore, the title of the main box was \"Add a new Job\" (for instance) : \r\n![](https://cloud.githubusercontent.com/assets/1242207/23160190/d1ffe4ac-f825-11e6-9fba-863b891ae5e9.png)\r\n\r\nBut now, when you have boxes enabled, this box title change :\r\n![](https://cloud.githubusercontent.com/assets/1242207/23139586/6bd4be82-f7ad-11e6-9371-d23f39a703d2.png)\r\n\r\nI wanted to keep this \"Add a new jobs\", so i change this `<h1>`. But this can be discussed.","created_at":"2017-05-18T07:40:47Z","updated_at":"2017-05-18T07:40:47Z","html_url":"https://github.com/Laravel-Backpack/CRUD/pull/487#discussion_r117178830","pull_request_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/487","_links":{"self":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/comments/117178830"},"html":{"href":"https://github.com/Laravel-Backpack/CRUD/pull/487#discussion_r117178830"},"pull_request":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/487"}}},"pull_request":{"url":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/487","id":107068957,"html_url":"https://github.com/Laravel-Backpack/CRUD/pull/487","diff_url":"https://github.com/Laravel-Backpack/CRUD/pull/487.diff","patch_url":"https://github.com/Laravel-Backpack/CRUD/pull/487.patch","issue_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/487","number":487,"state":"open","locked":false,"title":"WIP: Add the ability to add bootstrap boxes to crud","user":{"login":"jguyomard","id":1242207,"avatar_url":"https://avatars1.githubusercontent.com/u/1242207?v=3","gravatar_id":"","url":"https://api.github.com/users/jguyomard","html_url":"https://github.com/jguyomard","followers_url":"https://api.github.com/users/jguyomard/followers","following_url":"https://api.github.com/users/jguyomard/following{/other_user}","gists_url":"https://api.github.com/users/jguyomard/gists{/gist_id}","starred_url":"https://api.github.com/users/jguyomard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jguyomard/subscriptions","organizations_url":"https://api.github.com/users/jguyomard/orgs","repos_url":"https://api.github.com/users/jguyomard/repos","events_url":"https://api.github.com/users/jguyomard/events{/privacy}","received_events_url":"https://api.github.com/users/jguyomard/received_events","type":"User","site_admin":false},"body":"Hi everyone,\r\n\r\nBackback is a great admin package, thank you for your Job!\r\n\r\nCreating CRUD is really easy. However, even if you can add custom html (to add h1-5, etc), it's difficult to handle with forms with a lot of fields. For instance, a blog post with a title, a status, an author, a date, images, summary, wysiwyg(s), seo fields...\r\n\r\n\r\n# Summary\r\n\r\nInspired by the \"Tabs\" feature, i try to add the ability to add bootstrap boxes to forms. This feature is compatible with tabs: you can have tabs in a box.\r\n\r\n\r\n# Preview\r\n\r\nFor instance, you can have something like this (I added many colors / borders to show you the possibilities):\r\n\r\n![backpack-crud](https://cloud.githubusercontent.com/assets/1242207/23139586/6bd4be82-f7ad-11e6-9371-d23f39a703d2.png)\r\n\r\n\r\n# Usage : Defining boxes\r\n\r\nThis Box API is inspired by the Tabs API. You can define new box with an additional (and optional) `box` key. If you want, you can also set box options with `setBoxOptions` method (to add classes, to collapse a box by default, etc).\r\n\r\n```php\r\n       // Basic box, just with a \"box\" key\r\n       $this->crud->addField([\r\n            'name' => 'name',\r\n            'label' => \"Title\",\r\n            'type' => 'text',\r\n            'box' => 'Basic Informations',\r\n        ]);\r\n\r\n        $this->crud->addField([\r\n            'name' => 'summary',\r\n            'label' => \"Summary\",\r\n            'type' => 'textarea',\r\n            'box' => 'Basic Informations',\r\n        ]);\r\n\r\n\r\n        // optional : add some options (classes, callapsed by default, on the side...) to the bootstrap box\r\n        $this->crud->setBoxOptions('Content', [\r\n            'class' => \"box-warning\",\r\n            'collapsed' => true,\r\n        ]);\r\n\r\n       // Box with tabs\r\n        $this->crud->addField([\r\n            'name' => 'description',\r\n            'label' => \"Description\",\r\n            'type' => 'wysiwyg',\r\n            'box' => 'Content',\r\n            'tab' => 'Description'\r\n        ]);\r\n\r\n        $this->crud->addField([\r\n            'name' => 'description2',\r\n            'label' => \"Story\",\r\n            'type' => 'wysiwyg',\r\n            'box' => 'Content',\r\n            'tab' => 'Story'\r\n        ]);\r\n\r\n        $this->crud->addField([\r\n            'name' => 'story_enabled',\r\n            'label' => \"Active story page\",\r\n            'type' => 'checkbox',\r\n            'default' => true,\r\n            'box' => 'Content',\r\n            'tab' => 'Story'\r\n        ]);\r\n\r\n\r\n        // Box on the side\r\n        $this->crud->setBoxOptions('Details', [\r\n             'side' => true,\r\n        ]);\r\n\r\n        $this->crud->addField([\r\n            'name' => 'poids',\r\n            'label' => \"Number\",\r\n            'type' => 'number',\r\n            'box' => 'Details',\r\n        ]);\r\n\r\n        $this->crud->addField([\r\n            'name' => 'status',\r\n            'label' => \"Status\",\r\n            'type' => 'select_from_array',\r\n            'options' => ['one' => 'Published', 'two' => 'Two', 'three' => 'Three'],\r\n            'allows_null' => false,\r\n            'allows_multiple' => false,\r\n            'box' => 'Details',\r\n        ]);\r\n\r\n        // ...\r\n```\r\n\r\nIf no box is defined, a default box is added (with a md-8 width, like today).\r\n\r\nYou can add CSS classes (`box-warning`, `box-primary`, box-solid`...) and collapse boxes by default with options.\r\n\r\n\r\n# Open Discussion\r\n\r\nThis PR is marked as \"Work In Progress\". Why ? Because it's just an idea/suggestion, we can't merge it in 3.2.* \"as is\", for many reasons :\r\n- I added some breaking changes (in create/edit views, Tabs trait...)\r\n- Maybe we can move the Save button to another location, but where?\r\n- I did some tests, but not enough\r\n- I think API can be better (i personally like this proposal: #41, but it is another question)\r\n- I moved the javascript associated with the Save button in the `form_save_buttons` view, but it's debatable\r\n\r\nWhat do think about this feature?","created_at":"2017-02-20T20:04:05Z","updated_at":"2017-05-18T07:40:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05d9cdd38ec2ff41ade6859070a15f42ab9e37bc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/487/commits","review_comments_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/487/comments","review_comment_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/487/comments","statuses_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/statuses/5f4364143dde777dd5d8b42ff8e6cd9ffa5b759b","head":{"label":"jguyomard:feature/boxes","ref":"feature/boxes","sha":"5f4364143dde777dd5d8b42ff8e6cd9ffa5b759b","user":{"login":"jguyomard","id":1242207,"avatar_url":"https://avatars1.githubusercontent.com/u/1242207?v=3","gravatar_id":"","url":"https://api.github.com/users/jguyomard","html_url":"https://github.com/jguyomard","followers_url":"https://api.github.com/users/jguyomard/followers","following_url":"https://api.github.com/users/jguyomard/following{/other_user}","gists_url":"https://api.github.com/users/jguyomard/gists{/gist_id}","starred_url":"https://api.github.com/users/jguyomard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jguyomard/subscriptions","organizations_url":"https://api.github.com/users/jguyomard/orgs","repos_url":"https://api.github.com/users/jguyomard/repos","events_url":"https://api.github.com/users/jguyomard/events{/privacy}","received_events_url":"https://api.github.com/users/jguyomard/received_events","type":"User","site_admin":false},"repo":{"id":82594603,"name":"laravel-backpack-crud","full_name":"jguyomard/laravel-backpack-crud","owner":{"login":"jguyomard","id":1242207,"avatar_url":"https://avatars1.githubusercontent.com/u/1242207?v=3","gravatar_id":"","url":"https://api.github.com/users/jguyomard","html_url":"https://github.com/jguyomard","followers_url":"https://api.github.com/users/jguyomard/followers","following_url":"https://api.github.com/users/jguyomard/following{/other_user}","gists_url":"https://api.github.com/users/jguyomard/gists{/gist_id}","starred_url":"https://api.github.com/users/jguyomard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jguyomard/subscriptions","organizations_url":"https://api.github.com/users/jguyomard/orgs","repos_url":"https://api.github.com/users/jguyomard/repos","events_url":"https://api.github.com/users/jguyomard/events{/privacy}","received_events_url":"https://api.github.com/users/jguyomard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jguyomard/laravel-backpack-crud","description":"Build a custom admin interface for your Eloquent models, using Laravel 5.2, 5.3 or 5.4","fork":true,"url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud","forks_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/forks","keys_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/teams","hooks_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/hooks","issue_events_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/issues/events{/number}","events_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/events","assignees_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/assignees{/user}","branches_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/branches{/branch}","tags_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/tags","blobs_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/git/refs{/sha}","trees_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/statuses/{sha}","languages_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/languages","stargazers_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/stargazers","contributors_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/contributors","subscribers_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/subscribers","subscription_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/subscription","commits_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/commits{/sha}","git_commits_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/git/commits{/sha}","comments_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/comments{/number}","issue_comment_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/issues/comments{/number}","contents_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/contents/{+path}","compare_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/merges","archive_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/downloads","issues_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/issues{/number}","pulls_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/pulls{/number}","milestones_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/milestones{/number}","notifications_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/labels{/name}","releases_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/releases{/id}","deployments_url":"https://api.github.com/repos/jguyomard/laravel-backpack-crud/deployments","created_at":"2017-02-20T19:33:00Z","updated_at":"2017-02-20T19:33:27Z","pushed_at":"2017-02-21T10:02:35Z","git_url":"git://github.com/jguyomard/laravel-backpack-crud.git","ssh_url":"git@github.com:jguyomard/laravel-backpack-crud.git","clone_url":"https://github.com/jguyomard/laravel-backpack-crud.git","svn_url":"https://github.com/jguyomard/laravel-backpack-crud","homepage":"http://backpackforlaravel.com","size":6092,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Laravel-Backpack:master","ref":"master","sha":"add4ed6c491caeef7be85d35dd7bff0a60af8591","user":{"login":"Laravel-Backpack","id":15017015,"avatar_url":"https://avatars1.githubusercontent.com/u/15017015?v=3","gravatar_id":"","url":"https://api.github.com/users/Laravel-Backpack","html_url":"https://github.com/Laravel-Backpack","followers_url":"https://api.github.com/users/Laravel-Backpack/followers","following_url":"https://api.github.com/users/Laravel-Backpack/following{/other_user}","gists_url":"https://api.github.com/users/Laravel-Backpack/gists{/gist_id}","starred_url":"https://api.github.com/users/Laravel-Backpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laravel-Backpack/subscriptions","organizations_url":"https://api.github.com/users/Laravel-Backpack/orgs","repos_url":"https://api.github.com/users/Laravel-Backpack/repos","events_url":"https://api.github.com/users/Laravel-Backpack/events{/privacy}","received_events_url":"https://api.github.com/users/Laravel-Backpack/received_events","type":"Organization","site_admin":false},"repo":{"id":53581270,"name":"CRUD","full_name":"Laravel-Backpack/CRUD","owner":{"login":"Laravel-Backpack","id":15017015,"avatar_url":"https://avatars1.githubusercontent.com/u/15017015?v=3","gravatar_id":"","url":"https://api.github.com/users/Laravel-Backpack","html_url":"https://github.com/Laravel-Backpack","followers_url":"https://api.github.com/users/Laravel-Backpack/followers","following_url":"https://api.github.com/users/Laravel-Backpack/following{/other_user}","gists_url":"https://api.github.com/users/Laravel-Backpack/gists{/gist_id}","starred_url":"https://api.github.com/users/Laravel-Backpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laravel-Backpack/subscriptions","organizations_url":"https://api.github.com/users/Laravel-Backpack/orgs","repos_url":"https://api.github.com/users/Laravel-Backpack/repos","events_url":"https://api.github.com/users/Laravel-Backpack/events{/privacy}","received_events_url":"https://api.github.com/users/Laravel-Backpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Laravel-Backpack/CRUD","description":"Build a custom admin interface for your Eloquent models, using Laravel 5.2, 5.3 or 5.4","fork":false,"url":"https://api.github.com/repos/Laravel-Backpack/CRUD","forks_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/forks","keys_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/teams","hooks_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/hooks","issue_events_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/events{/number}","events_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/events","assignees_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/assignees{/user}","branches_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/branches{/branch}","tags_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/tags","blobs_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/git/refs{/sha}","trees_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/statuses/{sha}","languages_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/languages","stargazers_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/stargazers","contributors_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/contributors","subscribers_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/subscribers","subscription_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/subscription","commits_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/commits{/sha}","git_commits_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/git/commits{/sha}","comments_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/comments{/number}","issue_comment_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/comments{/number}","contents_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/contents/{+path}","compare_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/merges","archive_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/downloads","issues_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues{/number}","pulls_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls{/number}","milestones_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/milestones{/number}","notifications_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/labels{/name}","releases_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/releases{/id}","deployments_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/deployments","created_at":"2016-03-10T12:03:46Z","updated_at":"2017-05-17T17:08:42Z","pushed_at":"2017-05-16T14:17:07Z","git_url":"git://github.com/Laravel-Backpack/CRUD.git","ssh_url":"git@github.com:Laravel-Backpack/CRUD.git","clone_url":"https://github.com/Laravel-Backpack/CRUD.git","svn_url":"https://github.com/Laravel-Backpack/CRUD","homepage":"http://backpackforlaravel.com","size":6203,"stargazers_count":579,"watchers_count":579,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":214,"mirror_url":null,"open_issues_count":127,"forks":214,"open_issues":127,"watchers":579,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/487"},"html":{"href":"https://github.com/Laravel-Backpack/CRUD/pull/487"},"issue":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/487"},"comments":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/487/comments"},"review_comments":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/487/comments"},"review_comment":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/pulls/487/commits"},"statuses":{"href":"https://api.github.com/repos/Laravel-Backpack/CRUD/statuses/5f4364143dde777dd5d8b42ff8e6cd9ffa5b759b"}}}}
{"actor":{"display_login":"jguyomard"}}