summaryrefslogtreecommitdiffstats
path: root/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/PermissionRuleEditor.ui.xml
blob: 26fc2297082ded520ab55ea7d3ea71416d0f95a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2011 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ui:UiBinder
  xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'
  xmlns:e='urn:import:com.google.gwt.editor.ui.client'
  xmlns:my='urn:import:com.google.gerrit.client.admin'
  xmlns:q='urn:import:com.google.gerrit.client.ui'
  ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
  ui:generateKeys='com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator'
  ui:generateLocales='default,en'
  >
<ui:with field='res' type='com.google.gerrit.client.admin.AdminResources'/>
<ui:style>
  @eval selectionColor com.google.gerrit.client.Gerrit.getTheme().selectionColor;

  .panel {
    position: relative;
    height: 1.5em;
  }

  .panel:hover {
    background-color: selectionColor;
  }

  .normal {
    padding-left: 10px;
    white-space: nowrap;
    height: 100%;
  }

  .deleted {
    height: 100%;
  }

  .actionList, .minmax {
    font-size: 80%;
  }

  .forcePush {
    position: absolute;
    top: 0;
    right: 36px;
    width: 7em;
    font-size: 80%;
  }

  .deleteIcon {
    position: absolute;
    top: 2px;
    right: 11px;
  }

  .groupName {
    display: inline;
  }
</ui:style>

<g:HTMLPanel styleName='{style.panel}'>
<div ui:field='normal' class='{style.normal}'>
  <g:ValueListBox ui:field='action' styleName='{style.actionList}'/>
  <span ui:field='rangeEditor'>
    <g:Widget ui:field='min' styleName='{style.minmax}'/>
    <g:Widget ui:field='max' styleName='{style.minmax}'/>
  </span>

  <q:Hyperlink ui:field='groupNameLink' styleName='{style.groupName}'/>
  <span ui:field='groupNameSpan' styleName='{style.groupName}'/>
  <g:CheckBox ui:field='force' addStyleNames='{style.forcePush}'/>
  <g:Anchor
      ui:field='deleteRule'
      href='javascript:void'
      styleName='{style.deleteIcon} {res.css.deleteIcon}'
      title='Delete this rule'>
    <ui:attribute name='title'/>
  </g:Anchor>
</div>

<div
    ui:field='deleted'
    class='{res.css.deleted} {style.deleted}'
    style='display: none'>
  <ui:msg>Group <span ui:field='deletedGroupName'/> was deleted</ui:msg>
  <g:Anchor
      ui:field='undoDelete'
      href='javascript:void'
      styleName='{style.deleteIcon} {res.css.undoIcon}'
      title='Undo deletion'>
    <ui:attribute name='title'/>
  </g:Anchor>
</div>
</g:HTMLPanel>
</ui:UiBinder>