Commit 5ac57305 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Sort project services by title. Add textarea support to it

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b90cbfd2
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
.controls .controls
- if type == 'text' - if type == 'text'
= f.text_field name, class: "input-xlarge", placeholder: placeholder = f.text_field name, class: "input-xlarge", placeholder: placeholder
- elsif type == 'textarea'
= f.textarea name, rows: 5
- elsif type == 'checkbox' - elsif type == 'checkbox'
= f.check_box name = f.check_box name
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
%hr %hr
%ul.bordered-list %ul.bordered-list
- @services.each do |service| - @services.sort_by(&:title).each do |service|
%li %li
%h4 %h4
= link_to edit_project_service_path(@project, service.to_param) do = link_to edit_project_service_path(@project, service.to_param) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment