orchidsoftware / orchidsoftware/platform
Show uploaded files in edit form
@tabuna is already working on this.
Since Sep 6, 2021.
- Dominant language
- PHP
- Stars
- 4.8k
- Forks
- 662
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
Is your feature request related to a problem? Please describe.
I am using Orchid crud that includes an upload field. The uploaded file is video and I am trying to render the file within HTML video player. But I couldn't see any way to do it so far.
Describe the solution you'd like
Orchid should allow creating custom HTML elements easily. Something like:
return [
Input::make('title'),
HTML::make('video')->render(function ($model) {
return view('partials.video', ['video' => $model]);
}),
];
Describe alternatives you've considered
I tried using Layout to embed HTML in a form (fields function in the resource file of orchid crud). but there is an error. I couldn't find any other way to accomplish this within Orchid crud.
Additional context
I am using Orchid crud.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.