5 <& /util/import_javascript.mas, classes => [ 'bootstrap_min.js', 'jquery' ] &>
7 <& /page/page_title.mas, title => 'Seedlot Maintenance' &>
9 <&| /page/info_section.mas, title=>"About Seedlot Maintenance", collapsible => 1, collapsed => 1 &>
10 <div class="well well-sm">
11 <div class="panel panel-default">
12 <div class="panel-body">
13 <p>Seedlot Maintenance allows you to record and document certain actions and/or observations taken
14 for the proper maintenance of your Seedlots. The actions and observations are timestamped so you can
15 clearly track the maintenance and state of your Seedlots over time.</p>
16 <p>To record a new maintenance event for a particular Seedlot, use the <strong>Record Maintenance</strong>
17 button below to enter the event information directly on the website. You can also bulk upload maintenance
18 events for one or more Seedlots using the <strong>Upload Maintenance</strong> button.</p>
19 <p>You can view the maintenance events for a single Seedlot on the Seedlot detail page by going to the
20 <a href='/breeders/seedlots'><strong>Manage > Seedlots</strong></a> page, searching for the Seedlot,
21 and clicking its name in the results table. You can also filter through all of the stored maintenance
22 events using the search below. The events can then be downloaded from the table displaying the results or
23 downloaded in bulk from the <a href='/breeders/download'><strong>Manage > Download</strong></a>
24 page using a list of Seedlots.</p>
30 <!-- Additional crop-specific seedlot maintenance tools -->
31 <&| /page/info_section.mas, title=>"Seedlot Maintenance Tools", collapsible => 1, collapsed => !$tool &>
32 <& /breeders_toolbox/seedlot_maintenance/tools.mas, collapsed => !$tool &>
36 my $seedlot_subtitle = '';
38 $seedlot_subtitle = "Login to add Seedlot maintenance events";
40 elsif ( $c->user()->check_roles("curator") || $c->user()->check_roles("submitter") ) {
41 $seedlot_subtitle = '<button class="btn btn-sm btn-primary" style="margin:3px" id="record_events">Record Maintenace</button> <button class="btn btn-sm btn-primary" style="margin:3px" id="upload_events">Upload Maintenance</button>'
44 <&| /page/info_section.mas, title=>"Seedlot Maintenance Events", collapsible => 1, collapsed => !!$tool, subtitle => $seedlot_subtitle &>
46 <& /breeders_toolbox/seedlot_maintenance/table.mas &>
51 <!-- Upload Workflow Dialog -->
52 <& /breeders_toolbox/seedlot_maintenance/upload_dialog.mas &>
55 <script type="text/javascript">
57 jQuery(document).ready(function() {
58 jQuery('#record_events').click(function() {
59 window.location = '/breeders/seedlot/maintenance/record';
61 jQuery('#upload_events').click(function() {
62 jQuery('#upload_maintenance_event_upload_modal').modal("show");