Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defined survey page #342

Merged
merged 8 commits into from
Nov 29, 2023
Merged

Add defined survey page #342

merged 8 commits into from
Nov 29, 2023

Conversation

techenby
Copy link
Member

No description provided.

@techenby techenby self-assigned this Nov 29, 2023
Copy link

what-the-diff bot commented Nov 29, 2023

PR Summary

  • Added a New Page for Viewing Survey Responses
    A new page, known as ViewSurveyForm, has been created in the FormResource/Pages directory. This page allows users to view the responses to a particular survey form.

  • Updated FormResource Class

    • The FormResource class now includes a route to the ViewSurveyForm page, making it accessible to users.
    • The ViewAction in the same class has been customized with a new function (url) that generates a URL based on the type of the record.
  • Modified ViewResponse Class
    The Action class being used within the ViewResponse class has been updated. Now, it uses the Filament\Actions\Action instead of Filament\Pages\Actions\Action.

  • Added a New Template for Survey Responses
    A new template file, survey.blade.php, has been created under the filament/resources/form-resource/pages directory for displaying survey responses. This template groups the responses by the type of question (like lists or matrix) and can handle various types of questions.

@techenby techenby merged commit 951e1cd into main Nov 29, 2023
1 check passed
@techenby techenby deleted the amn/view-surveys branch November 29, 2023 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant