Sha256: a9dd541ba93d6a45801ecc49ab9f0d93bb7d9034b6fa402623b57cb5b4b1894d

Contents?: true

Size: 544 Bytes

Versions: 38

Compression:

Stored size: 544 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

38 entries across 19 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/opportunities/new.js.haml
fat_free_crm-0.14.2 app/views/contacts/new.js.haml
fat_free_crm-0.15.2 app/views/contacts/new.js.haml
fat_free_crm-0.15.2 app/views/opportunities/new.js.haml
fat_free_crm-0.16.4 app/views/opportunities/new.js.haml
fat_free_crm-0.16.4 app/views/contacts/new.js.haml
fat_free_crm-0.14.1 app/views/opportunities/new.js.haml
fat_free_crm-0.14.1 app/views/contacts/new.js.haml
fat_free_crm-0.15.1 app/views/contacts/new.js.haml
fat_free_crm-0.15.1 app/views/opportunities/new.js.haml
fat_free_crm-0.16.3 app/views/contacts/new.js.haml
fat_free_crm-0.16.3 app/views/opportunities/new.js.haml
fat_free_crm-0.16.2 app/views/opportunities/new.js.haml
fat_free_crm-0.16.2 app/views/contacts/new.js.haml
fat_free_crm-0.16.1 app/views/contacts/new.js.haml
fat_free_crm-0.16.1 app/views/opportunities/new.js.haml
fat_free_crm-0.16.0 app/views/contacts/new.js.haml
fat_free_crm-0.16.0 app/views/opportunities/new.js.haml
fat_free_crm-0.15.0 app/views/contacts/new.js.haml
fat_free_crm-0.15.0 app/views/opportunities/new.js.haml