]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_surveys.tt2
LP 2061136 follow-up: ng lint --fix
[Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_surveys.tt2
1 <div class="strong-text-2">[% l('Surveys') %]</div>
2 <div class="row pad-vert" ng-repeat="collection in surveys">
3   <div class="col-md-12">
4     <div class="row">
5       <div class="col-md-2 strong-text">
6         [% l('Survey') %] #{{collection.survey.id()}}
7       </div>
8       <div class="col-md-6 strong-text">{{collection.survey.description()}}</div>
9       <div class="col-md-4">
10         <div class="pull-right">
11           <span class="pad-horiz alert alert-warning strong-text" 
12             ng-if="collection.survey.required() == 't'">[% l('Required') %]</span>
13           <span class="pad-horiz  alert alert-info strong-text " 
14             ng-if="collection.survey.opac() == 't'">[% l('OPAC Visible') %]</span>
15         </div>
16       </div>
17     </div>
18     <div class="row">
19       <div class="col-md-12 well" style="margin-left:12px">
20         <table class="table">
21           <thead>
22             <th scope="col">[% l('Question: ') %]</th>
23             <th scope="col">[% l('Answer: ') %]</th>
24             <th scope="col">[% l('Last Answered on: ') %]</th>
25           </thead>
26           <tbody>
27             <tr ng-repeat="response in collection.responses">
28               <td>
29                 {{response.question().question()}}
30               </td>
31               <td>
32                 {{response.answer().answer()}}
33               </td>
34               <td>
35                 {{response.answer_date() | date:$root.egDateFormat}}
36               </td>
37             </tr>
38           </tbody>
39         </table>
40       </div>
41     </div>
42   </div>
43 </div>