2011-12-19 15:30:14 +00:00
|
|
|
= javascript_include_tag "autocomplete-rails.js"
|
|
|
|
|
|
|
|
.group
|
|
|
|
= f.label :title, :class => :label
|
|
|
|
= f.text_field :title, :class => 'text_field'
|
|
|
|
|
|
|
|
.group
|
|
|
|
= f.label :body, :class => :label
|
|
|
|
= f.text_area :body, :class => 'text_field', :cols => 80
|
|
|
|
|
2011-12-27 13:18:25 +00:00
|
|
|
- unless @issue.new_record?
|
|
|
|
.group
|
|
|
|
= f.label :status, :class => :label
|
|
|
|
= f.select :status, Issue::STATUSES, :class => 'text_field'
|
2011-12-19 15:30:14 +00:00
|
|
|
|
|
|
|
.group
|
2011-12-27 13:18:25 +00:00
|
|
|
= label_tag "", t("activerecord.attributes.issue.user_id"), :class => :label
|
2011-12-19 15:30:14 +00:00
|
|
|
= autocomplete_field_tag 'user_id', @user_uname, autocomplete_user_uname_platforms_path, :id_element => '#user_id_field'
|
|
|
|
= hidden_field_tag 'user_id', @user_id, :id => 'user_id_field'
|
|
|
|
|
|
|
|
.group.navform.wat-cf
|
|
|
|
%button.button{:type => "submit"}
|
|
|
|
= image_tag("web-app-theme/icons/tick.png", :alt => t("layout.save"))
|
|
|
|
= t("layout.save")
|
|
|
|
%span.text_button_padding= t("layout.or")
|
|
|
|
= link_to t("layout.cancel"), project_path(@project), :class => "text_button_padding link_button"
|