{# /** * Copyright (C) 2021 Xibo Signage Ltd * * Xibo - Digital Signage - http://www.xibo.org.uk * * This file is part of Xibo. * * Xibo is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Xibo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Xibo. If not, see . */ #} {% extends "authed.twig" %} {% import "inline.twig" as inline %} {% block title %}{{ "Users"|trans }} | {% endblock %} {% block actionMenu %}
{% if currentUser.isSuperAdmin() or (currentUser.isGroupAdmin() and currentUser.featureEnabled("users.add")) %} {% if currentUser.getOptionValue("isAlwaysUseManualAddUserForm", 0) %} {% set addUserFormUrl = url_for("user.add.form") %} {% else %} {% set addUserFormUrl = url_for("user.onboarding.form") %} {% endif %} {% endif %}
{% endblock %} {% block pageContent %}
{% trans "Users" %}
{% set title %}{% trans "Username" %}{% endset %} {{ inline.inputNameGrid('userName', title) }} {% set title %}{% trans "User Type" %}{% endset %} {{ inline.dropdown("userTypeId", "single", title, "", [{userTypeId:null, userType:""}]|merge(userTypes), "userTypeId", "userType") }} {% set title %}{% trans "Retired" %}{% endset %} {% set values = [{id: 1, value: "Yes"}, {id: 0, value: "No"}] %} {{ inline.dropdown("retired", "single", title, 0, values, "id", "value") }} {% set title %}{% trans "First Name" %}{% endset %} {{ inline.input('firstName', title) }} {% set title %}{% trans "Last Name" %}{% endset %} {{ inline.input('lastName', title) }}
{% trans "Username" %} {% trans "Homepage" %} {% trans "Home folder" %} {% trans "Email" %} {% trans "Library Quota" %} {% trans "Last Login" %} {% trans "Logged In?" %} {% trans "Retired?" %} {% trans "Two Factor" %} {% trans "First Name" %} {% trans "Last Name" %} {% trans "Phone" %} {% trans "Ref 1" %} {% trans "Ref 2" %} {% trans "Ref 3" %} {% trans "Ref 4" %} {% trans "Ref 5" %} {% trans "Row Menu" %}
{% endblock %} {% block javaScript %} {% endblock %}