diff options
Diffstat (limited to 'modules-available/rebootcontrol/templates/exec-enter-command.html')
-rw-r--r-- | modules-available/rebootcontrol/templates/exec-enter-command.html | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/modules-available/rebootcontrol/templates/exec-enter-command.html b/modules-available/rebootcontrol/templates/exec-enter-command.html index 8bf81605..09eb32f5 100644 --- a/modules-available/rebootcontrol/templates/exec-enter-command.html +++ b/modules-available/rebootcontrol/templates/exec-enter-command.html @@ -28,12 +28,26 @@ </tbody> </table> - <h3>{{lang_enterCommand}}</h3> + {{^preset}} + <h3>{{lang_enterCommand}}</h3> + <div> + <label for="script-text">{{lang_scriptOrCommand}}</label> + <textarea id="script-text" class="form-control" name="script" rows="10"></textarea> + </div> + {{/preset}} + + {{#preset}} + <input type="hidden" name="preset" value="{{id}}"> + <h3>{{title}}</h3> + <div class="slx-space">{{lang_command}}: <i>{{command}}</i></div> + {{#args}} + <div class="row"> + <div class="col-md-5">{{title}}</div> + <div class="col-md-7">{{{render}}}</div> + </div> + {{/args}} + {{/preset}} - <div> - <label for="script-text">{{lang_scriptOrCommand}}</label> - <textarea id="script-text" class="form-control" name="script" rows="10"></textarea> - </div> <div class="text-right slx-space"> <button type="submit" class="btn btn-primary" name="action" value="exec"> <span class="glyphicon glyphicon-play"></span> |