project form fixed
This commit is contained in:
parent
1c543bdfa8
commit
49bced3a24
|
@ -710,3 +710,14 @@ body.project-page #notes-list .note span.note-title{display: block;}
|
||||||
body.project-page #notes-list .note span.note-title{margin-bottom: 10px}
|
body.project-page #notes-list .note span.note-title{margin-bottom: 10px}
|
||||||
body.project-page #notes-list .note span.note-author{color: #999; font-weight: normal; font-style: italic;}
|
body.project-page #notes-list .note span.note-author{color: #999; font-weight: normal; font-style: italic;}
|
||||||
body.project-page #notes-list .note span.note-author strong{font-weight: bold; font-style: normal;}
|
body.project-page #notes-list .note span.note-author strong{font-weight: bold; font-style: normal;}
|
||||||
|
|
||||||
|
|
||||||
|
/** NEW PROJECT **/
|
||||||
|
.new-project-hodler {
|
||||||
|
.icon span {
|
||||||
|
background-position: -31px -70px;
|
||||||
|
}
|
||||||
|
td {
|
||||||
|
border-bottom: 1px solid #DEE2E3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
= form_for(@project, :remote => true) do |f|
|
= form_for(@project, :remote => true) do |f|
|
||||||
%div.form_content
|
%div.form_content
|
||||||
- unless @project.new_record?
|
- unless @project.new_record?
|
||||||
%h1 Edit Project
|
%h2.icon
|
||||||
|
%span
|
||||||
|
= @project.name
|
||||||
- if @project.errors.any?
|
- if @project.errors.any?
|
||||||
#error_explanation
|
#error_explanation
|
||||||
%h2
|
%h2
|
||||||
|
@ -10,7 +12,7 @@
|
||||||
%ul
|
%ul
|
||||||
- @project.errors.full_messages.each do |msg|
|
- @project.errors.full_messages.each do |msg|
|
||||||
%li= msg
|
%li= msg
|
||||||
%table.round-borders
|
%table
|
||||||
%tr
|
%tr
|
||||||
%td= f.label :name
|
%td= f.label :name
|
||||||
%td= f.text_field :name, :placeholder => "Example Project"
|
%td= f.text_field :name, :placeholder => "Example Project"
|
||||||
|
@ -29,15 +31,13 @@
|
||||||
%tr
|
%tr
|
||||||
%td= f.label :tag_list
|
%td= f.label :tag_list
|
||||||
%td= f.text_area :tag_list, :placeholder => "project tags", :style => "height:50px", :id => :tag_field
|
%td= f.text_area :tag_list, :placeholder => "project tags", :style => "height:50px", :id => :tag_field
|
||||||
|
%tr
|
||||||
|
%td= f.label :description
|
||||||
|
%td= f.text_area :description, :placeholder => "project description", :style => "height:50px"
|
||||||
|
|
||||||
.field
|
%br
|
||||||
= f.label :description
|
|
||||||
%br/
|
|
||||||
= f.text_area :description, :style => "height:140px;width:932px;"
|
|
||||||
.clear
|
|
||||||
%hr.prepend-top
|
|
||||||
.actions
|
.actions
|
||||||
= f.submit :class => "lbutton vm"
|
= f.submit :class => "button"
|
||||||
|
|
||||||
%div{ :class => "ajax_loader", :style => "display:none;height:200px;"}
|
%div{ :class => "ajax_loader", :style => "display:none;height:200px;"}
|
||||||
%center
|
%center
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
<%= render 'form' %>
|
|
8
app/views/projects/new.html.haml
Normal file
8
app/views/projects/new.html.haml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
.new-project-hodler
|
||||||
|
.container_4
|
||||||
|
%h2.icon
|
||||||
|
%span
|
||||||
|
New Project
|
||||||
|
|
||||||
|
%div.clear
|
||||||
|
= render 'form'
|
Loading…
Reference in a new issue