Sha256: ec4e30949f213f3cf71c3bab6366f23da8a4f6e6888a24f9977a643d8f8cb526

Contents?: true

Size: 391 Bytes

Versions: 57

Compression:

Stored size: 391 Bytes

Contents

- entity_name = controller.controller_name.singularize # account
- 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) }');
- else
  crm.set_title('#{create_id}', '#{ j t(entity_name.pluralize) }');

Version data entries

57 entries across 19 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/leads/new.js.haml
fat_free_crm-0.14.2 app/views/accounts/new.js.haml
fat_free_crm-0.14.2 app/views/campaigns/new.js.haml
fat_free_crm-0.15.2 app/views/leads/new.js.haml
fat_free_crm-0.15.2 app/views/campaigns/new.js.haml
fat_free_crm-0.15.2 app/views/accounts/new.js.haml
fat_free_crm-0.16.4 app/views/accounts/new.js.haml
fat_free_crm-0.16.4 app/views/campaigns/new.js.haml
fat_free_crm-0.16.4 app/views/leads/new.js.haml
fat_free_crm-0.14.1 app/views/leads/new.js.haml
fat_free_crm-0.14.1 app/views/campaigns/new.js.haml
fat_free_crm-0.14.1 app/views/accounts/new.js.haml
fat_free_crm-0.15.1 app/views/campaigns/new.js.haml
fat_free_crm-0.15.1 app/views/leads/new.js.haml
fat_free_crm-0.15.1 app/views/accounts/new.js.haml
fat_free_crm-0.16.3 app/views/accounts/new.js.haml
fat_free_crm-0.16.3 app/views/campaigns/new.js.haml
fat_free_crm-0.16.3 app/views/leads/new.js.haml
fat_free_crm-0.16.2 app/views/accounts/new.js.haml
fat_free_crm-0.16.2 app/views/campaigns/new.js.haml