[Rt-commit] r14104 - in rt/3.8/trunk: .
elacour at bestpractical.com
elacour at bestpractical.com
Tue Jul 15 04:06:05 EDT 2008
Author: elacour
Date: Tue Jul 15 04:06:04 2008
New Revision: 14104
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Admin/Global/Template.html
Log:
r10064 at datura: manu | 2008-07-15 10:05:50 +0200
Change submit Label to be "Modify" when editing an existing template.
Modified: rt/3.8/trunk/share/html/Admin/Global/Template.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Global/Template.html (original)
+++ rt/3.8/trunk/share/html/Admin/Global/Template.html Tue Jul 15 04:06:04 2008
@@ -64,14 +64,14 @@
<input type="hidden" class="hidden" name="Queue" value="<%$Queue%>" />
<& /Admin/Elements/ModifyTemplate, Name => $TemplateObj->Name, Description =>
$TemplateObj->Description, Content => $TemplateObj->Content &>
-<& /Elements/Submit, Label => loc('Create'), Reset => 1 &>
+<& /Elements/Submit, Label => $SubmitLabel, Reset => 1 &>
</form>
<%INIT>
my $TemplateObj = new RT::Template($session{'CurrentUser'});
-my ($title, @results, $current_subtab);
+my ($title, @results, $current_subtab, $SubmitLabel);
my $subtabs = {
A => { title => loc('Select template'),
@@ -86,6 +86,7 @@
if ($Create) {
$title = loc("Create a template");
$current_subtab = "Admin/Global/Template.html?Create=1&Queue=0";
+ $SubmitLabel = loc('Create');
}
else {
@@ -98,7 +99,7 @@
$TemplateObj->Load($Template) || Abort(loc('No Template'));
}
$title = loc('Modify template [_1]', loc($TemplateObj->Name()));
-
+ $SubmitLabel = loc('Update');
}
if ($TemplateObj->Id()) {
More information about the Rt-commit
mailing list