Commit 432ebc17 authored by Ted Trask's avatar Ted Trask

Added rc controller to alpine-baselayout and rc functionality to processinfo...

Added rc controller to alpine-baselayout and rc functionality to processinfo library.  Changed status Enabled/Disabled to Running/Stopped. Added links to status pages to install package and schedule autostart.

git-svn-id: svn://svn.alpinelinux.org/acf/fetchmail/trunk@1552 ab2d0c66-481e-0410-8bed-d214d4d58bed
parent b6e10cfd
......@@ -5,17 +5,17 @@
<form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>" method="POST">
<DT>Program control-panel</DT>
<DD>
<input class="submit" type="submit" name="action" value="Start" <% if data.value.status.value== "Enabled" then io.write("disabled") end %>>
<input class="submit" type="submit" name="action" value="Stop" <% if data.value.status.value== "Disabled" then io.write("disabled") end %>>
<input class="submit" type="submit" name="action" value="Restart" <% if data.value.status.value== "Disabled" then io.write("disabled") end %>>
<input class="submit" type="submit" name="action" value="Start" <% if data.value.status.value== "Running" then io.write("disabled") end %>>
<input class="submit" type="submit" name="action" value="Stop" <% if data.value.status.value== "Stopped" then io.write("disabled") end %>>
<input class="submit" type="submit" name="action" value="Restart" <% if data.value.status.value== "Stopped" then io.write("disabled") end %>>
</DD>
<DT>Run once</DT>
<DD>
<input class="submit" type="submit" name="action" value="Run" <% if data.value.status.value== "Enabled" then io.write("disabled") end %>>
<input class="submit" type="submit" name="action" value="Run" <% if data.value.status.value== "Running" then io.write("disabled") end %>>
</DD>
<DT>Test</DT>
<DD>
<input class="submit" type="submit" name="action" value="Test" <% if data.value.status.value== "Enabled" then io.write("disabled") end %>>
<input class="submit" type="submit" name="action" value="Test" <% if data.value.status.value== "Running" then io.write("disabled") end %>>
</DD>
</form>
......
Markdown is supported
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