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 @@
.controls
- if type == 'text'
= f.text_field name, class: "input-xlarge", placeholder: placeholder
- elsif type == 'textarea'
= f.textarea name, rows: 5
- elsif type == 'checkbox'
= f.check_box name
......
......@@ -3,7 +3,7 @@
%hr
%ul.bordered-list
- @services.each do |service|
- @services.sort_by(&:title).each do |service|
%li
%h4
= 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