Guest User

Untitled

a guest
Feb 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <% content_for('drafts') do%>
  2. <% view :all_drafts, :outlet=>false, :bind=>{:visible=>'Goar.eventsController.isEventOpened'}do%>
  3. <%= label_view :class=>'list-header', :value=>'Current Drafts'%>
  4. <% view :add_button, :view=>'SC.ButtonView', :class=>'icon-button',
  5. :properties=>{:action=>'Goar.draftsController.addDraft'} do%>
  6. <img src="<%= static_url('images/icons/docs_16') %>"/>
  7. <%end%>
  8. <% view :remove_button, :view=>'SC.ButtonView', :class=>'icon-button',
  9. :properties=>{:action=>'Goar.draftsController.removeDraft'},
  10. :bind=>{:enabled=>'Goar.draftsController.hasSelection'} do%>
  11. <img src="<%= static_url('images/icons/trash_16') %>"/>
  12. <%end%>
  13. <% scroll_view do %>
  14. <%=list_view :drafts, :content_value_key => 'locName',
  15. :bind => { :content => 'Goar.draftsController.arrangedObjects',
  16. :selection => 'Goar.draftsController.selection'}%>
  17. <%end%>
  18. <%end%>
  19. <%end%>
Add Comment
Please, Sign In to add comment