Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 16:33:14 +0300
committerDouwe Maan <douwe@gitlab.com>2015-12-02 16:41:54 +0300
commitffabf1df50744564ac99f358f13ab4b1c5d54284 (patch)
tree58ed715ba534d4271ddf8df5132fdc9ad6efc0ca /app/views/projects/labels
parentca016903054fe53be08b8afeb53c019f44247cf9 (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.haml6
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 @@
&nbsp;
.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'
-