Skip to content

Commit

Permalink
Merge pull request coral-erm#529 from biblibre/Add_placeholder_to_orders
Browse files Browse the repository at this point in the history
Add placeholders for dates to orders form
  • Loading branch information
veggiematts authored Jan 17, 2019
2 parents 6f7f3fc + f0a4e37 commit ceeea90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/ajax_forms/getOrderForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@

<tr>
<td style='vertical-align:top;text-align:left;font-weight:bold'><label for='currentStartDate'><?php echo _("Sub Start:");?></label></td>
<td><input class='date-pick' id='currentStartDate' name='currentStartDate' value = '<?php echo $startDate; ?>' style='width:75px;' /></td>
<td><input class='date-pick' id='currentStartDate' name='currentStartDate' value = '<?php echo $startDate; ?>' placeholder='mm/dd/yyyy' style='width:75px;' /></td>
</tr>

<tr>
<td style='vertical-align:top;text-align:left;font-weight:bold'><label for='currentEndDate'><?php echo _("Current Sub End:");?></label></td>
<td><input class='date-pick' id='currentEndDate' name='currentEndDate' value = '<?php echo $endDate; ?>' style='width:75px;' />
<td><input class='date-pick' id='currentEndDate' name='currentEndDate' value = '<?php echo $endDate; ?>' placeholder='mm/dd/yyyy' style='width:75px;' />
</td>
</tr>

Expand Down
1 change: 1 addition & 0 deletions resources/js/forms/acquisitionsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

$(function(){
$('.date-pick').datePicker({startDate:'01/01/1996'});
$('.date-pick').attr('placeholder', Date.format);

//bind all of the inputs

Expand Down

0 comments on commit ceeea90

Please sign in to comment.