Sha256: f8acf7f37b451c062ce2195bbcc8ff1c56120be5a5f238c84f66a681c9763882

Contents?: true

Size: 541 Bytes

Versions: 26

Compression:

Stored size: 541 Bytes

Contents

- entity_name = controller.controller_name.singularize
- create_id = "create_#{entity_name}"

crm.flick('empty', 'toggle');
crm.flip_form('#{create_id}');

- unless params[:cancel].true?
  $('##{create_id}').html('#{ j render(partial: "new") }');
  crm.set_title('#{create_id}', '#{ j t(create_id) }');
  -# this function call is the only difference to normal new.js.haml
  crm.create_or_select_account(#{ request.referer =~ /\/accounts\// || @account.id.blank? });
- else
  crm.set_title('#{create_id}', '#{ j t(entity_name.pluralize) }');

Version data entries

26 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/opportunities/new.js.haml
fat_free_crm-0.22.1 app/views/contacts/new.js.haml
fat_free_crm-0.22.0 app/views/contacts/new.js.haml
fat_free_crm-0.22.0 app/views/opportunities/new.js.haml
fat_free_crm-0.21.0 app/views/contacts/new.js.haml
fat_free_crm-0.21.0 app/views/opportunities/new.js.haml
fat_free_crm-0.20.1 app/views/opportunities/new.js.haml
fat_free_crm-0.20.1 app/views/contacts/new.js.haml
fat_free_crm-0.20.0 app/views/opportunities/new.js.haml
fat_free_crm-0.20.0 app/views/contacts/new.js.haml
fat_free_crm-0.19.2 app/views/contacts/new.js.haml
fat_free_crm-0.19.2 app/views/opportunities/new.js.haml
fat_free_crm-0.19.0 app/views/opportunities/new.js.haml
fat_free_crm-0.19.0 app/views/contacts/new.js.haml
fat_free_crm-0.18.2 app/views/contacts/new.js.haml
fat_free_crm-0.18.2 app/views/opportunities/new.js.haml
fat_free_crm-0.17.3 app/views/contacts/new.js.haml
fat_free_crm-0.17.3 app/views/opportunities/new.js.haml
fat_free_crm-0.18.1 app/views/contacts/new.js.haml
fat_free_crm-0.18.1 app/views/opportunities/new.js.haml