mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
1443
apps/atlbiomed/modules/clientManager/actions/actions.class.php
Normal file
1443
apps/atlbiomed/modules/clientManager/actions/actions.class.php
Normal file
File diff suppressed because it is too large
Load Diff
4
apps/atlbiomed/modules/clientManager/config/view.yml
Executable file
4
apps/atlbiomed/modules/clientManager/config/view.yml
Executable file
@ -0,0 +1,4 @@
|
||||
indexSuccess:
|
||||
stylesheets: [/css/clientManager]
|
||||
javascripts: [/js/clientManager, /js/scriptaculous/lib/prototype]
|
||||
|
42
apps/atlbiomed/modules/clientManager/templates/_deviceReport.php
Executable file
42
apps/atlbiomed/modules/clientManager/templates/_deviceReport.php
Executable file
@ -0,0 +1,42 @@
|
||||
<div class='regularCont'>
|
||||
<div class='innerCont'><table border="0">
|
||||
<tr>
|
||||
<td style='width: 100px'>Report
|
||||
</td>
|
||||
<td style='width: 100px'>Status
|
||||
</td>
|
||||
<td style='width: 200px'>
|
||||
Date
|
||||
</td>
|
||||
<td >
|
||||
Action
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($finalReport as $report){
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a target='_blank' href='/index.php/process/createPdf/id/<?php print $report->getId(); ?>'>View</a>
|
||||
</td>
|
||||
<td>
|
||||
<?php print ucwords($report->getPassFail()); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print $report->formattedDate(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href='javascript:void(0)' onclick='deleteReport(<?php print $report->getId(); ?>,<?php print $report->getClientId(); ?>)' >Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if(empty($finalReport)){
|
||||
?>
|
||||
<tr><td colspan='4'><div style='text-align:center;font-weight:bold;'>No Reports Found</div></td></tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
42
apps/atlbiomed/modules/clientManager/templates/deviceReportSuccess.php
Executable file
42
apps/atlbiomed/modules/clientManager/templates/deviceReportSuccess.php
Executable file
@ -0,0 +1,42 @@
|
||||
<div class='regularCont'>
|
||||
<div class='innerCont'><table border="0">
|
||||
<tr>
|
||||
<td style='width: 100px'>Report
|
||||
</td>
|
||||
<td style='width: 100px'>Status
|
||||
</td>
|
||||
<td style='width: 200px'>
|
||||
Date
|
||||
</td>
|
||||
<td >
|
||||
Action
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($finalReport as $report){
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a target='_blank' href='/index.php/process/createPdf/id/<?php print $report->getId(); ?>'>View</a>
|
||||
</td>
|
||||
<td>
|
||||
<?php print ucwords($report->getPassFail()); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print $report->formattedDate(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href='javascript:void(0)' onclick='deleteReport(<?php print $report->getId(); ?>,<?php print $report->getClientId(); ?>)' >Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if(empty($finalReport)){
|
||||
?>
|
||||
<tr><td colspan='4'><div style='text-align:center;font-weight:bold;'>No Reports Found</div></td></tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
1261
apps/atlbiomed/modules/clientManager/templates/indexSuccess.php
Normal file
1261
apps/atlbiomed/modules/clientManager/templates/indexSuccess.php
Normal file
File diff suppressed because it is too large
Load Diff
63
apps/atlbiomed/modules/clientManager/validate/AddClient.yml
Executable file
63
apps/atlbiomed/modules/clientManager/validate/AddClient.yml
Executable file
@ -0,0 +1,63 @@
|
||||
fillin:
|
||||
enabled: true
|
||||
|
||||
fields:
|
||||
client_identification:
|
||||
required:
|
||||
msg: Please enter a client identification before continuing
|
||||
sfStringValidator:
|
||||
|
||||
client_name:
|
||||
required:
|
||||
msg: Please enter a client name before continuing
|
||||
sfStringValidator:
|
||||
min: 5
|
||||
min_error: Client name does not meet acceptable parameters (5 character min)
|
||||
max: 50
|
||||
max_error: Clint name exceeds acceptable parameters (50 characters max)
|
||||
|
||||
address:
|
||||
required:
|
||||
msg: Please enter an address.
|
||||
|
||||
city:
|
||||
required:
|
||||
msg: Please enter a city.
|
||||
|
||||
state:
|
||||
required:
|
||||
msg: Please select a state.
|
||||
|
||||
zip:
|
||||
required:
|
||||
msg: Please enter a zip code.
|
||||
sfStringValidator:
|
||||
min: 5
|
||||
min_error: You have submitted an incomplete zip code. Please enter a valid zip code.
|
||||
max: 5
|
||||
max_error: Please submit a 5-digit zip code.
|
||||
|
||||
email:
|
||||
sfEmailValidator:
|
||||
strict: true
|
||||
email_error: Please enter a valid email address (name@domain.extension)
|
||||
|
||||
phone:
|
||||
sfStringValidator:
|
||||
min: 12
|
||||
min_error: Please enter a valid telephone number (e.g. 555-555-5555).
|
||||
max: 17
|
||||
max_error: Please enter a valid telephone number.
|
||||
|
||||
|
||||
ext:
|
||||
sfStringValidator:
|
||||
max: 5
|
||||
max_error: Please enter a valid extention.
|
||||
|
||||
# freq_month:
|
||||
# required:
|
||||
# msg: Please select month to start maintainence.
|
||||
# sfStringValidator:
|
||||
# min: 2
|
||||
# min_error: Please select a month to start Maintainence.
|
34
apps/atlbiomed/modules/clientManager/validate/devices
Executable file
34
apps/atlbiomed/modules/clientManager/validate/devices
Executable file
@ -0,0 +1,34 @@
|
||||
fillin:
|
||||
|
||||
enabled: true
|
||||
|
||||
fields:
|
||||
new_device_name:
|
||||
required:
|
||||
msg: Please enter a device description
|
||||
|
||||
new_manufacturer:
|
||||
required:
|
||||
msg: Please enter a device manufacturer
|
||||
|
||||
new_model_number:
|
||||
required:
|
||||
msg: Please enter a model number
|
||||
|
||||
new_serial_number:
|
||||
required:
|
||||
msg: Please enter a serial number
|
||||
|
||||
new_location:
|
||||
required:
|
||||
msg: Please enter where the device is located
|
||||
|
||||
new_frequency:
|
||||
required:
|
||||
msg: Please select a maintainance frequency
|
||||
|
||||
new_status:
|
||||
required:
|
||||
msg: Please select a status for the device
|
||||
|
||||
|
Reference in New Issue
Block a user