Redmine-Jobs/app/views/jobs/_form.html.erb

38 lines
681 B
Plaintext

<%= form_with model: @job, id: "job_form" do |f| %>
<div class="box tabular">
<p>
<%= f.label :name %>
<%= f.text_field :name %>
</p>
<p>
<%= f.label :description %>
<%= f.text_area :description %>
</p>
<p>
<%= f.label :starts_on %>
<%= f.date_field :starts_on %>
</p>
<p>
<%= f.label :ends_on %>
<%= f.date_field :ends_on %>
</p>
<%= f.hidden_field :project_id, value: @project.id %>
<p>
<%= f.label :external_project_id %>
<%= f.number_field :external_project_id %>
</p>
<p>
<%= f.label :budget %>
<%= f.number_field :budget %>
</p>
</div>
<%= f.submit %>
<% end %>