3
3
* Spring Signage Ltd - http://www.springsignage.com
4
* Copyright (C) 2015-16 Spring Signage Ltd
5
* (usergroup-form-add.twig)
4
* Copyright (C) 2015 Spring Signage Ltd
8
10
{% extends "form-base.twig" %}
9
11
{% import "forms.twig" as forms %}
18
20
{% trans "Save" %}, $("#userGroupAddForm").submit()
21
{% block callBack %}userGroupFormOpen{% endblock %}
23
23
{% block formHtml %}
25
25
<div class="col-md-12">
26
<form id="userGroupAddForm" class="UserGroupForm form-horizontal" method="post" action="{{ urlFor("group.add") }}">
26
<form id="userGroupAddForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("group.add") }}">
27
27
{% set title %}{% trans "Name" %}{% endset %}
28
28
{% set helpText %}{% trans "The Name for this User Group" %}{% endset %}
29
{{ forms.input("group", title, "", helpText, "", "required maxlength='50'") }}
29
{{ forms.text("group", title, "", helpText, "", "required maxlength='50'") }}
31
31
{% set title %}{% trans "Library Quota" %}{% endset %}
32
{% set helpText %}{% trans "The quota that should be applied. Enter 0 for no quota." %}{% endset %}
33
<div class="form-group">
34
<label class="col-sm-2 control-label" for="libraryQuota">{{ title }}</label>
35
<div class="col-sm-6">
36
<input class="form-control" name="libraryQuota" type="number" id="libraryQuota" />
37
<span class="help-block">{{ helpText }}</span>
39
<div class="col-sm-4">
40
<select name="libraryQuotaUnits" class="form-control">
41
<option value="kb">KiB</option>
42
<option value="mb">MiB</option>
43
<option value="gb">GiB</option>
48
{% if currentUser.userTypeId == 1 %}
49
{% set title %}{% trans "Receive System Notifications?" %}{% endset %}
50
{% set helpText %}{% trans "Should members of this Group receive system notifications?" %}{% endset %}
51
{{ forms.checkbox("isSystemNotification", title, 0, helpText) }}
53
{% set title %}{% trans "Receive Display Notifications?" %}{% endset %}
54
{% set helpText %}{% trans "Should members of this Group receive Display notifications for Displays they have permission to see?" %}{% endset %}
55
{{ forms.checkbox("isDisplayNotification", title, 0, helpText) }}
32
{% set helpText %}{% trans "The quota in Kb that should be applied. Enter 0 for no quota." %}{% endset %}
33
{{ forms.number("libraryQuota", title, 0, helpText) }}