Sha256: 48f77948d254bc48461847831cf8831210ec9344ca58727b4a8b749084874003
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
= form_for @project do |f| = f.error_messages = tabs do = tab :content do .field = f.label :name = f.text_field :name .field = f.label :body = f.text_area :body, class: 'ckeditor' = tab :seo, 'SEO' do = render 'c/admin/seo', f: f = tab :media do .reorderable = f.fields_for :images, f.object.images.sort_by(&:weight) do |f| .fields_for.columns{class: ('not_persisted' if f.object.image_cache.present?)} = f.hidden_field :image_cache = f.hidden_field :weight, class: 'order_field' .column .sort_handle= fa_icon('ellipsis-v') .column .image_preview = image_tag f.object.image.preview .column .field = f.label :alt = f.text_field :alt .column .field = f.label :_destroy, 'Delete Image?' = f.check_box :_destroy, class: '_destroy' = f.label :new_images = f.file_field :new_images, multiple: true, data: {auto_submit: :upload} -# = button_tag 'Upload', name: :commit, value: :upload = tab :publish do .field = f.label :published do = f.check_box :published %span Published .actions.form-page__actions = f.submit class: 'btn' = link_to_delete 'Delete', @project, redirection: projects_path, class: 'btn btn--secondary' unless @project.new_record?
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cd2_catton_cms-1.1.20 | app/views/c/admin/projects/_form.html.haml |
cd2_catton_cms-1.1.10 | app/views/c/admin/projects/_form.html.haml |