headerpane.hbs customize for account module.

Hello

How can i  modify headerpane.hbs for acccount module.

i tried to add check boxes in Headerpane part of the account module.

i tried custom/modules/Accounts/clients/base/views/headerpane/headerpane.hbs

<div class="headerpane">

    <h1>

        {{#each meta.fields}}

            <span class="record-cell" data-type="{{type}}" data-name="{{name}}">

                <span class="table-cell-wrapper">

                    <span class="index" data-fieldname="{{name}}" data-index="">

                        {{field ../this model=../this.model}}

                    </span>

                </span>

            </span>

        {{/each}}

        <div class="btn-toolbar pull-right dropdown">

            {{#each meta.buttons}}

                {{field ../this}}

            {{/each}}

        </div>

    </h1>

   

</div>

<table width="100%" cellspacing="0" cellpadding="0" border="0">

    <form>

    <tr>

    <td colspan=5> 

            <fieldset style="text-align:left;border-bottom: 1px solid #98C6EA;border:1px solid #98C6EA;width: 50%;">

               <table width="100%" cellspacing="0" cellpadding="0" border="0" >

                <tr><td >                  

                     Name  

                        <input type="checkbox" name="account_name" id="account_name" {php} if($account_name == "on"){echo "CHECKED";}{/php}/>                      

                        </td></tr>

                     </form>

    </table>

but it is not working.

Parents Reply
  • Hi Bhavin,

    It's working for me on SugarCRM 7.7.0.0 ENT. Which Sugar version are you using?

    I'm not sure what you ask. Do you want to change only for Accounts module or all modules?

    If you want to change for all modules, all you need to do is clone headerpane.hbs file from

    ./clients/base/views/record/headerpane.hbs

    to

    custom/clients/base/views/record/headerpane.hbs

    I wanted to make sure that you are getting the headerpane.hbs from record folder. (I highlighted)

    Not from headerpane folder under ./clients/base/views/

    [All changes made on SugarCRM 7.7.0.0 ENT]

    Best Regards

    Tevfik Tümer

    Developer Support Engineer

Children