~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to views/usergroup-form-add.twig

  • Committer: Dan Garner
  • Date: 2015-08-11 09:29:02 UTC
  • mto: This revision was merged to the branch mainline in revision 453.
  • Revision ID: git-v1:a86fb4369b7395c13367577d23b14c0ab4528c1a
Transitions fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{#
2
2
/*
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
 
5
 * (${FILE_NAME})
6
6
 */
 
7
 
7
8
#}
 
9
 
8
10
{% extends "form-base.twig" %}
9
11
{% import "forms.twig" as forms %}
10
12
 
18
20
    {% trans "Save" %}, $("#userGroupAddForm").submit()
19
21
{% endblock %}
20
22
 
21
 
{% block callBack %}userGroupFormOpen{% endblock %}
22
 
 
23
23
{% block formHtml %}
24
24
    <div class="row">
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'") }}
30
30
 
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>
38
 
                    </div>
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>
44
 
                        </select>
45
 
                    </div>
46
 
                </div>
47
 
 
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) }}
52
 
 
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) }}
56
 
                {% endif %}
 
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) }}
57
34
            </form>
58
35
        </div>
59
36
    </div>