<commit_before><%= render partial: 'common/header', locals: {sub_title: '服事值日表', breadcrumb: '编辑', new_path: nil} %>

<div class="row">
  <div class="col-lg-12">

    <%= simple_form_for(@calendar) do |f| %>
        <%= f.error_notification %>
        <%= f.input :datum, as: :string, disabled: true, label: '日期'%>
        <%= f.input :parent_id, disabled: true, :collection => nested_set_options(@calendar.root, @calendar) {|i| "#{'⇢' * i.level} #{i.name}" }, label: '父目录'%>
        <%= f.input :name, label: '项目'%>
        <div class="form-actions">
          <%= f.submit "提交", data: {disable_with: '正在提交...'}, :class => "btn btn-primary" %>
        </div>
    <% end %>

  </div>
</div><!-- /.row --><commit_msg>add cancel button on calendar edit page<commit_after><%= render partial: 'common/header', locals: {sub_title: '服事值日表', breadcrumb: '编辑', new_path: nil} %>

<div class="row">
  <div class="col-lg-12">

    <%= simple_form_for(@calendar) do |f| %>
        <%= f.error_notification %>
        <%= f.input :datum, as: :string, disabled: true, label: '日期'%>
        <%= f.input :parent_id, disabled: true, :collection => nested_set_options(@calendar.root, @calendar) {|i| "#{'⇢' * i.level} #{i.name}" }, label: '父目录'%>
        <%= f.input :name, label: '项目'%>
        <div class="form-actions col-lg-9 col-md-10 col-sm-12 col-xs-12">
          <%= f.submit "提交", data: {disable_with: '正在提交...'}, :class => "btn btn-primary" %>
          <%= button_tag '取消', :class => "btn btn-danger", :type=>'button', :onclick => 'javascript:history.back()' %>
        </div>
    <% end %>

  </div>
</div><!-- /.row -->
{'fraction_non_alphanumeric': 0.23886138613861385, 'fraction_numerical': 0.006806930693069307, 'mean_word_length': 3.1568123393316196, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 41, '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': '3376848', 'n_tokens_mistral': 644, 'n_tokens_neox': 616, 'n_words': 136}