Sort project services by title. Add textarea support to it

Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册