Sha256: 520cc13c2f3cb9df981f598c5f11e40ce64d67588b712d574366f74e527db720
Contents?: true
Size: 1.93 KB
Versions: 9
Compression:
Stored size: 1.93 KB
Contents
:css #drop_zone { height: 100%; width: 100%; border-radius: 10px; padding: 5px; } = simple_form_for(resource, html: {class: 'col sl12', multipart: true}, data: { form_type:'record', form_id: 'accountsform'} ) do |f| / - if parent? / = render @parent = f.error_notification .form-inputs .row = f.input :name, class: :validate, disabled: @disabled, autofocus: true -# -# .row -# = link_to 'Her kan du komprimere logo filen', 'http://www.base64css.com/', target: "_blank" .row = f.input :default_url, class: :validate, disabled: @disabled .row = f.input :free_users, class: :validate, disabled: @disabled .row .input-field.col.s6 %label{ style: "margin-top: -20px"}= t('.account_active') .switch %label = t(:passive) =f.check_box :active, disabled: @disabled %span.lever = t(:active) .input-field.col.s6 %label{ style: "margin-top: -20px"}= t('.account_chargeable') .switch %label = t(:false) =f.check_box :chargeable, disabled: @disabled %span.lever = t(:true) %br %br .row .input-field.col.s12 %label= t('.last_charged_at') %input{ type: 'date', name: 'account[last_charged_at]', class: 'datepicker', disabled: @disabled} .row .col.sl12{ style: "margin-bottom: 30px"} %hr = react_component 'DropZone', { url: (account_photos_url(resource) rescue ''), classes: 'files', id: 'drop_zone', entity: 'account' } if params[:action]!='show' :coffeescript $ -> window.build_drop_zone_photo = (file,entity) => [ '<input type="hidden" name="',entity,'[ps][',file.id,'][id]" id="photos_',file.id,'_id" class="files_uploaded" />', '<input type="text" name="',entity,'[ps][',file.id,'][purpose]" id="photos_',file.id,'_purpose" class="files_uploaded" />'].join('')
Version data entries
9 entries across 9 versions & 1 rubygems