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
|
.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 @@
|
||||||
%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
|
||||||
|
|
Loading…
Reference in a new issue