.clearfix
.pull-right.button-group{"ng-controller" => "buttonGroupController"}
  = button_tag(button_label,
               "class"       => "btn btn-primary disabled",
               :alt          => button_label,
               :title        => button_label,
               "ng-click"    => "disabledClick($event)",
               "ng-show"     => "!saveable(angularForm)")

  = button_tag(_(button_label),
               :class        => "btn btn-primary",
               :alt          => button_label,
               :title        => button_label,
               "ng-click"    => button_click,
               "ng-show"     => "saveable(angularForm)")

  = button_tag(_("Reset"),
               :class        => "btn btn-default disabled",
               :alt          => _("Reset changes"),
               :title        => _("Reset changes"),
               "ng-click"    => "disabledClick($event)",
               "ng-show"     => "!newRecord && angularForm.$pristine")

  = button_tag(_("Reset"),
               :class        => "btn btn-default",
               :alt          => _("Reset changes"),
               :title        => _("Reset changes"),
               "ng-click"    => "resetClicked()",
               "ng-show"     => "!newRecord && !angularForm.$pristine")

  = button_tag(_("Cancel"),
               :class => "btn btn-default",
               :alt   => _("Cancel"),
               :title => _("Cancel"),
               "ng-click" => "cancelClicked($event)")

.clearfix
.pull-right.button-group{"ng-controller" => "buttonGroupController"}
  %miq-button{:name      => button_label,
                :title     => button_label,
                :alt       => button_label,
                :enabled   => "saveable(angularForm)",
                'on-click' => button_click,
                :primary   => 'true'}
  %miq-button{:name      => t = _("Reset"),
                :title     => t,
                :alt       => t,
                :enabled   => '!angularForm.$pristine',
                'ng-show'  => '!newRecord',
                'on-click' => "resetClicked()"}
  %miq-button{:name      => t = _("Cancel"),
                :title     => t,
                :alt       => t,
                'on-click' => "cancelClicked($event)"}

Convert x_custom_form_buttons_angular to use miq-button directive
Convert x_custom_form_buttons_angular to use miq-button directive
