mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 14:15:35 +08:00
Merge pull request #81 from mlorb/ml_sci_364
fixes edit experiment [SCI-364]
This commit is contained in:
commit
5c8d669cac
2 changed files with 3 additions and 4 deletions
|
@ -68,8 +68,7 @@ class ExperimentsController < ApplicationController
|
||||||
if @experiment.save
|
if @experiment.save
|
||||||
flash[:success] = t('experiments.update.success_flash',
|
flash[:success] = t('experiments.update.success_flash',
|
||||||
experiment: @experiment.name)
|
experiment: @experiment.name)
|
||||||
|
redirect_to canvas_experiment_path(@experiment)
|
||||||
redirect_to project_path(@experiment.project)
|
|
||||||
else
|
else
|
||||||
flash[:alert] = t('experiments.update.error_flash')
|
flash[:alert] = t('experiments.update.error_flash')
|
||||||
redirect_to :back
|
redirect_to :back
|
||||||
|
|
|
@ -602,8 +602,8 @@ en:
|
||||||
name_placeholder: 'My experiment'
|
name_placeholder: 'My experiment'
|
||||||
description: 'Description'
|
description: 'Description'
|
||||||
edit:
|
edit:
|
||||||
modal_title: 'Edit experiment %{experiment}'
|
modal_title: 'Edit experiment details'
|
||||||
modal_create: 'Update experiment'
|
modal_create: 'Save'
|
||||||
label_title: "Edit details"
|
label_title: "Edit details"
|
||||||
panel_label: 'Change details'
|
panel_label: 'Change details'
|
||||||
add-description: 'Add description'
|
add-description: 'Add description'
|
||||||
|
|
Loading…
Add table
Reference in a new issue