Sha256: 998fafbd25e4c77d91fdc071c954f2f82b40b472f8da8a6f93502d51c8c70890
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
#brick-form.modal.hide.fade{ :tabindex => '-1', :role => 'dialog' } .modal-header %button.close{ 'data-dismiss' => 'modal' } × %h3= t('.create_new', :brick => @brick.backend_label) = simple_form_for @brick, :as => :brick, :url => kuhsaft.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? #display-styles.btn-group.pull-right .btn.btn-small %i.icon-tint %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' } %span.caret %ul.dropdown-menu.pull-right %li = form.input :display_styles, :collection => @brick.translated_available_display_styles, :as => :check_boxes - 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kuhsaft-2.3.1 | app/views/kuhsaft/cms/bricks/_new.html.haml |
kuhsaft-2.3.0 | app/views/kuhsaft/cms/bricks/_new.html.haml |