[UPDATE] Worker column alignments

This commit is contained in:
Sebastian Grewe 2014-03-01 21:52:00 +01:00
parent 02f4f967b1
commit aabab56027

View File

@ -30,7 +30,6 @@
<div class="panel-heading"> <div class="panel-heading">
<i class="fa fa-gears fa-fw"></i> Worker Configuration <i class="fa fa-gears fa-fw"></i> Worker Configuration
</div> </div>
<form action="{$smarty.server.SCRIPT_NAME}" method="post" role="form"> <form action="{$smarty.server.SCRIPT_NAME}" method="post" role="form">
<input type="hidden" name="page" value="{$smarty.request.page|escape}"> <input type="hidden" name="page" value="{$smarty.request.page|escape}">
<input type="hidden" name="action" value="{$smarty.request.action|escape}"> <input type="hidden" name="action" value="{$smarty.request.action|escape}">
@ -43,11 +42,11 @@
<tr> <tr>
<th>Worker Login</th> <th>Worker Login</th>
<th>Worker Password</th> <th>Worker Password</th>
<th>Active</th> <th class="text-center">Active</th>
{if $GLOBAL.config.disable_notifications != 1}<th>Monitor</th>{/if} {if $GLOBAL.config.disable_notifications != 1}<th>Monitor</th>{/if}
<th>Khash/s</th> <th class="text-right">Khash/s</th>
<th>Difficulty</th> <th class="text-right">Difficulty</th>
<th>Action</th> <th class="text-center">Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -57,24 +56,24 @@
<tr> <tr>
<td> <td>
<div class="input-group"> <div class="input-group">
<span {if $WORKERS[worker].hashrate > 0} style="color: orange"{/if} class="input-group-addon">{$username.0|escape}.</span> <span{if $WORKERS[worker].hashrate > 0} style="color: orange"{/if} class="input-group-addon">{$username.0|escape}.</span>
<input type="text" name="data[{$WORKERS[worker].id}][username]" value="{$username.1|escape}" size="10" required class="form-control"> <input type="text" name="data[{$WORKERS[worker].id}][username]" value="{$username.1|escape}" size="10" required class="form-control" />
</div> </div>
</td> </td>
<td><input class="form-control" type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td> <td><input class="form-control" type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td>
<td><i class="fa fa-{if $WORKERS[worker].hashrate > 0}check{else}times {/if}fa-fw"></i></td> <td class="text-center"><i class="fa fa-{if $WORKERS[worker].hashrate > 0}check{else}times{/if} fa-fw"></i></td>
{if $GLOBAL.config.disable_notifications != 1} {if $GLOBAL.config.disable_notifications != 1}
<td> <td>
<input type="hidden" name="data[{$WORKERS[worker].id}][monitor]" value="0" /> <input type="hidden" name="data[{$WORKERS[worker].id}][monitor]" value="0" />
<input type="checkbox" data-size="small" name="data[{$WORKERS[worker].id}][monitor]" id="data[{$WORKERS[worker].id}][monitor]" value="1" {if $WORKERS[worker].monitor}checked{/if}/> <input type="checkbox" data-size="small" name="data[{$WORKERS[worker].id}][monitor]" id="data[{$WORKERS[worker].id}][monitor]" value="1" {if $WORKERS[worker].monitor}checked{/if}/>
<script> <script>
$("[id='data[{$WORKERS[worker].id}][monitor]']").bootstrapSwitch(); $("[id='data[{$WORKERS[worker].id}][monitor]']").bootstrapSwitch();
</script> </script>
</td> </td>
{/if} {/if}
<td>{$WORKERS[worker].hashrate|number_format}</td> <td class="text-right">{$WORKERS[worker].hashrate|number_format}</td>
<td>{$WORKERS[worker].difficulty|number_format:"2"}</td> <td class="text-right">{$WORKERS[worker].difficulty|number_format:"2"}</td>
<td style="padding-right: 25px;"><a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&do=delete&id={$WORKERS[worker].id|escape}&ctoken={$CTOKEN}"><i class="fa fa-trash-o fa-fw"></i></a></td> <td class="text-center"><a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&do=delete&id={$WORKERS[worker].id|escape}&ctoken={$CTOKEN}"><i class="fa fa-trash-o fa-fw"></i></a></td>
</tr> </tr>
{/section} {/section}
{/nocache} {/nocache}
@ -83,4 +82,4 @@
</div> </div>
<div class="panel-footer"> <div class="panel-footer">
<input type="submit" class="btn btn-success" value="Update Workers"> <input type="submit" class="btn btn-success" value="Update Workers">
</di </di