Commit cbebccaaa54695cbc005a65c55e026288b03e110
Committed by
Daniela Feitosa
1 parent
16280dec
Exists in
master
and in
28 other branches
Allow admin to change environment name
Showing
2 changed files
with
14 additions
and
0 deletions
Show diff stats
app/views/admin_panel/site_info.rhtml
... | ... | @@ -6,6 +6,8 @@ |
6 | 6 | |
7 | 7 | <% labelled_form_for :environment, @environment do |f| %> |
8 | 8 | |
9 | + <%= labelled_form_field(_('Site name'), f.text_field(:name)) %> | |
10 | + | |
9 | 11 | <%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%') %> |
10 | 12 | |
11 | 13 | <% button_bar do %> | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +Feature: setting environment name | |
2 | + As an environment administrator | |
3 | + I want to change the name of the environment | |
4 | + So that it appears in the window's title bar | |
5 | + | |
6 | + Scenario: setting environment name through administration panel | |
7 | + Given I am logged in as admin | |
8 | + When I follow "Administration" | |
9 | + And I follow "Edit site info" | |
10 | + And I fill in "Name" with "My environment" | |
11 | + And I press "Save" | |
12 | + Then I should see "My environment" within "title" | ... | ... |