{"id":19768061,"url":"https://github.com/jonathandey/oc-jd-form","last_synced_at":"2026-03-08T22:33:26.097Z","repository":{"id":93880898,"uuid":"317026571","full_name":"jonathandey/oc-jd-form","owner":"jonathandey","description":"An OctoberCMS plugin that enables you to use backend forms on the front-end","archived":false,"fork":false,"pushed_at":"2020-11-29T19:37:49.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T01:48:36.709Z","etag":null,"topics":["form","form-builder","octobercms","octobercms-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathandey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-29T19:26:24.000Z","updated_at":"2023-01-09T11:18:10.000Z","dependencies_parsed_at":"2023-04-07T01:33:11.584Z","dependency_job_id":null,"html_url":"https://github.com/jonathandey/oc-jd-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonathandey/oc-jd-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathandey%2Foc-jd-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathandey%2Foc-jd-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathandey%2Foc-jd-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathandey%2Foc-jd-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathandey","download_url":"https://codeload.github.com/jonathandey/oc-jd-form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathandey%2Foc-jd-form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30275569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["form","form-builder","octobercms","octobercms-plugin"],"created_at":"2024-11-12T04:34:36.865Z","updated_at":"2026-03-08T22:33:26.070Z","avatar_url":"https://github.com/jonathandey.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JD Form\n\nAn OctoberCMS plugin that enables you to use backend forms on the front-end.\n\nThis enables fast bootstrapping, form maintenance \u0026 helps prevent duplicate code.\n\n## Example usage\n\n```\ntitle = \"Form Demonstration\"\nurl = \"/form/:context/:id?\"\nlayout = \"default\"\n\n[jdForm]\nmodel_id = \"{{ :id }}\"\nform_context = \"{{ :context }}\"\nmodel_class = \"Author\\Plugin\\Models\\Model\"\n==\n\n\u003cdiv class=\"container\"\u003e\n    {% component 'jdForm' %}\n\u003c/div\u003e\n\n```\n\nThen visit;\n* https://mysite.example/form/create to create a new model record.\n* https://mysite.example/form/update/1 to update a models record.\n\n## Fields definition\nYou can define fields definition using the `definition` parameter for the `jdForm` component.\n\nBy default the plugin will look for a front-end fields file. It will look for a file called `fields_frontend.yaml` inside your models directory.\nOtherwise it will use your `fields.yaml` file, the same one that is used on the backend.\n\n## Including the functionality in your own component\n\nYou can add the JD Form component to your own component using the addComponent method\n```\n$this-\u003econtroller-\u003eaddComponent(\"jdForm\", \"jdForm\", [\n    \"model_id\" =\u003e 1,\n    \"form_context\" =\u003e \"update\",\n    \"model_class\" =\u003e \"Author\\Plugin\\Models\\Model\"\n])\n```\n\n## Override form field templates (untested)\n_Borrowed from https://octobercms.com/plugin/luketowers-easyforms_\n\nYou can easily override any backend partial that would be rendered by the form \u0026 it's included widgets by replicating the desired partial under the `themes/$activeTheme/partials/$componentAlias` directory. If a match isn't found in that directory it will fall back by looking at the `themes/$activeTheme/partials/jdForm` directory.\n\nIn order for a given partial to be overridden, it must be copied under the above directory using the exact same (case-sensitive) application root relative path as where it exists normally. For instance, if you wanted to override the `/path/to/october/modules/backend/widgets/form/partials/_field_text.htm` partial, then you would need to create a file under `/path/to/october/themes/$activeTheme/partials/$widgetAlias/modules/backend/widgets/form/partials/_field_text.htm`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathandey%2Foc-jd-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathandey%2Foc-jd-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathandey%2Foc-jd-form/lists"}