<% settings = Setting.plugin_issue_id %>

<%= form.text_field(:issue_key, :size => 10, :disabled => @project.issue_key.present? && !@project.issue_key_changed?) %> <% if @project.issue_key.blank? || @project.issue_key_changed? %> <%= l(:text_length_between, :min => 1, :max => Project::ISSUE_KEY_MAX_LENGTH) %> <%= l(:text_issue_key_info) %> <% if @project.children.any? && settings.is_a?(Hash) && settings[:issue_key_sharing] %> <%= form.check_box(:share_issue_key, :no_label => true) %> <%= l(:text_use_issue_key_for_subprojects) %> <% end %> <% end %>