Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tabbed edit view with ajax realized for model teacher.

  • Loading branch information...
commit 6426b05a416ce44672cb6dfb51dc8ee328039e5d 1 parent 0d5fc86
@raskhadafi raskhadafi authored
View
7 app/views/teachers/_edit.html.haml
@@ -0,0 +1,7 @@
+%div[resource]
+ = ui_tabs [ |
+ {:name => 'form_address', :partial => 'people/tab_form_address' }, |
+ {:name => 'form_remarks', :partial => 'people/tab_form_remarks' }, |
+ {:name => 'form_user', :partial => 'people/tab_form_user', :if => lambda { resource.user } }, |
+ {:name => 'create_user', :partial => 'people/tab_create_user', :unless => lambda { resource.user } } |
+ ] |
View
2  app/views/teachers/edit.js.rjs
@@ -0,0 +1,2 @@
+page['#content .teacher'].html(render('edit'))
+page.call('addTabsBehaviour')
Please sign in to comment.
Something went wrong with that request. Please try again.