Skip to content

Commit 1ea0538

Browse files
committed
fix
1 parent 30ebc1a commit 1ea0538

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
[WIP] - RailsAdmin Rollincode Sortable Section
22
--------------------
33

4-
Screenshot soon !
4+
![screenshort]
5+
(http://i.imgur.com/ndh99X3.jpg)
56

67
This section provides the behavior of sortable model in rails_admin.
78
Jquery UI sortable is used.
89

10+
All call are done in AJAX
11+
912
**You have to load sortable gem before rails_admin one.**
1013

1114
In gemfile
@@ -49,12 +52,12 @@ end
4952

5053
`label_method` is used for showing the model name (eg: title, etc)
5154

52-
`position_method` is used for the model position method
55+
`position_method` is used for the model position method and is **mandatory**
5356

5457
#### TODO ####
5558

56-
- [ ] Logic
57-
- [ ] Design
59+
- [X] Logic
60+
- [X] Design
5861
- [ ] Test
5962
- [ ] Translation
6063
- [ ] Refactoring

app/views/rails_admin/main/sortable.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="alert-status"></div>
22

33
<em>
4-
<%= t 'helper_soratble' %>
4+
<%= t 'helper_sortable' %>
55
</em>
66

77
<br />

0 commit comments

Comments
 (0)