plugins/020-shares/app/views/shares/_form.html.slim
- @share = @share || Share.new
= form_for @share, :remote => true, :html => { :class => 'share create-form form-horizontal p-1 mt-2 bg-white', :id => 'new-share-form' } do |f|
fieldset
legend #{t('create_a_new_share')}
.create-inside
/ = render :partial => 'shared/errors', :object => @share
.control-group.form-group
.controls = f.text_field :name, :size => 16, :maxlength => 20, :class=>'form-control', :placeholder => "Name"
.control-group.form-group
.controls
= f.check_box :visible, { :checked => true,:class => 'right-margin-10' }
= label(:visible, t('visible'))
.control-group.form-group
.controls
= f.check_box :rdonly, {:class => 'right-margin-10'}
= label(:rdonly, t('read_only'))
.control-group.create-btn.form-group
.controls
= spinner
= button_tag t('create'), :type => 'submit', :id => 'share_create_button', :class => 'btnn btn-create btn-info btn btn-sm'
= link_to t('cancel'), '#', :class => 'close-area cancel-link cancel-btn-style btn-sm left-margin-10', :data => {:related => '#new-share-to-step1'}