Update editing enterprise page save-bar

This commit is contained in:
Bing Xie
2016-05-27 11:22:23 +10:00
parent 7aa8f2c73c
commit c003dcded9

View File

@@ -7,7 +7,11 @@
'onchange' => 'angular.element(enterprise_form).scope().setFormDirty()',
} do |f|
%save-bar{ buttons: "[{ text: 'Update', action: submit, param: null, class: 'red' }, { text: 'Cancel', action: cancel, param: '#{main_app.admin_enterprises_path}' }]", form: "enterprise_form" }
%save-bar{ dirty: "enterprise_form.$dirty", persist: "true" }
%input.red{ type: "button", value: "Update", ng: { click: "submit()", disabled: "!enterprise_form.$dirty" } }
%input{ type: "button", ng: { value: "enterprise_form.$dirty ? 'Cancel' : 'Close'", click: "cancel('#{main_app.admin_enterprises_path}')" } }
.row
.sixteen.columns.alpha