Sha256: 33ee5d600c140169cdaae504d13028a1139f45fceaddc184d32de9aa20772931

Contents?: true

Size: 1.4 KB

Versions: 2

Compression:

Stored size: 1.4 KB

Contents

<section class="content-header">
  <h1>
    字典管理
  </h1>
</section>
<!-- Main content -->
<section class="content">
  <div class="row">
    <div class="col-xs-12">
      <div class="box">
        <div class="box-header">
          <h3 class="box-title">字典管理</h3>
        </div>
        <!-- /.box-header -->
        <div class="box-body table-responsive no-padding">
          <%= link_to '添加字典', new_dictionary_path(resource_type: params[:resource_type], resource_id: params[:resource_id]), class: "btn" %>
          <table class="table table-hover">
            <tr>
              <th>资源类型</th>
              <th>资源id</th>
              <th>键</th>
              <th>值</th>
              <th colspan="2"></th>
            </tr>
            <% @dictionaries.each do |dictionary| %>
                <tr>
                  <td><%= dictionary.resource_type %></td>
                  <td><%= dictionary.resource_id %></td>
                  <td><%= dictionary.key %></td>
                  <td><%= dictionary.value %></td>
                  <td><%= link_to '修改', edit_dictionary_path(dictionary) %></td>
                  <td><%= link_to '删除', dictionary, method: :delete, data: {confirm: '你确定要删除么?'} %></td>
                </tr>
            <% end %>
          </table>
        </div>
        <!-- /.box-body -->
      </div>
      <!-- /.box -->
    </div>
  </div>
</section>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
treport-0.2.0 app/views/dictionaries/index.html.erb
treport-0.1.0 app/views/dictionaries/index.html.erb