Sha256: 34a3e718988b0773361e1c8975bc4014e69edfda6b8d1001482f282baedd12c0
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
.modal-header %button.close{ 'data-dismiss' => 'modal' } × %h3= t('.create_new', :brick => @brick.backend_label) = simple_form_for @brick, :as => :brick, :url => qbrick.cms_bricks_path, :method => :post, :remote => true, :html => { :id => nil }, :wrapper => :bootstrap do |form| .modal-body = form.hidden_field :position, :class => 'position-field' = form.hidden_field :type = form.hidden_field :brick_list_id = form.hidden_field :brick_list_type - brick_content = render(@brick.to_edit_partial_path, :brick => @brick, :form => form) - unless @brick.available_display_styles.empty? .dropdown--display-styles.js-stop-propagation.btn-group.pull-right %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' } %i.icon-tint %span.caret %ul.dropdown-menu.pull-right %li = form.input :display_styles, :collection => @brick.translated_available_display_styles, :as => :check_boxes - if brick.class.include? Qbrick::Gridded .btn-group.pull-right %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' } %i.icon-th %span.caret %ul.dropdown-menu.pull-right %li = form.input :col_count, collection: brick.class.available_grid_sizes, as: :radio_buttons, label_method: lambda { |col_count| t("qbrick.cms.bricks.columns", count: col_count) } - if brick_content.present? = brick_content - else = t('.no_content') .modal-footer .clearfix .pull-right = form.button :submit, t('.save'), :class => 'btn-success'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qbrick-2.7.1 | app/views/qbrick/cms/bricks/_new.html.haml |