Matthew
Relation Info on same page as Resource
Often I will want to put a list of resource records, and a relation on the same 'view'.
For example, I could have a list of products and then each product hasMany productNotes.
I can make a relationmanager for productNotes, and then when you view an individual product the relation table is there.
What about if I want just to click between those products as they are on the table, see the notes, without having to go in and out of each record?
Interested to hear how anyone approaches this ?
Thanks
6 replies
Filtering a Select Box
Has anyone successfully introduced functionality whereby they can filter a select box ?
For example, if I have a an employees table and a document table, and I have a form that adds document records for employees...
I'll have a select box that allows me to select the employee(s), but what if i wanted to enable the users to filter that list down, such as maybe all the employees with a certain grade etc ?
I realise there are other ways to achieve something similar, like starting with the employees table and having bulk add...
But wondered if anyone else had tried this approach ?
11 replies
Using rules on data not inside the form
Evening,
I've want to make a field unique, but only within a subset. For example, if I am adding a Tag name, but I want that unique within a Type, but other Types could have the same name.
I don't record the Type on the form, I add that to the DB using the
->mutateFormDataUsing
method.
So how do I make something like
Not that you can get $data in the unique()
method, but cdt_type
definitely not in $get4 replies
Create Action using different forms
Anybody got any suggestions on how to go about using a different form dependent on the type of record being added.
I've got a table which holds different types of records, with a load of options that get stored in a Json format as a single column.
Could therefore do with a different 'form' for each option.
I can bring up an initial modal with a type select, but not sure how to advance that into a createAction with a dynamic form choice based upon the initial selection.
Tried this:
But it doesn't fire a new modal.
2 replies
getTabs() and limiting CreateAction options
Is it possible to determine which getTabs() option is enabled when launching an Action ?
I want to split a table by getTabs() to various sections, and would like the CreateAction Header to respect that 'filter'
4 replies
Global filter...how to refresh on change though.
I want a kind of global filter. Users are allocated locations, and their resources can be filtered by locations.
I want to give users the functionality to select one or more of their permitted locations, and then for all their resources to be filtered accordingly.
So far I have worked out how to:
1) Create the filter select in the header
2) Persist this throughout the session, across the panels
3) Apply the relevant global scopes dynamically to filter everything
I am only missing one thing...which is when the select items are altered...it needs some sort of page refresh or change of resource to take effect.
How can I make it reload everything on change ?
5 replies
Breezy & Filament::getTenant()
I have several pages sitting outside the panel, which I don't want to have to re-write from scratch as they are complicated, and we've got more urgent tasks.
We had them workign an integrating fine, using the auth and even multi-tenancy.
However, after installing Breezy, the
Filament::getTenant()
function, for pages outside of the panel is returning null
Assume its got something to do with the auth changes, but not sure where to start with this !
Anyone seen anything similar or got any suggestions ?2 replies
create button on wizard in modal, hide until end
I see some documentation on when a create wizard is used within a create page, about how to render the submit button on the last step.
I can't find anything about when the wizard is within a modal\slideover.
Is it possible to hide the create button until the end ?
7 replies
Table Actions and making variables more efficient
Interested in any opinions on how people avoid repeating code for issues where a table action, and elements of that are dependent on the status of $record
For example, if:
Obviously a very basic example, but when you start adding a lot more methods, and increasing the complexity of the options, it can feel very cluttered and inefficient.
How do people go about extracting some of this logic for the $record?
6 replies
Themes and CSS and Hook Classes
Am I right in thinking using the fi hook classes and custom theme, I still wouldn't be able to influence classes like this one:
I'm trying to move a hintaction to be right next to the label. If I change that element line to
justify-start
, it has the desired result.
But I cannot get a custom theme to perform that. Some failed attempts look like this:
Is it possible ?11 replies
Route not defined ...cluster issue?
Good evening
I started off with a navigation group called 'Finance', which I then later decide I wanted as a cluster.
I built a cluster called 'Finance', moved the resources and undid the navigation group settings.
I now get:
Route [filament.customer.Finance.resource.invoice.view] not defined.
I've tried clearing all the caches etc.
I experimented with recreating a new cluster called 'Finances' , which worked.
The OCD part of me though wants to keep it singular and solve this issue.2 replies