diff --git a/app/views/statuses/_form.html.erb b/app/views/statuses/_form.html.erb index 036367bd68d4..cb0dd1c56a2c 100644 --- a/app/views/statuses/_form.html.erb +++ b/app/views/statuses/_form.html.erb @@ -31,12 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.text_field "name", required: true, container_class: "-middle" %>
-
- <%= f.select :default_done_ratio, - (0..100).step(10).map { |r| ["#{r} %", r] }, - container_class: "-xslim", - label: WorkPackage.human_attribute_name(:done_ratio) %> -
+
<%= f.number_field "default_done_ratio", min: 0, max: 100, container_class: "-xslim" %>
<%= f.check_box "is_closed" %>
<% unless @status.is_default? %>
<%= f.check_box "is_default" %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 3d946bb658ac..673ec43abb22 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -671,17 +671,6 @@ en: attribute_help_text: attribute_name: "Attribute" help_text: "Help text" - ldap_auth_source: - account: "Account" - attr_firstname: "Firstname attribute" - attr_lastname: "Lastname attribute" - attr_login: "Username attribute" - attr_mail: "Email attribute" - base_dn: "Base DN" - host: "Host" - onthefly: "Automatic user creation" - port: "Port" - tls_certificate_string: "LDAP server SSL certificate" changeset: repository: "Repository" color: @@ -706,6 +695,14 @@ en: visible: "Visible" custom_value: value: "Value" + doorkeeper/application: + uid: "Client ID" + secret: "Client secret" + owner: "Owner" + redirect_uri: "Redirect URI" + client_credentials_user_id: "Client Credentials User ID" + scopes: "Scopes" + confidential: "Confidential" enterprise_token: starts_at: "Valid since" subscriber: "Subscriber" @@ -716,20 +713,25 @@ en: row_count: "Number of rows" column_count: "Number of columns" widgets: "Widgets" - oauth_client: - client: "Client ID" - relation: - lag: "Lag" - from: "Work package" - to: "Related work package" - status: - is_closed: "Work package closed" - is_readonly: "Work package read-only" - excluded_from_totals: "Exclude from calculation of totals in hierarchy" journal: notes: "Notes" + ldap_auth_source: + account: "Account" + attr_firstname: "Firstname attribute" + attr_lastname: "Lastname attribute" + attr_login: "Username attribute" + attr_mail: "Email attribute" + base_dn: "Base DN" + host: "Host" + onthefly: "Automatic user creation" + port: "Port" + tls_certificate_string: "LDAP server SSL certificate" member: roles: "Roles" + oauth_client: + client: "Client ID" + planning_element_type_color: + hexcode: Hex code project: active_value: true: "unarchived" @@ -759,6 +761,8 @@ en: types: "Types" versions: "Versions" work_packages: "Work Packages" + project_custom_field: + custom_field_section: Section query: column_names: "Columns" relations_to_type_column: "Relations to %{type}" @@ -766,10 +770,19 @@ en: group_by: "Group results by" filters: "Filters" timeline_labels: "Timeline labels" + relation: + lag: "Lag" + from: "Work package" + to: "Related work package" repository: url: "URL" role: permissions: "Permissions" + status: + is_closed: "Work package closed" + is_readonly: "Work package read-only" + excluded_from_totals: "Exclude from calculation of totals in hierarchy" + default_done_ratio: "% Complete" time_entry: activity: "Activity" hours: "Hours" @@ -812,10 +825,6 @@ en: wiki_page: parent_title: "Parent page" redirect_existing_links: "Redirect existing links" - planning_element_type_color: - hexcode: Hex code - project_custom_field: - custom_field_section: Section work_package: begin_insertion: "Begin of the insertion" begin_deletion: "Begin of the deletion" @@ -850,14 +859,6 @@ en: type: "Type" version: "Version" watcher: "Watcher" - "doorkeeper/application": - uid: "Client ID" - secret: "Client secret" - owner: "Owner" - redirect_uri: "Redirect URI" - client_credentials_user_id: "Client Credentials User ID" - scopes: "Scopes" - confidential: "Confidential" errors: messages: @@ -1071,6 +1072,11 @@ en: hours_per_day_are_missing: "The number of hours per day must be defined." durations_are_not_positive_numbers: "The durations must be positive numbers." hours_per_day_is_out_of_bounds: "Hours per day can't be more than 24" + status: + attributes: + default_done_ratio: + inclusion: "must be between 0 and 100." + readonly_default_exlusive: "can not be activated for statuses that are marked default." time_entry: attributes: hours: @@ -1185,8 +1191,6 @@ en: version: undeletable_archived_projects: "The version cannot be deleted as it has work packages attached to it." undeletable_work_packages_attached: "The version cannot be deleted as it has work packages attached to it." - status: - readonly_default_exlusive: "can not be activated for statuses that are marked default." token/api: attributes: token_name: