redmine-workflow-engine/app/views/workflows/_form.html.erb
ioresponse e67fb92189 Initial commit: Redmine Workflow Engine Plugin
Features:
- Custom workflow creation per project/tracker
- Step-by-step workflow definition
- Assignees per step (user, role group, department)
- Next/Previous step navigation
- Reject to first step
- Skip step (admin only)
- Step deadline settings
- Workflow dashboard
- Group member selection when proceeding

🤖 Generated with Claude Code
2025-12-23 00:16:43 +09:00

54 lines
1.8 KiB
Plaintext

<%= form_for @workflow, url: @workflow.new_record? ? '/custom_workflows' : custom_workflow_path(@workflow), method: @workflow.new_record? ? :post : :patch, html: { class: 'tabular' } do |f| %>
<% if @workflow.errors.any? %>
<div id="errorExplanation">
<ul>
<% @workflow.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<p>
<label for="custom_workflow_name">워크플로우명 <span class="required">*</span></label>
<%= f.text_field :name, size: 50, required: true %>
</p>
<p>
<label for="custom_workflow_description">설명</label>
<%= f.text_area :description, rows: 3, cols: 60 %>
</p>
<p>
<label for="custom_workflow_project_id">프로젝트</label>
<%= f.collection_select :project_id, Project.all.order(:name), :id, :name,
{ include_blank: '-- 모든 프로젝트 --' }, { style: 'width: 300px;' } %>
<br/>
<em class="info">특정 프로젝트에서만 사용하려면 선택하세요.</em>
</p>
<p>
<label for="custom_workflow_tracker_id">트래커</label>
<%= f.collection_select :tracker_id, Tracker.all.order(:position), :id, :name,
{ include_blank: '-- 모든 트래커 --' }, { style: 'width: 300px;' } %>
<br/>
<em class="info">특정 트래커에서만 사용하려면 선택하세요.</em>
</p>
<p>
<label for="custom_workflow_is_default">기본 워크플로우</label>
<%= f.check_box :is_default %>
<em class="info">프로젝트/트래커가 일치하는 이슈에 자동 적용됩니다.</em>
</p>
<p>
<label for="custom_workflow_active">활성화</label>
<%= f.check_box :active %>
</p>
<p>
<%= submit_tag @workflow.new_record? ? '생성' : '저장', class: 'button-positive' %>
<%= link_to '취소', '/custom_workflows', class: 'button' %>
</p>
<% end %>