Commit 49bced3a24ec81d782296def8a3e864e781ef9dd

Authored by gitlabhq
1 parent 1c543bdf

project form fixed

app/assets/stylesheets/projects.css.scss
... ... @@ -710,3 +710,14 @@ body.project-page #notes-list .note span.note-title{display: block;}
710 710 body.project-page #notes-list .note span.note-title{margin-bottom: 10px}
711 711 body.project-page #notes-list .note span.note-author{color: #999; font-weight: normal; font-style: italic;}
712 712 body.project-page #notes-list .note span.note-author strong{font-weight: bold; font-style: normal;}
  713 +
  714 +
  715 +/** NEW PROJECT **/
  716 +.new-project-hodler {
  717 + .icon span {
  718 + background-position: -31px -70px;
  719 + }
  720 + td {
  721 + border-bottom: 1px solid #DEE2E3;
  722 + }
  723 +}
... ...
app/views/projects/_form.html.haml
1 1 = form_for(@project, :remote => true) do |f|
2 2 %div.form_content
3 3 - unless @project.new_record?
4   - %h1 Edit Project
  4 + %h2.icon
  5 + %span
  6 + = @project.name
5 7 - if @project.errors.any?
6 8 #error_explanation
7 9 %h2
... ... @@ -10,7 +12,7 @@
10 12 %ul
11 13 - @project.errors.full_messages.each do |msg|
12 14 %li= msg
13   - %table.round-borders
  15 + %table
14 16 %tr
15 17 %td= f.label :name
16 18 %td= f.text_field :name, :placeholder => "Example Project"
... ... @@ -29,15 +31,13 @@
29 31 %tr
30 32 %td= f.label :tag_list
31 33 %td= f.text_area :tag_list, :placeholder => "project tags", :style => "height:50px", :id => :tag_field
  34 + %tr
  35 + %td= f.label :description
  36 + %td= f.text_area :description, :placeholder => "project description", :style => "height:50px"
32 37  
33   - .field
34   - = f.label :description
35   - %br/
36   - = f.text_area :description, :style => "height:140px;width:932px;"
37   - .clear
38   - %hr.prepend-top
  38 + %br
39 39 .actions
40   - = f.submit :class => "lbutton vm"
  40 + = f.submit :class => "button"
41 41  
42 42 %div{ :class => "ajax_loader", :style => "display:none;height:200px;"}
43 43 %center
... ...
app/views/projects/new.html.erb
... ... @@ -1 +0,0 @@
1   -<%= render 'form' %>
app/views/projects/new.html.haml 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +.new-project-hodler
  2 + .container_4
  3 + %h2.icon
  4 + %span
  5 + New Project
  6 +
  7 + %div.clear
  8 + = render 'form'
... ...