Commit 5c1a360f4172273e4fe568e9cbafda9a95858623
1 parent
9c7d821c
Exists in
spb-stable
and in
3 other branches
Imrpove new file form
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
7 additions
and
18 deletions
Show diff stats
app/assets/stylesheets/sections/editor.scss
app/views/projects/new_tree/show.html.haml
@@ -6,13 +6,13 @@ | @@ -6,13 +6,13 @@ | ||
6 | = label_tag 'file_name', class: "control-label" do | 6 | = label_tag 'file_name', class: "control-label" do |
7 | File name | 7 | File name |
8 | .col-sm-10 | 8 | .col-sm-10 |
9 | - %span.monospace= @path[-1] == "/" ? @path : @path + "/" | ||
10 | - | ||
11 | - = text_field_tag 'file_name', params[:file_name], placeholder: "sample.rb", required: true, class: 'form-control' | ||
12 | - %span | ||
13 | - | ||
14 | - on | ||
15 | - %span.label-branch= @ref | 9 | + .input-group |
10 | + %span.input-group-addon | ||
11 | + = @path[-1] == "/" ? @path : @path + "/" | ||
12 | + = text_field_tag 'file_name', params[:file_name], placeholder: "sample.rb", required: true, class: 'form-control' | ||
13 | + %span.input-group-addon | ||
14 | + on | ||
15 | + %span= @ref | ||
16 | 16 | ||
17 | .form-group.commit_message-group | 17 | .form-group.commit_message-group |
18 | = label_tag 'commit_message', class: "control-label" do | 18 | = label_tag 'commit_message', class: "control-label" do |