mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 13:36:46 +00:00
Feat #2935 - Add UI for editing submitted on date for groups
This commit is contained in:
parent
41a2db0e1a
commit
1fa54d8fce
@ -167,8 +167,7 @@
|
||||
scope.formData.clientMembers[i] = scope.addedClients[i].id;
|
||||
}
|
||||
if (this.formData.active) {
|
||||
var reqDate = dateFilter(scope.first.date, scope.df);
|
||||
this.formData.activationDate = reqDate;
|
||||
this.formData.activationDate = dateFilter(scope.first.date, scope.df);
|
||||
}
|
||||
if (routeParams.centerId) {
|
||||
this.formData.centerId = routeParams.centerId;
|
||||
@ -177,8 +176,7 @@
|
||||
this.formData.officeId = routeParams.officeId;
|
||||
}
|
||||
if (scope.first.submitondate) {
|
||||
reqDat = dateFilter(scope.first.submitondate, scope.df);
|
||||
this.formData.submittedOnDate = reqDat;
|
||||
this.formData.submittedOnDate = dateFilter(scope.first.submitondate, scope.df);
|
||||
}
|
||||
this.formData.locale = scope.optlang.code;
|
||||
this.formData.dateFormat = scope.df;
|
||||
|
||||
@ -117,12 +117,13 @@
|
||||
resourceFactory.groupResource.get({groupId: routeParams.id}, function (data) {
|
||||
if (data.timeline.submittedOnDate) {
|
||||
scope.mindate = new Date(data.timeline.submittedOnDate);
|
||||
scope.first.submitondate = new Date(dateFilter(data.timeline.submittedOnDate, scope.df));
|
||||
}
|
||||
});
|
||||
|
||||
scope.updateGroup = function () {
|
||||
var reqDate = dateFilter(scope.first.date, scope.df);
|
||||
this.formData.activationDate = reqDate;
|
||||
this.formData.submittedOnDate = dateFilter(scope.first.submitondate, scope.df);
|
||||
this.formData.activationDate = dateFilter(scope.first.date, scope.df);
|
||||
this.formData.locale = scope.optlang.code;
|
||||
this.formData.dateFormat = scope.df;
|
||||
resourceFactory.groupResource.update({groupId: routeParams.id}, this.formData, function (data) {
|
||||
|
||||
@ -43,6 +43,14 @@
|
||||
<input type="text" id="externalId" ng-model="formData.externalId" class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2">{{'label.input.submittedon' | translate}}:</label>
|
||||
|
||||
<div class="col-sm-3">
|
||||
<input id="submittedon" type="text" name="submittedon" datepicker-pop="dd MMMM yyyy"
|
||||
ng-model="first.submitondate" is-open="opened1" min="'2000-01-01'" max="restrictDate" class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
<div ng-hide="editGroup.status.value == 'Pending'">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2">{{'label.input.activationdate' | translate}}<span class="required">*</span></label>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user