You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
2.0 KiB
40 lines
2.0 KiB
<% define_admin_breadcrumbs do %>
|
|
<% add_admin_breadcrumb('banner设置') %>
|
|
<% end %>
|
|
|
|
<div class="box weapp-banner-setting-container">
|
|
<div class="form-group px-2 setting-item edit-laboratory-setting-container">
|
|
|
|
<div class="pl-0 py-3 row setting-item-body">
|
|
<%= form_with(url: '/admins/weapp_banners', html: { id: 'course_form', enctype: 'multipart/form-data' }) do |f| %>
|
|
<div class="col-12 col-md-4 banner-item">
|
|
<div class="banner-item-top">实践课程</div>
|
|
<div class="course banner-item-bottom <%= @course ? 'has-img' : '' %>" id="course_img_banner">
|
|
<div id="course_img">
|
|
<% if @course %>
|
|
<img class="banner-item-img course-banner-img" src="<%= Util::FileManage.exists?(@course) ? Util::FileManage.source_disk_file_url(@course) : '' %>"/>
|
|
<% end %>
|
|
</div>
|
|
<%= file_field_tag(:course_banner, accept: 'image/*', style: 'display: none', value: '') %>
|
|
<label for="course_banner" class="banner-item-upload" data-toggle="tooltip" data-title="选择图片"></label>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= form_with(url: '/admins/weapp_banners/shixun_banner', html: { id: 'shixun_form', enctype: 'multipart/form-data' }) do |f| %>
|
|
<div class="col-12 col-md-4 banner-item">
|
|
<div class="banner-item-top">实训项目</div>
|
|
<div class="shixun banner-item-bottom <%= @shixun ? 'has-img' : '' %>" id="shixun_img_banner">
|
|
<div id="shixun_img">
|
|
<% if @shixun %>
|
|
<img class="banner-item-img shixun-banner-img" src="<%= Util::FileManage.exists?(@shixun) ? Util::FileManage.source_disk_file_url(@shixun) : '' %>"/>
|
|
<% end %>
|
|
</div>
|
|
<%= file_field_tag(:shixun_banner, accept: 'image/*', style: 'display: none', value: '') %>
|
|
<label for="shixun_banner" class="banner-item-upload" data-toggle="tooltip" data-title="选择图片"></label>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div> |