Skip to content

Commit

Permalink
NEUSPRT-234: Expose the time element of date time on the file upload …
Browse files Browse the repository at this point in the history
…screen
  • Loading branch information
olayiwola-compucorp committed May 10, 2024
1 parent d51d035 commit 76cc8b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 11 additions & 2 deletions ang/civicase/shared/directives/file-uploader.directive.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ <h3>{{ts('Drop file here')}}</h3>
<input type="text" class="form-control" id="uploadSubject" required placeholder="" ng-model="activity.subject"/>
</div>
<div class="row">
<div class="form-group col-md-4 civicase__ui-range">
<div class="form-group col-md-4 civicase__ui-range date_range">
<div><label for="receivedDate">{{ts('Received Date')}}</label></div>
<input id="receivedDate" class="form-control" crm-ui-datepicker="{time: false}" ng-model="activity.activity_date_time" placeholder=""/>
<input id="receivedDate" class="form-control" crm-ui-datepicker="{time: true}" ng-model="activity.activity_date_time" placeholder=""/>
</div>
</div>
<div class="row">
Expand Down Expand Up @@ -66,3 +66,12 @@ <h4 class="civicase__file-upload-name col-md-8" ng-bind="item.file.name"></h4>
</div>
</fieldset>
</form>

<style>
.date_range > .crm-form-date-wrapper {
display: flex !important;
}
.date_range.civicase__ui-range .crm-form-date {
width: 100% !important;
}
</style>
3 changes: 2 additions & 1 deletion ang/civicase/shared/directives/file-uploader.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@
$scope.activity = {
case_id: $scope.ctx.id,
activity_type_id: 'File Upload',
subject: ''
subject: '',
activity_date_time: moment().format('YYYY-MM-DD HH:MM:SS')
};
}

Expand Down

0 comments on commit 76cc8b3

Please sign in to comment.