Advertisement
Guest User

Untitled

a guest
May 26th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.84 KB | None | 0 0
  1. observations.coffee 206:212
  2. observations_app.directive 'answersList', ['$compile', '$templateCache', ($compile, $templateCache) ->
  3.   restrict: 'E'
  4.   scope:
  5.     questions: '='
  6.     repetitions: '='
  7.     answers: '='
  8.     isAdmin: '='
  9.  
  10. admin/observation_answers/_form.html.erb 18:25
  11.   <h3>Requirements of the observation</h3>
  12.   <div class="form-group col-sm-12">
  13.     <answers-list questions="questions" repetitions="repetitions" answers="answers" is-admin="<%= if current_user.has_role? :admin_observations, :model_answers then "true" else "false" end %>"></answers-list>
  14.   </div>
  15.   <h3>Other fields</h3>
  16.   <div class="form-group col-sm-12">
  17.     <answers-list questions="otherfields" repetitions="0" answers="answers" is-admin="<%= if current_user.has_role? :admin_observations, :model_answers then "true" else "false" end %>"></answers-list>
  18.   </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement