fix test with new description field.
[sgn.git] / mason / breeders_toolbox / discard_undo_seedlot_usage.mas
blob0d6f1e49fff171453fe01fa3e2a6923f5d58e451
1 <%args>
3 </%args>
6 <div class="modal fade" id="discard_seedlot_usage_info_dialog" name="discard_seedlot_usage_info_dialog" tabindex="-1" role="dialog" aria-labelledby="discardSeedlotUsageInfoDialog">
7     <div class="modal-dialog modal-lg " role="document">
8         <div class="modal-content">
9             <div class="well well-lg">
10                 <div class="panel panel-default">
11                     <div class="panel-body">
12                         <div class="modal-header" style="text-align: center">
13                             <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
14                             <h4 class="modal-title" id="discardUsageInfoDialog">Marking Seedlots as DISCARDED and Undo Options</h4>
15                         </div>
16                         <div class="modal-body">
17                             <div class="container-fluid">
18                                 <p> Only users with curator role can mark seedlots as "DISCARDED" or undo discarding seedlots.</p>
19                                 <hr class ="solid">
20                                 <h4>
21                                     Discarding vs. Deleting Seedlots:
22                                 </h4>
23                                 <p> Discarding a seedlot is different from deleting a seedlot.
24                                 <li>Deleting a seedlot permanently removes that seedlot and all associated transactions from database. Discarding a seedlot inactivates the seedlot, but information related to that seedlot is still kept in the database.</li>
25                                 <li>Amount/Weight of discarded seedlot is labeled as "DISCARDED".</li>
26                                 <li>Discarding a seedlot can be reversed with UNDO function, but deletion a seedlot cannot be undone.</li>
27                                 <li>Discarded seedlots still can be viewed in seedlot details pages and are searchable. However, links for adding new transaction, editing details and transaction are removed.</li>
28                                 <li>Discarded seedlots are excluded from dropdown list for adding new transactions.</li>
29                                 <hr class ="solid">
30                                 <h4>
31                                     How to Mark Seedlot as DISCARDED:
32                                 </h4>
33                                 <li>Using a List: Several seedlots can be discarded at once by using a list with seedlots list type. The link can be found at the buttom of Manage Seedlots (Available Seedlots) page.</li>
34                                 <li>Discarding single seedlot: The link can be found at the buttom of Seedlot Details page.</li>
35                                 <hr class ="solid">
36                                 <h4>
37                                     UNDO Discarding seedlots:
38                                 </h4>
39                                 <p>Discarded seedlot can be reversed by using UNDO option at the buttom of Seedlot Details page </p>
40                             </div>
41                             <div class="modal-footer">
42                                 <button id="close_discarded_seedlot_usage_dialog" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
43                             </div>
44                         </div>
45                     </div>
46                 </div>
47             </div>
48         </div>
49     </div>
50 </div>
53 <style>
55 hr.solid { border-top: 3px solid #bbb; }
57 </style>
59 <script>
61 jQuery(document).ready(function(){
63     jQuery("[name='discard_seedlot_usage_info']").click(function() {
64         jQuery('#discard_seedlot_usage_info_dialog').modal("show");
65     });
67 });
69 </script>