diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-25 08:32:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-25 08:32:47 +0000 |
commit | 2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc (patch) | |
tree | 0216d3fe5705f74909c477e9fcca56438e0fed5f /app/views/custom_fields | |
parent | 934a7615c427caf120b5386e62aa159b8d79949f (diff) | |
download | redmine-2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc.tar.gz redmine-2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc.zip |
Adds Enumeration custom field format (#21060).
Similar to List format but stores possible values as records.
git-svn-id: http://svn.redmine.org/redmine/trunk@14745 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/custom_fields')
-rw-r--r-- | app/views/custom_fields/formats/_enumeration.erb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/custom_fields/formats/_enumeration.erb b/app/views/custom_fields/formats/_enumeration.erb new file mode 100644 index 000000000..07e4cf463 --- /dev/null +++ b/app/views/custom_fields/formats/_enumeration.erb @@ -0,0 +1,12 @@ +<% unless @custom_field.new_record? %> +<p> + <label><%= l(:field_possible_values) %></label> + <%= link_to l(:button_edit), custom_field_enumerations_path(@custom_field), :class => 'icon icon-edit' %> +</p> +<% if @custom_field.enumerations.active.any? %> + <p><%= f.select :default_value, @custom_field.enumerations.active.map{|v| [v.name, v.id.to_s]}, :include_blank => true %></p> +<% end %> +<% end %> + +<p><%= f.text_field :url_pattern, :size => 50, :label => :label_link_values_to %></p> +<p><%= edit_tag_style_tag f %></p> |