Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- observations.coffee 206:212
- observations_app.directive 'answersList', ['$compile', '$templateCache', ($compile, $templateCache) ->
- restrict: 'E'
- scope:
- questions: '='
- repetitions: '='
- answers: '='
- isAdmin: '='
- admin/observation_answers/_form.html.erb 18:25
- <h3>Requirements of the observation</h3>
- <div class="form-group col-sm-12">
- <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>
- </div>
- <h3>Other fields</h3>
- <div class="form-group col-sm-12">
- <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>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement