A lot :)
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s

This commit is contained in:
david 2024-09-05 22:54:38 +02:00
parent aad67af0d1
commit 63fc206c27
153 changed files with 2043 additions and 646 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ChecklistEntriesController < ApplicationController
before_action :set_checklist_entry, only: %i[show edit update destroy]
@ -7,8 +9,7 @@ class ChecklistEntriesController < ApplicationController
end
# GET /checklist_entries/1
def show
end
def show; end
# GET /checklist_entries/new
def new
@ -16,15 +17,14 @@ class ChecklistEntriesController < ApplicationController
end
# GET /checklist_entries/1/edit
def edit
end
def edit; end
# POST /checklist_entries
def create
@checklist_entry = ChecklistEntry.new(checklist_entry_params)
if @checklist_entry.save
redirect_to @checklist_entry.checklist, notice: 'Checklist entry was successfully created.'
redirect_to @checklist_entry.checklist, notice: "Checklist entry was successfully created."
else
render :new, status: :unprocessable_entity
end
@ -33,7 +33,7 @@ class ChecklistEntriesController < ApplicationController
# PATCH/PUT /checklist_entries/1
def update
if @checklist_entry.update(checklist_entry_params)
redirect_to @checklist_entry.checklist, notice: 'Checklist entry was successfully updated.',
redirect_to @checklist_entry.checklist, notice: "Checklist entry was successfully updated.",
status: :see_other
else
render :edit, status: :unprocessable_entity
@ -45,7 +45,7 @@ class ChecklistEntriesController < ApplicationController
@checklist_entry.destroy!
respond_to do |format|
format.html do
redirect_to checklist_entries_url, notice: 'Checklist entry was successfully destroyed.', status: :see_other
redirect_to checklist_entries_url, notice: "Checklist entry was successfully destroyed.", status: :see_other
end
format.turbo_stream
end