OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/inplace-edit/field-directives/edit-date-range/edit-date-range.directive.html

31 lines
1.2 KiB

<div class="inplace-edit--date-range">
<label
class="hidden-for-sighted"
for="inplace-edit--write-value--{{::field.name}}-start">
{{::startDateLabel}}
</label>
<input type="text"
class="inplace-edit--date-range-start-date"
id="inplace-edit--write-value--{{::field.name}}-start"
ng-change="onStartEdit()"
title="{{::startDateTitle}}"
aria-label="{{::startDateLabel}}"
placeholder="{{::dateFormat}}"
ng-model="startDate" ng-class="{'inplace-edit--highlight': startDateIsChanged}" />
<div class="inplace-edit--date-range-start-date-picker"></div>
<span class="delimeter">-</span>
<label
class="hidden-for-sighted"
for="inplace-edit--write-value--{{::field.name}}-end">
{{::endDateLabel}}
</label>
<input type="text"
class="inplace-edit--date-range-end-date"
id="inplace-edit--write-value--{{::field.name}}-end"
title="{{::startDateTitle}}"
aria-label="{{::startDateLabel}}"
placeholder="{{::dateFormat}}"
ng-change="onEndEdit()"
ng-model="endDate" ng-class="{'inplace-edit--highlight': endDateIsChanged}" />
<div class="inplace-edit--date-range-end-date-picker"></div>
</div>