forked from civicrm/civicrm-core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clear radio not showing for non-admin user
- Loading branch information
1 parent
34084de
commit b38144c
Showing
3 changed files
with
25 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="crm-section editrow_{$profileFieldName}-section form-item" id="editrow-{$rowIdentifier}"> | ||
<div class="label option-label">{$formElement.label}</div> | ||
<div class="content"> | ||
<div class="crm-multiple-checkbox-radio-options crm-options-per-line" style="--crm-opts-per-line:{$field.options_per_line};"> | ||
{foreach name=outer key=key item=item from=$formElement} | ||
{if is_array($item) && array_key_exists('html', $item)} | ||
<div class="crm-option-label-pair" >{$formElement.$key.html}</div> | ||
{/if} | ||
{/foreach} | ||
</div> | ||
{* Include the edit options list for admins *} | ||
{if $formElement.html|strstr:"crm-option-edit-link"} | ||
{$formElement.html|regex_replace:"@^.*(<a href=.*? class=.crm-option-edit-link.*?</a>)$@":"$1"} | ||
{else} | ||
{$formElement.html} | ||
{/if} | ||
</div> | ||
<div class="clear"></div> | ||
</div> | ||
<div class="clear"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters