Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use op-single-date-picker for work package move form

Benjamin Bädorf9f251db19e82
diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erb
index 55d7ce04325..3693374bf90 100644
--- a/app/views/work_packages/moves/new.html.erb
+++ b/app/views/work_packages/moves/new.html.erb
@@ -53,7 +53,7 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t(:label_change_properties) %></legend>
- <div class="grid-block">
+ <div class="grid-block grid-block_overflow-visible">
<div class="grid-content medium-6">
<div class="form--field">
<label class="form--label" for="new_project_id"><%= WorkPackage.human_attribute_name(:project) %>:</label>
@@ -133,14 +133,24 @@ See COPYRIGHT and LICENSE files for more details.
<div class="grid-content medium-6">
<div class="form--field">
<label class="form--label" for='start_date'><%= WorkPackage.human_attribute_name(:start_date) %></label>
- <div class="form--field-container">
- <%= styled_text_field_tag 'start_date', '', size: 10, class: '-augmented-datepicker' %>
+ <div class="form--field-container -visible-overflow">
+ <%= angular_component_tag 'op-single-date-picker',
+ inputs: {
+ id: "start_date",
+ name: "start_date"
+ }
+ %>
</div>
</div>
<div class="form--field">
<label class="form--label" for='due_date'><%= WorkPackage.human_attribute_name(:due_date) %></label>
- <div class="form--field-container">
- <%= styled_text_field_tag 'due_date', '', size: 10, class: '-augmented-datepicker' %>
+ <div class="form--field-container -visible-overflow">
+ <%= angular_component_tag 'op-single-date-picker',
+ inputs: {
+ id: "due_date",
+ name: "due_date"
+ }
+ %>
</div>
</div>
<% if @target_type %>
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_grid.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_grid.scss
index 1494a32c5ba..d7c2358d5bd 100644
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_grid.scss
+++ b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_grid.scss
@@ -329,6 +329,12 @@ $block-grid-max-size: 6 !default;
@extend %block-core;
@extend %child-core;
@include grid-block;
+
+ &_overflow-visible {
+ &, .grid-content {
+ overflow: visible;
+ }
+ }
}
.grid-content {
@extend %child-core;