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 version forms

Benjamin Bädorfd045a8383c3f
diff --git a/app/views/versions/_form.html.erb b/app/views/versions/_form.html.erb
index 693f5563409..b0bf3c2b1cf 100644
--- a/app/views/versions/_form.html.erb
+++ b/app/views/versions/_form.html.erb
@@ -58,11 +58,35 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="form--field">
- <%= f.text_field :start_date, container_class: '-xslim', class: '-augmented-datepicker' %>
+ <label
+ class="form--label"
+ for="version_start_date"
+ ><%= t(:start_date) %></label>
+ <div class="form--field-container -visible-overflow">
+ <%= angular_component_tag 'op-single-date-picker',
+ inputs: {
+ value: version.start_date,
+ id: "version_start_date",
+ name: "version[start_date]"
+ }
+ %>
+ </div>
</div>
<div class="form--field">
- <%= f.text_field :effective_date, container_class: '-xslim', class: '-augmented-datepicker' %>
+ <label
+ class="form--label"
+ for="version_effective_date"
+ ><%= t(:effective_date) %></label>
+ <div class="form--field-container -visible-overflow">
+ <%= angular_component_tag 'op-single-date-picker',
+ inputs: {
+ value: version.effective_date,
+ id: "version_effective_date",
+ name: "version[effective_date]"
+ }
+ %>
+ </div>
</div>
<div class="form--field">