Commit 3227926a authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#639] fixed undefined variable

parent a8949f14
......@@ -15,20 +15,19 @@
MB available.
</div>
</div>
% if ($_user->is_admin ) {
<div class="row">
<div class="col-md-2">
<label class="control-label" for="timeout">Timeout</label>
</div>
<div class="col-md-2">
<input name="run_timeout" type="text"
% my $timeout = int($domain->run_timeout / 60);
% my $timeout = '';
% $timeout = int($domain->run_timeout / 60) if $domain->run_timeout;
% $timeout = '' if $timeout eq '0';
value="<%= $timeout %>" size="5">
</div>
<div class="col-md-6">The machine will shutdown after these minutes</div>
</div>
% }
<input type="submit">
<button type="reset" >Cancel</button>
</form>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment