GUI overhaul
This commit is contained in:
parent
e9743cd00c
commit
0198a22278
14 changed files with 209 additions and 65 deletions
|
|
@ -49,7 +49,12 @@ class SuccessCriteriaController < ApplicationController
|
|||
# PATCH/PUT /success_criteria/1
|
||||
def update
|
||||
if @success_criterion.update(success_criterion_params)
|
||||
redirect_to @success_criterion, notice: "Erfolgskriterium was successfully updated.", status: :see_other
|
||||
respond_to do |format|
|
||||
format.turbo_stream
|
||||
format.html do
|
||||
redirect_to @success_criterion, notice: "Erfolgskriterium was successfully updated.", status: :see_other
|
||||
end
|
||||
end
|
||||
else
|
||||
render :edit, status: :unprocessable_entity
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue