Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
47e67526
Commit
47e67526
authored
Nov 21, 2010
by
Guy Pyrzak
Committed by
Frédéric Buclin
Nov 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 386600: Implement auto-completion for the requestee field
r/a=LpSolit
parent
a7a37db9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
29 deletions
+26
-29
create.html.tmpl
template/en/default/attachment/create.html.tmpl
+2
-1
edit.html.tmpl
template/en/default/attachment/edit.html.tmpl
+2
-1
list.html.tmpl
template/en/default/flag/list.html.tmpl
+22
-27
No files found.
template/en/default/attachment/create.html.tmpl
View file @
47e67526
...
...
@@ -34,7 +34,8 @@
header = header
subheader = subheader
style_urls = [ 'skins/standard/attachment.css' ]
javascript_urls = [ "js/attachment.js", "js/util.js", "js/TUI.js" ]
yui = [ 'autocomplete' ]
javascript_urls = [ "js/attachment.js", 'js/field.js', "js/util.js", "js/TUI.js" ]
doc_section = "attachments.html"
%]
...
...
template/en/default/attachment/edit.html.tmpl
View file @
47e67526
...
...
@@ -37,8 +37,9 @@
header = header
subheader = subheader
doc_section = "attachments.html"
javascript_urls = ['js/attachment.js']
javascript_urls = ['js/attachment.js'
, 'js/field.js'
]
style_urls = ['skins/standard/attachment.css']
yui = [ 'autocomplete' ]
bodyclasses = "no_javascript"
%]
...
...
template/en/default/flag/list.html.tmpl
View file @
47e67526
...
...
@@ -88,6 +88,7 @@
<td>
[% IF (type.is_active && type.is_requestable && type.is_requesteeble) || flag.requestee %]
<span style="white-space: nowrap;">
[% SET flag_custom_list = [] %]
[% IF Param('usemenuforusers') %]
[% flag_custom_list = flag.type.grant_list %]
[% IF !(type.is_active && type.is_requestable && type.is_requesteeble) %]
...
...
@@ -96,22 +97,16 @@
nothing else. %]
[% flag_custom_list = [flag.requestee] %]
[% END %]
[% INCLUDE global/userselect.html.tmpl
name => "requestee-$flag.id"
id => "requestee-$flag.id"
value => flag.requestee.login
multiple => 0
emptyok => 1
custom_userlist => flag_custom_list
%]
[% ELSE %]
(<input type="text" class="requestee" maxlength="255"
id="requestee-[% flag.id %]"
name="requestee-[% flag.id %]"
[% IF flag.status == "?" && flag.requestee %]
value="[% flag.requestee.login FILTER html %]"
[% END %]>)
[% END %]
[% INCLUDE global/userselect.html.tmpl
name => "requestee-$flag.id"
id => "requestee-$flag.id"
value => flag.requestee.login
multiple => 0
emptyok => 1
classes => ["requestee"]
custom_userlist => flag_custom_list
%]
</span>
[% END %]
</td>
...
...
@@ -199,20 +194,20 @@
<td>
[% IF type.is_requestable && type.is_requesteeble %]
<span style="white-space: nowrap;">
[% SET grant_list = [] %]
[% IF Param('usemenuforusers') %]
[% INCLUDE global/userselect.html.tmpl
name => "requestee_type-$type.id"
id => "requestee_type-$type.id"
multiple => type.is_multiplicable * 3
emptyok => !type.is_multiplicable
value => ""
custom_userlist => type.grant_list
%]
[% ELSE %]
(<input type="text" class="requestee" maxlength="255"
id="requestee_type-[% type.id %]"
name="requestee_type-[% type.id %]">)
[% grant_list = type.grant_list %]
[% END %]
[% INCLUDE global/userselect.html.tmpl
name => "requestee_type-$type.id"
id => "requestee_type-$type.id"
multiple => type.is_multiplicable * 3
emptyok => !type.is_multiplicable
value => ""
custom_userlist => grant_list
classes => ["requestee"]
%]
</span>
[% END %]
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment