Title: Adding readOnly to Date or Datetime fields brook the date configured format · Issue #258 · litstack/litstack · GitHub
Open Graph Title: Adding readOnly to Date or Datetime fields brook the date configured format · Issue #258 · litstack/litstack
X Title: Adding readOnly to Date or Datetime fields brook the date configured format · Issue #258 · litstack/litstack
Description: Hi, When I set a datetime or date field as Readonly it don't take the format : in the show method of my Crud config file I have multiple dates $form->dt('created_at', 'd/m/Y H:i') ->title('Created At') ->readonly() ; $form->date('updated...
Open Graph Description: Hi, When I set a datetime or date field as Readonly it don't take the format : in the show method of my Crud config file I have multiple dates $form->dt('created_at', 'd/m/Y H:i') ->title('Created ...
X Description: Hi, When I set a datetime or date field as Readonly it don't take the format : in the show method of my Crud config file I have multiple dates $form->dt('created_at', 'd/m/Y H:i&...
Opengraph URL: https://github.com/litstack/litstack/issues/258
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Adding readOnly to Date or Datetime fields brook the date configured format","articleBody":"Hi,\r\nWhen I set a datetime or date field as Readonly it don't take the format : \r\n\r\nin the show method of my Crud config file I have multiple dates\r\n```\r\n $form-\u003edt('created_at', 'd/m/Y H:i')\r\n -\u003etitle('Created At')\r\n -\u003ereadonly()\r\n ;\r\n\r\n $form-\u003edate('updated_at', 'd/m/Y H:i')\r\n -\u003etitle('Updated At')\r\n -\u003ereadOnly();\r\n```\r\n\r\nit render the form like this : \r\n\r\n\r\n\r\nwhen I remove the readOnly , it shows : \r\n\r\n\r\n\r\nit seems that the readOnly brook the formatting params for date and datetime !!\r\n\r\nThanks.\r\n","author":{"url":"https://github.com/lhoucinecherif","@type":"Person","name":"lhoucinecherif"},"datePublished":"2021-11-16T22:27:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/258/litstack/issues/258"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:11cc058c-1b21-8670-9546-932de82ffa2b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8846:90430:F01615:13414EC:69924C62 |
| html-safe-nonce | 80018b8e1ed928789cf70d363205213bb386411118ba671e1451fbfe6b343f90 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODQ2OjkwNDMwOkYwMTYxNToxMzQxNEVDOjY5OTI0QzYyIiwidmlzaXRvcl9pZCI6IjY0NjcxODMxMTEyMTgyODU2NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 201a56b5ee23420e03ca78f7725234b5dba4d3e8c4e7f8ad7ca58318354a3ea3 |
| hovercard-subject-tag | issue:1055470195 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/litstack/litstack/258/issue_layout |
| twitter:image | https://opengraph.githubassets.com/edd6165332413c0976adb970b79dacf1d9d18261bf978c67290d9144a37abfcd/litstack/litstack/issues/258 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/edd6165332413c0976adb970b79dacf1d9d18261bf978c67290d9144a37abfcd/litstack/litstack/issues/258 |
| og:image:alt | Hi, When I set a datetime or date field as Readonly it don't take the format : in the show method of my Crud config file I have multiple dates $form->dt('created_at', 'd/m/Y H:i') ->title('Created ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lhoucinecherif |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/litstack/litstack git https://github.com/litstack/litstack.git |
| octolytics-dimension-user_id | 70018384 |
| octolytics-dimension-user_login | litstack |
| octolytics-dimension-repository_id | 195292437 |
| octolytics-dimension-repository_nwo | litstack/litstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 195292437 |
| octolytics-dimension-repository_network_root_nwo | litstack/litstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width