diff options
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 12 | ||||
-rw-r--r-- | template/en/default/global/userselect.html.tmpl | 5 |
2 files changed, 12 insertions, 5 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index aa4a43286..5ea789a2f 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -436,10 +436,14 @@ You tried to change the <strong>[% field_descs.$field FILTER html %]</strong> field from <em>[% oldvalue FILTER html %]</em> to - <em>[% newvalue FILTER html %]</em>, - but only the owner or submitter of the [% terms.bug %], or a - sufficiently empowered user, may change that field. - + <em>[% newvalue FILTER html %]</em>, but only + [% IF privs < 3 %] + the owner + [% IF privs < 2 %] or reporter [% END %] + of the [% terms.bug %], or + [% END %] + a sufficiently empowered user may change that field. + [% ELSIF error == "illegal_changed_in_last_x_days" %] [% title = "Your Search Makes No Sense" %] The <em>Changed in last ___ days</em> field must be a simple number. diff --git a/template/en/default/global/userselect.html.tmpl b/template/en/default/global/userselect.html.tmpl index 2162e2601..91692fd21 100644 --- a/template/en/default/global/userselect.html.tmpl +++ b/template/en/default/global/userselect.html.tmpl @@ -20,6 +20,7 @@ # name: mandatory; field name # value: optional; default field value/selection # onchange: optional; onchange attribute value + # disabled: optional; if true, the field is disabled # accesskey: optional, input only; accesskey attribute value # size: optional, input only; size attribute value # emptyok: optional, select only; if true, prepend menu option to start of select @@ -30,6 +31,7 @@ [% IF Param("usemenuforusers") %] <select name="[% name FILTER html %]" [% IF onchange %] onchange="[% onchange FILTER html %]" [% END %] + [% IF disabled %] disabled="[% disabled FILTER html %]" [% END %] [% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %] [% IF multiple %] multiple="multiple" size="[% multiple FILTER html %]" [% END %] > @@ -48,9 +50,10 @@ <input name="[% name FILTER html %]" value="[% value FILTER html %]" + [% IF onchange %] onchange="[% onchange FILTER html %]" [% END %] + [% IF disabled %] disabled="[% disabled FILTER html %]" [% END %] [% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %] [% IF size %] size="[% size FILTER html %]" [% END %] - [% IF onchange %] onchange="[% onchange FILTER html %]" [% END %] > [% END %] |