diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-02 16:33:14 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-02 16:41:54 +0300 |
commit | ffabf1df50744564ac99f358f13ab4b1c5d54284 (patch) | |
tree | 58ed715ba534d4271ddf8df5132fdc9ad6efc0ca /app/views/projects/labels | |
parent | ca016903054fe53be08b8afeb53c019f44247cf9 (diff) |
Add cancel button to forms that didn't have one already
Diffstat (limited to 'app/views/projects/labels')
-rw-r--r-- | app/views/projects/labels/_form.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/labels/_form.html.haml b/app/views/projects/labels/_form.html.haml index 291703bd60c..2d4311412fd 100644 --- a/app/views/projects/labels/_form.html.haml +++ b/app/views/projects/labels/_form.html.haml @@ -28,6 +28,8 @@ .form-actions - = f.submit 'Save', class: 'btn btn-save js-save-button' + - if @label.persisted? + = f.submit 'Save changes', class: 'btn btn-save js-save-button' + - else + = f.submit 'Create Label', class: 'btn btn-create js-save-button' = link_to "Cancel", namespace_project_labels_path(@project.namespace, @project), class: 'btn btn-cancel' - |