source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/home_address/statuses_controller.rb
Ruby
mit
19
main
779
module Providers module HomeAddress class StatusesController < ProviderBaseController prefix_step_with :home_address reviewed_by :legal_aid_application, :check_provider_answers def show @form = ::HomeAddress::StatusForm.new(model: applicant) @correspondence_address = applicant.a...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/home_address/non_uk_home_addresses_controller.rb
Ruby
mit
19
main
1,184
module Providers module HomeAddress class NonUkHomeAddressesController < ProviderBaseController reviewed_by :legal_aid_application, :check_provider_answers def show @form = Addresses::NonUkHomeAddressForm.new(model: non_uk_home_address) end def update @form = Addresses::N...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/home_address/selections_controller.rb
Ruby
mit
19
main
544
module Providers module HomeAddress class SelectionsController < AddressSelectionsBaseController prefix_step_with :home_address reviewed_by :legal_aid_application, :check_provider_answers private def address applicant.home_address || applicant.build_address(country_code: "GBR", cou...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/regular_outgoings_controller.rb
Ruby
mit
19
main
896
module Providers module Partners class RegularOutgoingsController < ProviderBaseController prefix_step_with :partner def show @form = RegularOutgoingsForm.new(legal_aid_application:) end def update @form = RegularOutgoingsForm.new(regular_outgoings_params) if @fo...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/employment_incomes_controller.rb
Ruby
mit
19
main
1,032
module Providers module Partners class EmploymentIncomesController < ProviderBaseController prefix_step_with :partner before_action :employments_and_payments def show @partner = partner @form = ::Partners::EmploymentIncomeForm.new(model: partner) end def update ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/details_controller.rb
Ruby
mit
19
main
769
module Providers module Partners class DetailsController < ProviderBaseController prefix_step_with :partner def show @form = ::Partners::DetailsForm.new(model: partner) end def update @form = ::Partners::DetailsForm.new(form_params) render :show unless save_contin...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/employed_controller.rb
Ruby
mit
19
main
783
module Providers module Partners class EmployedController < ProviderBaseController prefix_step_with :partner def index @partner = partner @form = ::Partners::EmployedForm.new(model: partner) legal_aid_application.assess_partner_means! end def create @form ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/client_has_partners_controller.rb
Ruby
mit
19
main
616
module Providers module Partners class ClientHasPartnersController < ProviderBaseController def show @form = ::Partners::ClientHasPartnerForm.new(model: applicant) end def update @form = ::Partners::ClientHasPartnerForm.new(form_params) render :show unless save_continue_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/bank_accounts_controller.rb
Ruby
mit
19
main
982
module Providers module Partners class BankAccountsController < ProviderBaseController prefix_step_with :partner helper_method :attributes def show @form = ::Partners::OfflineAccountsForm.new(model: savings_amount) end def update @form = ::Partners::OfflineAccounts...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/student_finances_controller.rb
Ruby
mit
19
main
628
module Providers module Partners class StudentFinancesController < ProviderBaseController prefix_step_with :partner def show @form = ::Partners::StudentFinanceForm.new(model: partner) end def update @form = ::Partners::StudentFinanceForm.new(form_params) render :s...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/full_employment_details_controller.rb
Ruby
mit
19
main
741
module Providers module Partners class FullEmploymentDetailsController < ProviderBaseController prefix_step_with :partner def show @partner = partner @form = ::Partners::FullEmploymentDetailsForm.new(model: partner) end def update @form = ::Partners::FullEmploymen...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/bank_statements_controller.rb
Ruby
mit
19
main
1,077
module Providers module Partners class BankStatementsController < Providers::BankStatementsController skip_back_history_for :list prefix_step_with :partner def show legal_aid_application.set_transaction_period end private def set_form @form = BankStatementForm...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/state_benefits_controller.rb
Ruby
mit
19
main
1,308
module Providers module Partners class StateBenefitsController < ProviderBaseController prefix_step_with :partner def show @form = Providers::Means::StateBenefitForm.new(model: state_benefit_transaction) end def new @form = Providers::Means::StateBenefitForm.new(model: st...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/regular_incomes_controller.rb
Ruby
mit
19
main
867
module Providers module Partners class RegularIncomesController < ProviderBaseController prefix_step_with :partner def show @form = RegularIncomeForm.new(legal_aid_application:) end def update @form = RegularIncomeForm.new(regular_income_params) if @form.save ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/contrary_interests_controller.rb
Ruby
mit
19
main
845
module Providers module Partners class ContraryInterestsController < ProviderBaseController def show @form = ::Partners::ContraryInterestsForm.new(model: applicant) end def update @form = ::Partners::ContraryInterestsForm.new(form_params) remove_partner if @form.partner_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/about_financial_means_controller.rb
Ruby
mit
19
main
204
module Providers module Partners class AboutFinancialMeansController < ProviderBaseController prefix_step_with :partner def update continue_or_draft end end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/receives_state_benefits_controller.rb
Ruby
mit
19
main
819
module Providers module Partners class ReceivesStateBenefitsController < ProviderBaseController prefix_step_with :partner def show @form = ReceivesStateBenefitsForm.new(model: partner) end def update @form = ReceivesStateBenefitsForm.new(form_params) remove_state_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/remove_state_benefits_controller.rb
Ruby
mit
19
main
1,154
module Providers module Partners class RemoveStateBenefitsController < ProviderBaseController prefix_step_with :partner def show form regular_transaction end def update if form.valid? regular_transaction&.destroy! if form.remove_state_benefit? ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/cash_outgoings_controller.rb
Ruby
mit
19
main
1,546
module Providers module Partners class CashOutgoingsController < ProviderBaseController before_action :setup_cash_outgoings, only: %i[show update] prefix_step_with :partner def show; end def update if aggregated_cash_outgoings.update(form_params) update_no_cash_outgoin...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/add_other_state_benefits_controller.rb
Ruby
mit
19
main
883
module Providers module Partners class AddOtherStateBenefitsController < ProviderBaseController prefix_step_with :partner def show transactions form end def update return go_forward(form.add_another_partner_state_benefit?) if form.valid? transactions ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/use_ccms_employment_controller.rb
Ruby
mit
19
main
476
module Providers module Partners class UseCCMSEmploymentController < ProviderBaseController prefix_step_with :partner def index @legal_aid_application.use_ccms!(use_ccms_reason) end private def use_ccms_reason if @legal_aid_application.partner.armed_forces? ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/cash_incomes_controller.rb
Ruby
mit
19
main
1,494
module Providers module Partners class CashIncomesController < ProviderBaseController prefix_step_with :partner before_action :setup_variables, only: %i[show update] def show; end def update if aggregated_cash_income.update(form_params) update_no_cash_income(form_params...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/partners/unexpected_employment_incomes_controller.rb
Ruby
mit
19
main
945
module Providers module Partners class UnexpectedEmploymentIncomesController < ProviderBaseController before_action :employments_and_payments def show partner @form = ::Partners::UnexpectedEmploymentIncomeForm.new(model: legal_aid_application) end def update partn...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/substantive_scope_limitations_controller.rb
Ruby
mit
19
main
1,064
module Providers module ProceedingLoop class SubstantiveScopeLimitationsController < ProviderBaseController before_action :proceeding def show form end def update return continue_or_draft if draft_selected? return go_forward if form.save(form_params) rend...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/client_involvement_type_controller.rb
Ruby
mit
19
main
800
module Providers module ProceedingLoop class ClientInvolvementTypeController < ProviderBaseController before_action :proceeding def show @form = Proceedings::ClientInvolvementTypeForm.new(model: proceeding) end def update @form = Proceedings::ClientInvolvementTypeForm.new...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/confirm_delegated_functions_date_controller.rb
Ruby
mit
19
main
917
module Providers module ProceedingLoop class ConfirmDelegatedFunctionsDateController < ProviderBaseController before_action :proceeding, :form def show; end def update return continue_or_draft if draft_selected? return go_forward(form.confirm_delegated_functions_date?) if form.v...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/substantive_level_of_service_controller.rb
Ruby
mit
19
main
1,258
module Providers module ProceedingLoop class SubstantiveLevelOfServiceController < ProviderBaseController before_action :proceeding def show @form = Proceedings::SubstantiveLevelOfServiceForm.new(model: proceeding) end def update @form = Proceedings::SubstantiveLevelOfServ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/delegated_functions_controller.rb
Ruby
mit
19
main
1,214
module Providers module ProceedingLoop class DelegatedFunctionsController < ProviderBaseController before_action :proceeding def show @form = Proceedings::DelegatedFunctionsForm.new(model: proceeding) end def update @form = Proceedings::DelegatedFunctionsForm.new(form_par...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/substantive_defaults_controller.rb
Ruby
mit
19
main
908
module Providers module ProceedingLoop class SubstantiveDefaultsController < ProviderBaseController before_action :proceeding def show @form = Proceedings::SubstantiveDefaultsForm.new(model: proceeding) end def update @form = Proceedings::SubstantiveDefaultsForm.new(form_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/emergency_scope_limitations_controller.rb
Ruby
mit
19
main
1,057
module Providers module ProceedingLoop class EmergencyScopeLimitationsController < ProviderBaseController before_action :proceeding def show form end def update return continue_or_draft if draft_selected? return go_forward if form.save(form_params) render...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/emergency_level_of_service_controller.rb
Ruby
mit
19
main
1,242
module Providers module ProceedingLoop class EmergencyLevelOfServiceController < ProviderBaseController before_action :proceeding def show @form = Proceedings::EmergencyLevelOfServiceForm.new(model: proceeding) end def update @form = Proceedings::EmergencyLevelOfServiceFor...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/emergency_defaults_controller.rb
Ruby
mit
19
main
961
module Providers module ProceedingLoop class EmergencyDefaultsController < ProviderBaseController before_action :proceeding def show @form = Proceedings::EmergencyDefaultsForm.new(model: proceeding) end def update @form = Proceedings::EmergencyDefaultsForm.new(form_params...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_loop/final_hearings_controller.rb
Ruby
mit
19
main
1,102
module Providers module ProceedingLoop class FinalHearingsController < ProviderBaseController before_action :proceeding def show @form = Proceedings::FinalHearingForm.new(model: final_hearing) end def update @form = Proceedings::FinalHearingForm.new(form_params.merge(work...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/date_client_told_incidents_controller.rb
Ruby
mit
19
main
707
module Providers module ApplicationMeritsTask class DateClientToldIncidentsController < ProviderBaseController def show @form = Incidents::ToldOnForm.new(model: incident) end def update @form = Incidents::ToldOnForm.new(form_params) render :show unless update_task_save_c...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/client_is_child_subject_controller.rb
Ruby
mit
19
main
1,145
module Providers module ApplicationMeritsTask class ClientIsChildSubjectController < ProviderBaseController prefix_step_with :application_merits_task def show legal_aid_application.provider_recording_parental_responsibilities! @form = Providers::ApplicationMeritsTask::ChildSubjectForm....
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/has_other_opponents_controller.rb
Ruby
mit
19
main
2,043
module Providers module ApplicationMeritsTask class HasOtherOpponentsController < ProviderBaseController def show return redirect_to providers_legal_aid_application_opponent_type_path(legal_aid_application) unless opponents.any? @form = LegalAidApplications::HasOtherOpponentsForm.new(model:...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/has_other_involved_children_controller.rb
Ruby
mit
19
main
2,473
module Providers module ApplicationMeritsTask class HasOtherInvolvedChildrenController < ProviderBaseController def show form end def update update_task(:application, :children_application) return continue_or_draft if draft_selected? return go_forward(form.has_ot...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/matter_opposed_reasons_controller.rb
Ruby
mit
19
main
872
module Providers module ApplicationMeritsTask class MatterOpposedReasonsController < ProviderBaseController def show @form = MatterOpposedReasonForm.new(model: matter_opposition) end def update @form = MatterOpposedReasonForm.new(matter_opposition_params) unless update_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/in_scope_of_laspos_controller.rb
Ruby
mit
19
main
900
module Providers module ApplicationMeritsTask class InScopeOfLasposController < ProviderBaseController def show @form = InScopeOfLaspoForm.new(model: legal_aid_application) render :show end def update @form = InScopeOfLaspoForm.new(form_params) render :show unle...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/court_order_copies_controller.rb
Ruby
mit
19
main
1,258
module Providers module ApplicationMeritsTask class CourtOrderCopiesController < ProviderBaseController include DeleteAttachments def show @form = ApplicationMeritsTask::PLFCourtOrderForm.new(model: legal_aid_application) @display_banner = plf_court_order_attached? end de...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/client_denial_of_allegations_controller.rb
Ruby
mit
19
main
785
module Providers module ApplicationMeritsTask class ClientDenialOfAllegationsController < ProviderBaseController def show @form = ApplicationMeritsTask::ClientDenialOfAllegationForm.new(model: allegation) end def update @form = ApplicationMeritsTask::ClientDenialOfAllegationForm...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/opponents_mental_capacities_controller.rb
Ruby
mit
19
main
910
module Providers module ApplicationMeritsTask class OpponentsMentalCapacitiesController < ProviderBaseController def show @form = Opponents::MentalCapacityForm.new(model: parties_mental_capacity) end def update @form = Opponents::MentalCapacityForm.new(form_params) rende...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/statement_of_case_uploads_controller.rb
Ruby
mit
19
main
3,438
module Providers module ApplicationMeritsTask class StatementOfCaseUploadsController < ProviderBaseController def show @form = StatementOfCaseUploadForm.new(model: statement_of_case) end def update if upload_button_pressed? perform_upload elsif save_continue_or...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/when_contact_was_made_controller.rb
Ruby
mit
19
main
782
module Providers module ApplicationMeritsTask class WhenContactWasMadeController < ProviderBaseController def show @form = Incidents::WhenContactWasMadeForm.new(model: incident) end def update @form = Incidents::WhenContactWasMadeForm.new(form_params) render :show unless...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/statement_of_cases_controller.rb
Ruby
mit
19
main
1,114
module Providers module ApplicationMeritsTask class StatementOfCasesController < ProviderBaseController include DeleteAttachments def show @form = ApplicationMeritsTask::StatementOfCaseChoiceForm.new(model: statement_of_case) end def update @form = StatementOfCaseChoiceFo...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/second_appeal_court_types_controller.rb
Ruby
mit
19
main
214
module Providers module ApplicationMeritsTask class SecondAppealCourtTypesController < BaseAppealCourtTypesController private def form SecondAppealCourtTypeForm end end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/first_appeal_court_types_controller.rb
Ruby
mit
19
main
212
module Providers module ApplicationMeritsTask class FirstAppealCourtTypesController < BaseAppealCourtTypesController private def form FirstAppealCourtTypeForm end end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/opponent_types_controller.rb
Ruby
mit
19
main
670
module Providers module ApplicationMeritsTask class OpponentTypesController < ProviderBaseController def show form end def update return continue_or_draft if draft_selected? return go_forward(form.is_individual?) if form.valid? render :show end privat...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/opponent_existing_organisations_controller.rb
Ruby
mit
19
main
1,425
module Providers module ApplicationMeritsTask class OpponentExistingOrganisationsController < ProviderBaseController def index organisations end def create return continue_or_draft if draft_selected? if duplicate_organisation? legal_aid_application.errors.add(...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/client_offered_undertakings_controller.rb
Ruby
mit
19
main
825
module Providers module ApplicationMeritsTask class ClientOfferedUndertakingsController < ProviderBaseController def show @form = ApplicationMeritsTask::ClientOfferedUndertakingsForm.new(model: undertaking) end def update @form = ApplicationMeritsTask::ClientOfferedUndertakingsF...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/client_is_biological_parent_controller.rb
Ruby
mit
19
main
1,163
module Providers module ApplicationMeritsTask class ClientIsBiologicalParentController < ProviderBaseController prefix_step_with :application_merits_task def show legal_aid_application.provider_recording_parental_responsibilities! @form = Providers::ApplicationMeritsTask::BiologicalPar...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/is_matter_opposed_controller.rb
Ruby
mit
19
main
762
module Providers module ApplicationMeritsTask class IsMatterOpposedController < ProviderBaseController def show @form = ApplicationMeritsTask::MatterOpposedForm.new(model: matter_opposition) end def update @form = ApplicationMeritsTask::MatterOpposedForm.new(form_params) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/opponent_new_organisations_controller.rb
Ruby
mit
19
main
1,162
module Providers module ApplicationMeritsTask class OpponentNewOrganisationsController < ProviderBaseController def show @form = Opponents::OrganisationForm.new(model: opponent, name: opponent.name, organisation_type_ccms_code: opponent.ccms_type_code) end def new @form = Oppone...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/opponent_individuals_controller.rb
Ruby
mit
19
main
1,126
module Providers module ApplicationMeritsTask class OpponentIndividualsController < ProviderBaseController def show @form = Opponents::IndividualForm.new(model: opponent, first_name: opponent.first_name, last_name: opponent.last_name) end def new @form = Opponents::IndividualFor...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/nature_of_urgencies_controller.rb
Ruby
mit
19
main
745
module Providers module ApplicationMeritsTask class NatureOfUrgenciesController < ProviderBaseController def show @form = ApplicationMeritsTask::NatureOfUrgencyForm.new(model: urgency) end def update @form = ApplicationMeritsTask::NatureOfUrgencyForm.new(form_params) ren...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/base_appeal_court_types_controller.rb
Ruby
mit
19
main
751
module Providers module ApplicationMeritsTask class BaseAppealCourtTypesController < ProviderBaseController def show @form = form.new(model: appeal) end def update @form = form.new(form_params) render :show unless update_task_save_continue_or_draft(:application, :second...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/client_has_parental_responsibilities_controller.rb
Ruby
mit
19
main
1,177
module Providers module ApplicationMeritsTask class ClientHasParentalResponsibilitiesController < ProviderBaseController prefix_step_with :application_merits_task def show legal_aid_application.provider_recording_parental_responsibilities! @form = Providers::ApplicationMeritsTask::Pare...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/original_judge_levels_controller.rb
Ruby
mit
19
main
700
module Providers module ApplicationMeritsTask class OriginalJudgeLevelsController < ProviderBaseController def show @form = OriginalJudgeLevelForm.new(model: appeal) end def update @form = OriginalJudgeLevelForm.new(form_params) render :show unless update_task_save_cont...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/involved_children_controller.rb
Ruby
mit
19
main
1,154
module Providers module ApplicationMeritsTask class InvolvedChildrenController < ProviderBaseController def show @form = InvolvedChildForm.new(model: involved_child) end def new @form = InvolvedChildForm.new(model: involved_child) end def update @form = Invo...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/client_check_parental_answers_controller.rb
Ruby
mit
19
main
543
module Providers module ApplicationMeritsTask class ClientCheckParentalAnswersController < ProviderBaseController prefix_step_with :application_merits_task def show legal_aid_application.rejected_all_parental_responsibilities! @relationship_to_children = applicant.relationship_to_child...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/second_appeals_controller.rb
Ruby
mit
19
main
645
module Providers module ApplicationMeritsTask class SecondAppealsController < ProviderBaseController def show @form = SecondAppealForm.new(model: appeal) end def update @form = SecondAppealForm.new(form_params) render :show unless update_task_save_continue_or_draft(:app...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/application_merits_task/domestic_abuse_summaries_controller.rb
Ruby
mit
19
main
1,409
module Providers module ApplicationMeritsTask class DomesticAbuseSummariesController < ProviderBaseController def show @form = ApplicationMeritsTask::DomesticAbuseSummaryForm.new(model: domestic_abuse_summary) end def update @form = ApplicationMeritsTask::DomesticAbuseSummaryFor...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/child_care_assessment_results_controller.rb
Ruby
mit
19
main
1,163
module Providers module ProceedingMeritsTask class ChildCareAssessmentResultsController < ProviderBaseController def show @form = ChildCareAssessmentResultForm.new(model: child_care_assessment) end def update @form = ChildCareAssessmentResultForm.new(form_params.merge(proceeding...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/linked_children_controller.rb
Ruby
mit
19
main
944
module Providers module ProceedingMeritsTask class LinkedChildrenController < ProviderBaseController def show @form = Providers::ProceedingMeritsTask::LinkedChildrenForm.new(model: proceeding) end def update @form = Providers::ProceedingMeritsTask::LinkedChildrenForm.new(form_pa...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/chances_of_success_controller.rb
Ruby
mit
19
main
1,061
module Providers module ProceedingMeritsTask class ChancesOfSuccessController < ProviderBaseController def show @form = ChancesOfSuccessForm.new(model: chances_of_success) end def update @form = ChancesOfSuccessForm.new(form_params.merge(proceeding_id: proceeding.id)) re...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/attempts_to_settle_controller.rb
Ruby
mit
19
main
1,132
module Providers module ProceedingMeritsTask class AttemptsToSettleController < ProviderBaseController def show @form = Providers::ProceedingMeritsTask::AttemptsToSettleForm.new(model: attempts_to_settle) end def update @form = Providers::ProceedingMeritsTask::AttemptsToSettleFo...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/child_care_assessments_controller.rb
Ruby
mit
19
main
1,647
module Providers module ProceedingMeritsTask class ChildCareAssessmentsController < ProviderBaseController include DeleteAttachments def show @form = ChildCareAssessmentForm.new(model: child_care_assessment) @display_banner = local_authority_assessment_attached? end def u...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/specific_issue_controller.rb
Ruby
mit
19
main
949
module Providers module ProceedingMeritsTask class SpecificIssueController < ProviderBaseController def show @form = SpecificIssueForm.new(model: specific_issue) end def update @form = SpecificIssueForm.new(form_params.merge(proceeding_id: proceeding.id)) render :show un...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/prohibited_steps_controller.rb
Ruby
mit
19
main
1,083
module Providers module ProceedingMeritsTask class ProhibitedStepsController < ProviderBaseController def show @form = ProhibitedStepsForm.new(model: prohibited_steps) end def update @form = ProhibitedStepsForm.new(form_params.merge(proceeding_id: proceeding.id)) render ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/opponents_application_controller.rb
Ruby
mit
19
main
1,065
module Providers module ProceedingMeritsTask class OpponentsApplicationController < ProviderBaseController def show @form = OpponentsApplicationForm.new(model: opponents_application) end def update @form = OpponentsApplicationForm.new(form_params.merge(proceeding_id: proceeding....
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_merits_task/vary_order_controller.rb
Ruby
mit
19
main
905
module Providers module ProceedingMeritsTask class VaryOrderController < ProviderBaseController def show @form = VaryOrderForm.new(model: vary_order) end def update @form = VaryOrderForm.new(form_params.merge(proceeding_id: proceeding.id)) render :show unless update_task...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/link_application/confirm_links_controller.rb
Ruby
mit
19
main
1,693
module Providers module LinkApplication class ConfirmLinksController < ProviderBaseController prefix_step_with :link_application reviewed_by :legal_aid_application, :check_provider_answers def show @form = Providers::LinkApplication::ConfirmLinkForm.new(model: linked_application) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/link_application/make_links_controller.rb
Ruby
mit
19
main
941
module Providers module LinkApplication class MakeLinksController < ProviderBaseController prefix_step_with :link_application reviewed_by :legal_aid_application, :check_provider_answers def show @form = Providers::LinkApplication::MakeLinkForm.new(model: linked_application) lega...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/link_application/find_link_applications_controller.rb
Ruby
mit
19
main
2,275
module Providers module LinkApplication class FindLinkApplicationsController < ProviderBaseController prefix_step_with :link_application reviewed_by :legal_aid_application, :check_provider_answers def show @form = Providers::LinkApplication::FindLinkApplicationForm.new(model: linked_app...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/link_application/copies_controller.rb
Ruby
mit
19
main
1,648
module Providers module LinkApplication class CopiesController < ProviderBaseController prefix_step_with :link_application reviewed_by :legal_aid_application, :check_provider_answers before_action :lead_application_reference def show @form = Providers::LinkApplication::CopyForm.n...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceedings_sca/interrupts_controller.rb
Ruby
mit
19
main
871
module Providers module ProceedingsSCA class InterruptsController < ProviderBaseController prefix_step_with :proceedings_sca def show type end def destroy legal_aid_application.proceedings.order(:created_at).last.destroy! replace_last_page_in_history(home_path) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceedings_sca/confirm_delete_core_proceedings_controller.rb
Ruby
mit
19
main
1,186
module Providers module ProceedingsSCA class ConfirmDeleteCoreProceedingsController < ProviderBaseController prefix_step_with :proceedings_sca def show proceeding end def destroy remove_proceedings replace_last_page_in_history(home_path) return redirect_t...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceedings_sca/heard_as_alternatives_controller.rb
Ruby
mit
19
main
1,713
module Providers module ProceedingsSCA class HeardAsAlternativesController < ProviderBaseController prefix_step_with :proceedings_sca before_action :current_proceeding def show @core_proceedings = legal_aid_application.proceedings.where(sca_type: "core") amount form ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceedings_sca/heard_togethers_controller.rb
Ruby
mit
19
main
1,577
module Providers module ProceedingsSCA class HeardTogethersController < ProviderBaseController prefix_step_with :proceedings_sca before_action :current_proceeding def show @core_proceedings = legal_aid_application.proceedings.where(sca_type: "core") amount form end...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceedings_sca/supervision_orders_controller.rb
Ruby
mit
19
main
1,052
module Providers module ProceedingsSCA class SupervisionOrdersController < ProviderBaseController prefix_step_with :proceedings_sca def show form end def update return continue_or_draft if draft_selected? if form.valid? return redirect_to providers_lega...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceedings_sca/child_subjects_controller.rb
Ruby
mit
19
main
1,145
module Providers module ProceedingsSCA class ChildSubjectsController < ProviderBaseController prefix_step_with :proceedings_sca def show @proceeding = legal_aid_application.proceedings.order(:created_at).last form end def update return continue_or_draft if draft_s...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceedings_sca/proceeding_issue_statuses_controller.rb
Ruby
mit
19
main
1,257
module Providers module ProceedingsSCA class ProceedingIssueStatusesController < ProviderBaseController prefix_step_with :proceedings_sca def show @proceeding = legal_aid_application.proceedings.order(:created_at).last form end def update return continue_or_draft ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/proceeding_interrupts/related_orders_controller.rb
Ruby
mit
19
main
1,048
module Providers module ProceedingInterrupts class RelatedOrdersController < ProviderBaseController before_action :proceeding def show @form = RelatedOrdersForm.new(model: proceeding) end def update @form = RelatedOrdersForm.new(form_params) return redirect_to prov...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/check_income_answers_controller.rb
Ruby
mit
19
main
489
module Providers module Means class CheckIncomeAnswersController < ProviderBaseController include TransactionTypeSettable helper_method :display_employment_income? def show legal_aid_application.check_means_income! unless legal_aid_application.checking_means_income? legal_aid_a...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/receives_state_benefits_controller.rb
Ruby
mit
19
main
795
module Providers module Means class ReceivesStateBenefitsController < ProviderBaseController def show @form = ReceivesStateBenefitsForm.new(model: applicant) end def update @form = ReceivesStateBenefitsForm.new(form_params) remove_state_benefits unless @form.receives_sta...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/identify_types_of_incomes_controller.rb
Ruby
mit
19
main
3,013
module Providers module Means class IdentifyTypesOfIncomesController < ProviderBaseController def show @none_selected = legal_aid_application.no_credit_transaction_types_selected? end def update synchronize_credit_transaction_types validate if legal_aid_applicat...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/student_finances_controller.rb
Ruby
mit
19
main
606
module Providers module Means class StudentFinancesController < ProviderBaseController def show @form = ::Applicants::StudentFinanceForm.new(model: applicant) end def update @form = ::Applicants::StudentFinanceForm.new(form_params) render :show unless save_continue_or_dr...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/employment_incomes_controller.rb
Ruby
mit
19
main
1,022
module Providers module Means class EmploymentIncomesController < ProviderBaseController before_action :employments_and_payments def show @applicant = applicant @form = Applicants::EmploymentIncomeForm.new(model: applicant) end def update @applicant = applicant ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/add_other_state_benefits_controller.rb
Ruby
mit
19
main
825
module Providers module Means class AddOtherStateBenefitsController < ProviderBaseController def show transactions form end def update return go_forward(form.add_another_state_benefit?) if form.valid? transactions render :show, status: :unprocessable_con...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/other_assets_controller.rb
Ruby
mit
19
main
801
module Providers module Means class OtherAssetsController < ProviderBaseController def show @form = Providers::OtherAssetsForm.new(model: declaration) end def update @form = Providers::OtherAssetsForm.new(form_params) render :show unless save_continue_or_draft(@form) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/restrictions_controller.rb
Ruby
mit
19
main
638
module Providers module Means class RestrictionsController < ProviderBaseController def show @form = LegalAidApplications::RestrictionsForm.new(model: legal_aid_application) end def update @form = LegalAidApplications::RestrictionsForm.new(form_params) render :show unles...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/vehicle_details_controller.rb
Ruby
mit
19
main
1,103
module Providers module Means class VehicleDetailsController < ProviderBaseController def show @form = ::Vehicles::DetailsForm.new(model: vehicle) end def new @form = ::Vehicles::DetailsForm.new(model: vehicle) end def update @form = ::Vehicles::DetailsForm....
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/vehicles_controller.rb
Ruby
mit
19
main
602
module Providers module Means class VehiclesController < ProviderBaseController def show @form = LegalAidApplications::OwnVehicleForm.new(model: legal_aid_application) end def update @form = LegalAidApplications::OwnVehicleForm.new(form_params) render :show unless save_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/own_homes_controller.rb
Ruby
mit
19
main
869
module Providers module Means class OwnHomesController < ProviderBaseController def show @form = LegalAidApplications::OwnHomeForm.new(model: legal_aid_application) end def update @form = LegalAidApplications::OwnHomeForm.new(form_params) render :show unless save_continu...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/regular_outgoings_controller.rb
Ruby
mit
19
main
857
module Providers module Means class RegularOutgoingsController < ProviderBaseController def show @form = RegularOutgoingsForm.new(legal_aid_application:) end def update @form = RegularOutgoingsForm.new(regular_outgoings_params) if @form.save go_forward ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/property_details_controller.rb
Ruby
mit
19
main
833
module Providers module Means class PropertyDetailsController < ProviderBaseController def show @form = LegalAidApplications::PropertyDetailsForm.new(model: legal_aid_application) end def update @form = LegalAidApplications::PropertyDetailsForm.new(form_params) render :s...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/housing_benefits_controller.rb
Ruby
mit
19
main
1,121
module Providers module Means class HousingBenefitsController < ProviderBaseController def show @individual = individual @form = HousingBenefitForm.new(legal_aid_application:) end def update @individual = individual @form = HousingBenefitForm.new(housing_benefit_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/savings_and_investments_controller.rb
Ruby
mit
19
main
967
module Providers module Means class SavingsAndInvestmentsController < ProviderBaseController helper_method :attributes def show @form = SavingsAmounts::SavingsAmountsForm.new(model: savings_amount) end def update @form = SavingsAmounts::SavingsAmountsForm.new(form_params)...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/add_other_vehicles_controller.rb
Ruby
mit
19
main
1,047
module Providers module Means class AddOtherVehiclesController < ProviderBaseController def show vehicles form end def update return go_forward(form.add_another_vehicle?) if form.valid? vehicles render :show, status: :unprocessable_content end ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/controllers/providers/means/unexpected_employment_incomes_controller.rb
Ruby
mit
19
main
988
module Providers module Means class UnexpectedEmploymentIncomesController < ProviderBaseController before_action :employments_and_payments def show @applicant = applicant @form = Applicants::UnexpectedEmploymentIncomeForm.new(model: legal_aid_application) end def update ...