Sort project services by title. Add textarea support to it

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-12-17 12:42:13 +02:00
parent b90cbfd21e
commit 5ac5730547
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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