-
Notifications
You must be signed in to change notification settings - Fork 0
/
process_form.ex
32 lines (23 loc) · 1.16 KB
/
process_form.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
defmodule BPE.Create do
require BPE
require FORM
def doc(), do: "Форма створення BPE/BPMN процесів."
def id(), do: BPE.process()
def new(name, _, _) do
:erlang.put(:process_type_pi_none, "bpe_account")
FORM.document(
name: :form.atom([:pi,name]),
sections: [ FORM.sec(name: ["Новий процес: "]) ],
buttons: [ FORM.but(id: :form.atom([:pi,:decline]),
title: "Відміна", class: :cancel,
postback: {:"Discard",[]} ),
FORM.but(id: :form.atom([:pi,:proceed]),
title: "Створення", class: [:button,:sgreen],
sources: [:process_type], postback: {:"Spawn",[]})],
fields: [ FORM.field(name: :process_type, id: :process_type, type: :select,
title: "Тип:", tooltips: [], default: :bpe_account,
options: [ FORM.opt(name: :bpe_account,
checked: true,
title: "Рахунок") ] ) ] )
end
end