-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbpe_create.erl
31 lines (30 loc) · 1.25 KB
/
bpe_create.erl
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
-module(bpe_create).
-copyright('Maxim Sokhatsky').
-include_lib("nitro/include/nitro.hrl").
-include_lib("form/include/meta.hrl").
-include_lib("bpe/include/bpe.hrl").
-include("act.hrl").
-export([doc/0,id/0,new/3]).
doc() -> "Dialog for creation of BPE processes.".
id() -> #act{}.
new(Name,#act{}, _) ->
put(process_type_pi_none, "bpe_account"),
#document { name = form:atom([pi,Name]),
sections = [ #sec { name=[<<"New process: "/utf8>>] } ],
buttons = [ #but { id=form:atom([pi,decline]),
title= <<"Discard"/utf8>>,
class=cancel,
postback={'Discard',[]} },
#but { id=form:atom([pi,proceed]),
title = <<"Create"/utf8>>,
class = [button,sgreen],
sources = [process_type],
postback = {'Spawn',[]}}],
fields = [ #field { name=process_type,
id=process_type,
type=select,
title= "Type",
tooltips = [],
default = bpe_account,
options = [ #opt{name=bpe_account,checked=true,title = "Client Account"} ]
} ] }.