<commit_before>%div{"ng-controller" => "#{params[:controller].camelize}Controller", "ng-init" => "init()"}
  #panel-list.db.panel.panel-default
    .panel-heading
      %h4
        %i.fa.fa-list.fa-lg{"ng-bind" => "' ' + title"}
    .panel-body
      .clearfix
        -# 工具栏
        = yield :list_toolbar

      %table.table.table-striped.table-hover.table-bordered.mt20
        %thead
          %tr
            %th.text-center
              %input#controllerName{:type => "hidden", :value => "{{controller}}"}
              %input#primaryKey{:type => "hidden", :value => "{{primaryKey}}"}
              %input{:type => "checkbox"}
            -# 表头
            = yield :list_thead
            %th.text-center 操作
        %tbody#list
          %tr{"ng-repeat" => "item in list.data"}
            %td{:width => "2%"}
              %input{:type => "hidden", :value => "{{item.id}}"}
              %input{:type => "checkbox", "ng-model" => "item.$$checked", "ng-change" => "onSelect(item)"}
            -# 表体
            = yield :list_tbody
            %td.text-center
              -# 操作按钮
              = yield :list_buttons

      %pagination{:read => 'read(c, m, params)', :count => "{{paginator.count}}", :page => "{{paginator.page}}", "per-page" => "{{paginator.perPage}}", "last-page" => "{{paginator.lastPage}}", :keyword => "{{list.keyword}}"}

      .text-center{"ng-if" => "list.data.length == 0"}
        %code 没有数据

  #panel-edit.dn.panel.panel-primary
    .modal-header.label-primary
      %a.close{:title => "关闭", "ng-click" => "closeEdit();"} &times;
      %h4
        %i.fa.fa-edit.fa-lg{"ng-bind" => "' ' + title"}

    .panel-body
      %input#hidePrimaryKeyID{:type => "hidden", :value => "{{itemModel.id}}"}
      %form#editForm.form-horizontal
        -# 表单
        = yield :edit_form_controls

    .panel-footer.text-center
      %a.btn.btn-primary.btn-save{:title => "保存", "ng-click" => "save()"}
        %i.fa.fa-save.fa-lg
      %a.btn.btn-default{:title => "关闭", "ng-click" => "closeEdit();"}
        %i.fa.fa-times.fa-lg<commit_msg>save when pressing enter in edit panel<commit_after>%div{"ng-controller" => "#{params[:controller].camelize}Controller", "ng-init" => "init()"}
  #panel-list.db.panel.panel-default
    .panel-heading
      %h4
        %i.fa.fa-list.fa-lg{"ng-bind" => "' ' + title"}
    .panel-body
      .clearfix
        -# 工具栏
        = yield :list_toolbar

      %table.table.table-striped.table-hover.table-bordered.mt20
        %thead
          %tr
            %th.text-center
              %input#controllerName{:type => "hidden", :value => "{{controller}}"}
              %input#primaryKey{:type => "hidden", :value => "{{primaryKey}}"}
              %input{:type => "checkbox"}
            -# 表头
            = yield :list_thead
            %th.text-center 操作
        %tbody#list
          %tr{"ng-repeat" => "item in list.data"}
            %td{:width => "2%"}
              %input{:type => "hidden", :value => "{{item.id}}"}
              %input{:type => "checkbox", "ng-model" => "item.$$checked", "ng-change" => "onSelect(item)"}
            -# 表体
            = yield :list_tbody
            %td.text-center
              -# 操作按钮
              = yield :list_buttons

      %pagination{:read => 'read(c, m, params)', :count => "{{paginator.count}}", :page => "{{paginator.page}}", "per-page" => "{{paginator.perPage}}", "last-page" => "{{paginator.lastPage}}", :keyword => "{{list.keyword}}"}

      .text-center{"ng-if" => "list.data.length == 0"}
        %code 没有数据

  #panel-edit.dn.panel.panel-primary
    .modal-header.label-primary
      %a.close{:title => "关闭", "ng-click" => "closeEdit();"} &times;
      %h4
        %i.fa.fa-edit.fa-lg{"ng-bind" => "' ' + title"}

    .panel-body
      %input#hidePrimaryKeyID{:type => "hidden", :value => "{{itemModel.id}}"}
      %form#editForm.form-horizontal{"ng-keyup" => "$event.keyCode === 13 && save();"}
        -# 表单
        = yield :edit_form_controls

    .panel-footer.text-center
      %a.btn.btn-primary.btn-save{:title => "保存", "ng-click" => "save()"}
        %i.fa.fa-save.fa-lg
      %a.btn.btn-default{:title => "关闭", "ng-click" => "closeEdit();"}
        %i.fa.fa-times.fa-lg
{'fraction_non_alphanumeric': 0.21508713296729529, 'fraction_numerical': 0.0033420864168059203, 'mean_word_length': 2.1718395155185464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 66, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1996326', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1478, 'n_words': 220}