% if (reservation_request.get('reserve')) { %>
The system will be reserved for <%- moment.duration(reservation_request.get('duration'), 'seconds').format( "hh:mm:ss", {trim: false})%> at the end of the recipe<% if (reservation_request.get('when') == 'onabort') { %> if the status is Aborted<% } else if (reservation_request.get('when') == 'onfail') { %> if the status is Aborted or the result is Fail<% } else if (reservation_request.get('when') == 'onwarn') { %> if the status is Aborted or the result is Fail or Warn<% } %>.
<% } else { %>The system will not be reserved at the end of the recipe.
<% } %> <% if (can_edit) { %> <% } %>