Files
GS13NG/tgui/src/interfaces/airlock_electronics.ract
T

40 lines
904 B
Plaintext

<ui-display>
<ui-section>
<ui-button icon='{{data.oneAccess ? "unlock" : "lock"}}' action='one_access'>{{data.oneAccess ? "One" : "All"}} Required</ui-button>
<ui-button icon='refresh' action='clear'>Clear</ui-button>
</ui-section>
<hr/>
<table>
<thead>
<tr>{{#each data.regions}}
<th><span class='highlight bold'>{{name}}</span></th>
{{/each}}</tr>
</thead>
<tbody>
<tr>{{#each data.regions}}
<td>{{#each accesses}}
<ui-button icon='{{req ? "check-square-o" : "square-o"}}' style='{{req ? "selected" : null}}'
action='set' params='{"access": "{{id}}"}'>{{name}}</ui-button>
<br/>
{{/each}}</td>
{{/each}}</tr>
</tbody>
</table>
</ui-display>
<style>
table {
width: 100%;
border-spacing: 2px;
}
th {
text-align: left;
}
td {
vertical-align: top;
}
td .button {
margin-top: 4px
}
</style>