diff options
author | Jesse Vincent <jesse@keyboard.io> | 2022-08-09 03:58:29 +0300 |
---|---|---|
committer | Jim Brandt <jbrandt@bestpractical.com> | 2022-09-02 22:03:13 +0300 |
commit | 3f486ee61daab32c7c09fe4f23bfcbaea79042c9 (patch) | |
tree | f1a21238b46aef3e0cbde89f01f7f75964851d0a | |
parent | 54a37db6f6a17044879788f49f122cb032abfe34 (diff) |
Port SelfService to LabeledValue
-rw-r--r-- | share/html/SelfService/Elements/RequestUpdate | 22 | ||||
-rw-r--r-- | share/html/SelfService/Prefs.html | 22 |
2 files changed, 12 insertions, 32 deletions
diff --git a/share/html/SelfService/Elements/RequestUpdate b/share/html/SelfService/Elements/RequestUpdate index fbb1972263..4fc5d347ac 100644 --- a/share/html/SelfService/Elements/RequestUpdate +++ b/share/html/SelfService/Elements/RequestUpdate @@ -53,23 +53,13 @@ action="<%RT->Config->Get('WebPath')%><% $r->path_info %>" % $m->callback(CallbackName => 'InFormElement'); > <input type="hidden" class="hidden" name="QuickCreate" value="1" /> - <div class="form-row"> - <div class="label col-3"> - <&|/l&>Subject</&>: - </div> - <div class="value col-9"> - <input class="form-control" type="text" size="50" name="Subject" value="<% $args->{Subject} || loc('Please update my user information') %>" /> - </div> - </div> + <&| /Elements/LabeledValue, Label => loc("Subject") &> + <input class="form-control" type="text" size="50" name="Subject" value="<% $args->{Subject} || loc('Please update my user information') %>" /> + </&> - <div class="form-row"> - <div class="label col-3"> - <&|/l&>Description</&>: - </div> - <div class="value col-9"> - <textarea class="form-control" name="Content" cols="50" rows="3"><% $args->{Content} || ''%></textarea></td> - </div> - </div> + <&| /Elements/LabeledValue, Label => loc("Description") &> + <textarea class="form-control" name="Content" cols="50" rows="3"><% $args->{Content} || ''%></textarea></td> + </&> <div class="form-row"> <div class="col-12"> diff --git a/share/html/SelfService/Prefs.html b/share/html/SelfService/Prefs.html index 128d534847..48e0994f49 100644 --- a/share/html/SelfService/Prefs.html +++ b/share/html/SelfService/Prefs.html @@ -57,23 +57,13 @@ <div class="col-6"> <&| /Widgets/TitleBox, title => loc('Locale'), id => "user-prefs-identity" &> - <div class="form-row"> - <div class="label col-3"> - <&|/l&>Language</&>: - </div> - <div class="value col-9"> + <&| /Elements/LabeledValue, Label => loc("Language") &> <& /Elements/SelectLang, Name => 'Lang', Default => $user->Lang &> - </div> - </div> - - <div class="form-row"> - <div class="label col-3"> - <&|/l&>Timezone</&>: - </div> - <div class="value col-9"> - <& /Elements/SelectTimezone, Name => 'Timezone', Default => $user->Timezone &> - </div> - </div> + </&> + + <&| /Elements/LabeledValue, Label => loc("Timezone") &> + <& /Elements/SelectTimezone, Name => 'Timezone', Default => $user->Timezone &> + </&> </&> </div> |