Commit bda409c4c8e938c4cee254b04dd954978f770d8c
1 parent
dc3e1d63
Exists in
master
and in
4 other branches
Add placeholders from and to
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/views/projects/compare/_form.html.haml
... | ... | @@ -15,9 +15,9 @@ |
15 | 15 | .pull-left |
16 | 16 | - if params[:to] && params[:from] |
17 | 17 | = link_to 'switch', {from: params[:to], to: params[:from]}, {class: 'commits-compare-switch has_tooltip', title: 'Switch base of comparison'} |
18 | - = text_field_tag :from, params[:from], class: "input-xlarge input-xpadding" | |
18 | + = text_field_tag :from, params[:from], placeholder: "from", class: "input-xlarge input-xpadding" | |
19 | 19 | = "..." |
20 | - = text_field_tag :to, params[:to], class: "input-xlarge input-xpadding" | |
20 | + = text_field_tag :to, params[:to], placeholder: "to", class: "input-xlarge input-xpadding" | |
21 | 21 | .pull-left |
22 | 22 | |
23 | 23 | = submit_tag "Compare", class: "btn btn-create commits-compare-btn" |
... | ... | @@ -35,4 +35,4 @@ |
35 | 35 | minLength: 1 |
36 | 36 | }); |
37 | 37 | |
38 | 38 | - disableButtonIfEmptyField('#to', '.commits-compare-btn'); |
39 | + disableButtonIfEmptyField('#to', '.commits-compare-btn'); | |
39 | 40 | \ No newline at end of file | ... | ... |