iredadmin-ose / templates / default / macros / general.html

Diff from to


 {%- endmacro %}
+{% macro display_mark_user_as_admin(is_domain_admin=false, is_global_admin=false) %}
+{# possible value: 0, 1 (SQL), or true, yes, false, no (LDAP) #}
+{% if session.get('domainGlobalAdmin') is sameas true %}
+<div class="form-field clear">
+    <h4 class="size-250 fl-space">{{ _('Mark this user as') }}</h4>
+    <div class="form-checkbox-item clear">
+        <span class="clean-padding bt-space20"><input class="checkbox" name="domainGlobalAdmin" value="global" type="checkbox" {% if is_global_admin in [1, true, 'yes'] %}checked{%endif%} /> {{ _('Global admin') }}</span>
+    </div>
+{% endif %}
+{%- endmacro %}
 {# Used to display domainMaxXXXNumber #}
 {% macro display_number_of_account_limited(value, hide_unlimited=true, hide_slash=false) -%}
     {% if value == '0' or value == 0 or value == 'None' %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.