File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" modal-content" >
2
- <div class = " modal-header " >
3
- <h5 class =" modal-title " > <% - i18n ( ' users ' , ' form-title ' , {id : id}) %> </ h5 >
4
- < button type = " button " class = " close cancel " aria-label = " Close " data-dismiss =" modal" > & nbsp ; </ button >
5
- </ div >
6
- < div class = " modal-body " >
7
- <form >
2
+ <form >
3
+ <div class =" modal-header " >
4
+ < h5 class =" modal-title " > <% - i18n ( ' users ' , ' form-title ' , {id : id}) %> </ h5 >
5
+ < button type = " button " class = " close cancel " aria-label = " Close " data-dismiss = " modal " > & nbsp ; </ button >
6
+ </ div >
7
+ <div class = " modal-body " >
8
8
<div class =" row" >
9
9
<div class =" col-sm-6 col-md-6" >
10
10
<div class =" form-group" >
49
49
< / div>
50
50
< % } %>
51
51
</div >
52
- </form >
53
- </ div >
54
- < div class =" modal-footer " >
55
- <button type =" button " class =" btn btn-secondary cancel " data-dismiss = " modal " ><% - i18n (' str' , ' cancel ' ) %> </button >
56
- <button type = " button " class = " btn btn-teal save " > <% - i18n ( ' str ' , ' save ' ) %> </ button >
57
- </div >
52
+ </div >
53
+ < div class = " modal-footer " >
54
+ < button type = " button " class =" btn btn-secondary cancel " data-dismiss = " modal " > <% - i18n ( ' str ' , ' cancel ' ) %> </ button >
55
+ <button type =" submit " class =" btn btn-teal save " ><% - i18n (' str' , ' save ' ) %> </button >
56
+ </ div >
57
+ </form >
58
58
</div >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ module.exports = Mn.View.extend({
19
19
20
20
events : {
21
21
22
- 'click @ui.save ' : function ( e ) {
22
+ 'submit @ui.form ' : function ( e ) {
23
23
e . preventDefault ( ) ;
24
24
this . ui . error . hide ( ) ;
25
25
let view = this ;
You can’t perform that action at this time.
0 commit comments