|
|
@ -7,7 +7,6 @@
|
|
|
|
<th width="8%">技术体系</th>
|
|
|
|
<th width="8%">技术体系</th>
|
|
|
|
<th width="8%">等级体系</th>
|
|
|
|
<th width="8%">等级体系</th>
|
|
|
|
<th width="8%">封面</th>
|
|
|
|
<th width="8%">封面</th>
|
|
|
|
<th width="8%">二维码图片</th>
|
|
|
|
|
|
|
|
<th width="7%">创建者</th>
|
|
|
|
<th width="7%">创建者</th>
|
|
|
|
<th width="10%">单位</th>
|
|
|
|
<th width="10%">单位</th>
|
|
|
|
<th width="6%">开课人数</th>
|
|
|
|
<th width="6%">开课人数</th>
|
|
|
@ -34,13 +33,6 @@
|
|
|
|
<%= image_tag(image_exists ? Util::FileManage.source_disk_file_url(subject) : '', height: 40, class: "w-100 preview-image subject-image-#{subject.id}", style: image_exists ? '' : 'display:none') %>
|
|
|
|
<%= image_tag(image_exists ? Util::FileManage.source_disk_file_url(subject) : '', height: 40, class: "w-100 preview-image subject-image-#{subject.id}", style: image_exists ? '' : 'display:none') %>
|
|
|
|
<%= javascript_void_link image_exists ? '重新上传' : '上传图片', class: 'action upload-image-action', data: { source_id: subject.id, source_type: 'Subject', toggle: 'modal', target: '.admin-upload-file-modal' } %>
|
|
|
|
<%= javascript_void_link image_exists ? '重新上传' : '上传图片', class: 'action upload-image-action', data: { source_id: subject.id, source_type: 'Subject', toggle: 'modal', target: '.admin-upload-file-modal' } %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="subject-setting-qrcode-image">
|
|
|
|
|
|
|
|
<% codeImageExists = Util::FileManage.exists?(subject, '_qrcode') %>
|
|
|
|
|
|
|
|
<% imageUrl = codeImageExists ? Util::FileManage.source_disk_file_url(subject, '_qrcode') : '' %>
|
|
|
|
|
|
|
|
<%= image_tag(imageUrl, width: 60, height: 40, class: "preview-image subject-weapp-image-#{subject.id}", data: { toggle: 'tooltip', title: '点击预览' }, style: codeImageExists ? '' : 'display:none') %>
|
|
|
|
|
|
|
|
<%= raw '<br/>' if codeImageExists %>
|
|
|
|
|
|
|
|
<%= javascript_void_link codeImageExists ? '重新上传' : '上传图片', class: 'action upload-subject-qrcode-image-action', data: { source_id: subject.id, source_type: 'Subject', suffix: '_qrcode', toggle: 'modal', target: '.admin-upload-file-modal' } %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td><%= subject.user.real_name %></td>
|
|
|
|
<td><%= subject.user.real_name %></td>
|
|
|
|
<td><%= subject.user.school_name %></td>
|
|
|
|
<td><%= subject.user.school_name %></td>
|
|
|
|
<td><%= subject.student_count %></td>
|
|
|
|
<td><%= subject.student_count %></td>
|
|
|
|