Sha256: 55ad89690c4f71aa527229b5c723b68d194b90b5189e26211088295269f99e02
Contents?: true
Size: 989 Bytes
Versions: 1
Compression:
Stored size: 989 Bytes
Contents
<div style="margin-top: 20px"> <% if @plugin_upload.persisted? %> <a id="insert_files_into_ckeditor" class="btn btn-primary" style="margin-bottom: 20px">Вставить</a> <% if @plugin_upload.file.content_type.starts_with? 'image' %> <div id="file" class="img-responsive"> <%= image_tag @plugin_upload.file.url %> </div> <% else %> <div id="file"> <%= link_to @plugin_upload.file.filename, @plugin_upload.file.url %> </div> <% end %> <div id="ckeditor-name" class="hide"><%= params['CKEditor'] %></div> <% else %> <%= simple_form_for(@plugin_upload, url: main_app.plugin_uploads_path(@plugin_upload, 'CKEditor' => params['CKEditor'])) do |f| %> <%= f.input :file, label: 'Выберите файл' %> <%= f.input :remote_file_url, label: 'Или укажите ссылку на файл' %> <%= f.button :submit, 'Загрузить', class: 'btn btn-primary' %> <% end %> <% end %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ckpages-0.1.1 | app/views/ckpages/plugin_uploads/index.html.erb |