Skip to content

Commit

Permalink
Improve travel help text
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Dec 14, 2024
1 parent 070d080 commit ea25cff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/Nova/TravelAssignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public function fields(NovaRequest $request): array
->withoutTrashed()
->searchable()
->rules('required', 'unique:travel_assignments,user_id,NULL,id,travel_id,'.$request->travel)
->readonly(static fn (NovaRequest $request): bool => $request->editMode === 'update'),
->readonly(static fn (NovaRequest $request): bool => $request->editMode === 'update')
->help(view('nova.help.travel.assignment.member')->render()),

BelongsTo::make('Trip', 'travel', Travel::class)
->withoutTrashed()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Only members that have recently paid dues are shown here by default. If you need to create an assignment for a member that hasn't paid dues, go to their user details page and click <strong>Create Trip Assignment</strong> there.
2 changes: 1 addition & 1 deletion resources/views/nova/help/travel/assignment/trip.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Only upcoming trips are shown here by default. If you need to create an assignment for a past trip, go to the trip details page and click <strong>Create Trip Assignment</strong> there.
Only upcoming trips in draft status are shown here by default. If you need to create an assignment for a past trip, go to the trip details page and click <strong>Create Trip Assignment</strong> there.

0 comments on commit ea25cff

Please sign in to comment.