Admidio/admidio

View on GitHub
adm_themes/simple/templates/preferences/preferences.profile.tpl

Summary

Maintainability
Test Coverage
<form {foreach $attributes as $attribute}
        {$attribute@key}="{$attribute}"
    {/foreach}>

    {include 'sys-template-parts/form.input.tpl' data=$elements['admidio-csrf-token']}
    {include 'sys-template-parts/form.custom-content.tpl' data=$elements['editProfileFields']}
    {include 'sys-template-parts/form.checkbox.tpl' data=$elements['profile_log_edit_fields']}
    {include 'sys-template-parts/form.checkbox.tpl' data=$elements['profile_show_map_link']}
    {include 'sys-template-parts/form.checkbox.tpl' data=$elements['profile_show_roles']}
    {include 'sys-template-parts/form.checkbox.tpl' data=$elements['profile_show_former_roles']}
    {if {array_key_exists array=$elements key='profile_show_extern_roles'}}
        {include 'sys-template-parts/form.checkbox.tpl' data=$elements['profile_show_extern_roles']}
    {/if}
    {include 'sys-template-parts/form.select.tpl' data=$elements['profile_photo_storage']}
    {include 'sys-template-parts/form.button.tpl' data=$elements['btn_save_profile']}
    <div class="form-alert" style="display: none;">&nbsp;</div>
</form>