Sort project services by title. Add textarea support to it
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
b90cbfd21e
commit
5ac5730547
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue