CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Save button at the top of profile as well as bottom
Pages: [1]

Author Topic: Save button at the top of profile as well as bottom  (Read 1740 times)

avanoers

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
Save button at the top of profile as well as bottom
March 04, 2010, 10:57:09 am
Hello,

the profile to edit a contact that I've created works wonderful (thanks to the help received earlier on this forum http://forum.civicrm.org/index.php/topic,12512.0.html).

Due to the unique requirements of this orginization the profile is long and I was hoping there is a way i can add a save and cancel button to the top of the page just above the profile as well as keep the save and cancel button at the button of the profile.

Thank you for your help and insights.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Save button at the top of profile as well as bottom
March 04, 2010, 05:32:45 pm
You'll need to create custom version of the profile forms template = templates/CRM/Profile/Form/Dynamic.tpl, and replicate this 'button' code at the top of the page markup:

Code: [Select]
{if ($action eq 1 and $mode eq 4 ) or $action eq 2 }
<div class="crm-submit-buttons">
     {$form.buttons.html}{if $isDuplicate}&nbsp;&nbsp;{$form._qf_Edit_upload_duplicate.html}{/if}
</div>
{/if}

General info on customizing templates at:
http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens
Protect your investment in CiviCRM by  becoming a Member!

avanoers

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
Re: Save button at the top of profile as well as bottom
March 05, 2010, 08:32:35 am
Thank you for that snippet and your help!
It works perfectly.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Save button at the top of profile as well as bottom

This forum was archived on 2017-11-26.