orchidsoftware / orchidsoftware/platform

Show uploaded files in edit form

Open
#1,859 2 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.