Skip to content

Commit 60e263f

Browse files
committed
forms_ok
1 parent 7f2d611 commit 60e263f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/forms/forms_error.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-record(otp, {error="ERROR MSG",code="CODE"}).
88
id() -> #otp{}.
99
new(Name, #otp{error=ErrorMsg,code=Code}) ->
10-
#panel{id=results, class=form, body=[
10+
#panel{id=forms:atom([error,Name]), class=form, body=[
1111
#panel{class=caption, body=[
1212
#h4{body= [<<"Error "/utf8>>, n2o:to_binary(Code), ": ", ErrorMsg]}]}
1313
]}.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(forms_final).
1+
-module(forms_ok).
22
-copyright('Maxim Sokhatsky').
33
-include_lib("n2o/include/n2o.hrl").
44
-include_lib("nitro/include/nitro.hrl").
@@ -7,7 +7,7 @@
77
-record(otp, {error,code="OK"}).
88
id() -> #otp{}.
99
new(Name, O) ->
10-
#panel{id=results, class=form, body=[
10+
#panel{id=forms:atom([ok,Name]), class=form, body=[
1111
#panel{class=caption, body=[
1212
#h4{body= [<<"Success Operation: "/utf8>>, O#otp.code]}]},
1313
#panel{class=buttons, body=[

src/forms/forms_otp.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
id() -> #phone{}.
77
new(Name,Phone) ->
88

9-
#document { name = Name, sections = [
9+
#document { name = forms:atom([otp,Name]), sections = [
1010
#sec { name=[<<"Input the password "
1111
"you have received by SMS: "/utf8>>,
1212
nitro:to_list(Phone#phone.code),

0 commit comments

Comments
 (0)