- <option value="">{{ _T("-- select a name --") }}</option>
- {% for k, v in members.list %}
- <option value="{{ k }}"{% if member.isDuplicate() and member.parent is defined and member.parent.id == k %} selected="selected"{% endif %}>{{ v }}</option>
- {% endfor %}
- </select>
- </span>
+ {% elseif (login.isAdmin() or login.isStaff()) and not member.hasChildren() %}
+ <input id="parent_id_input" type="text" name="parent_id" value="{{ member.isDuplicate() and member.parent is defined and member.parent is not null ? member.parent.id }}" placeholder="{{ _T("Member ID") }}">
- {% if preferences.pref_mail_method != constant('Galette\\Core\\GaletteMail::METHOD_DISABLED') and (not self_adh and (login.isAdmin() or login.isStaff())) %}
+ {% if preferences.pref_mail_method != constant('Galette\\Core\\GaletteMail::METHOD_DISABLED') and (not self_adh and (login.isAdmin() or login.isStaff())) %}
<div class="ui center aligned yellow segment">
<div class="inline field">
<div class="ui toggle checkbox">
- <input type="checkbox" name="mail_confirm" id="mail_confirm" value="1" {# if isset($smarty.post.mail_confirm) and $smarty.post.mail_confirm != ""}checked="checked"{/if#}/>
+ <input type="checkbox" name="mail_confirm" id="mail_confirm" value="1"{% if preferences.pref_bool_mailowner or member.sendEMail() %} checked="checked"{% endif %}/>
<label for="mail_confirm">
- {% if member.id %}
+ {% if member.id %}
{{ _T("Notify member his account has been modified") }}
- {% else %}
+ {% else %}
{{ _T("Notify member his account has been created") }}
- {% endif %}
+ {% endif %}
</label>
<br/>
<span class="exemple">
- {% if member.id %}
+ {% if member.id %}
{{ _T("Member will be notified by email his account has been modified.") }}
- {% else %}
+ {% else %}
{{ _T("Member will receive his username and password by email, if he has an address.") }}
- {% endif %}
+ {% endif %}
</span>
</div>
</div>
</div>
- {% endif %}
+ {% endif %}
<div class="ui basic center aligned fitted segment">
+ _groups_str += '<i class="ui tag icon tooltip" title="' + '{{ _T("Member of group")|e('js') }}' + '" aria-hidden="true"></i>';
}
_groups_str += _gname;
+ _groups_str += '</span>';
+ _new_labels += 1;
});
- $('#' + _form + 'groups').html(_groups_str);
- $('#ajax_groups_list').modal('hide');
+ $('#groups_field .labels').append(_groups_str);
+ var _modified = '<div class="ui yellow tiny message with-transition">{{ _T("Items in this list have been modified. Don't forget to save your changes.")|e('js') }}</div>';