+ table.borders {
+ width:95%;
+ margin-left:2.4%;
+ margin-right:2.4%;
+ }
+
+ table.borders, table.borders tr {
+ border: 1px solid White;
+ }
+
+ td.law_index {
+ width: 50px;
+ }
+
+ td.state {
+ width: 63px;
+ text-align:center;
+ }
+
+ td.add {
+ width: 36px;
+ }
+
+ td.edit {
+ width: 36px;
+ text-align:center;
+ }
+
+ td.delete {
+ width: 53px;
+ text-align:center;
+ }
+
+ td.law_type {
+ width: 65px;
+ }
+
+ td.position {
+ width: 37px;
+ }
+
+
+{{if data.isSlaved != null && data.isMalf}}
+ This unit is slaved to {{:data.isSlaved}}. Any law changes will be reset on sync.
+{{/if}}
+
+{{if data.isMalf}}
+
+
+ {{:helper.link('Law Management', null, {'set_view' : 0}, data.view == 0 ? 'selected' : null)}}
+ {{:helper.link('Law Sets', null, {'set_view' : 1}, data.view == 1 ? 'selected' : null)}}
+
+
+{{/if}}
+
+{{if data.view == 0}}
+ {{if data.has_ion_laws}}
+
+ | Index | Law | State |
+ {{if data.isMalf}}
+ Edit |
+ Delete |
+ {{/if}}
+
+
+
+ {{:data.ion_law_nr}} Laws:
+
+ {{for data.ion_laws}}
+
+ | {{:value.index}}. |
+ {{:value.law}} |
+ {{:helper.link('Yes', null, {'ref': value.ref, 'state_law' : 1}, value.state == 1 ? 'selected' : null)}}{{:helper.link('No', null, {'ref': value.ref, 'state_law' : 0}, value.state == 0 ? 'selected' : null)}} |
+ {{if data.isMalf}}
+ {{:helper.link('Edit', null, {'edit_law': value.ref})}} |
+ {{:helper.link('Delete', null, {'delete_law': value.ref}, null, 'redButton')}} |
+ {{/if}}
+
+ {{/for}}
+
+ {{/if}}
+
+ {{if data.has_inherent_laws || data.has_zeroth_laws}}
+
+ | Index | Law | State |
+ {{if data.isMalf}}
+ Edit |
+ Delete |
+ {{/if}}
+
+
+
+ Inherent Laws:
+
+
+ {{for data.zeroth_laws}}
+
+ | {{:value.index}}. |
+ {{:value.law}} |
+ {{:helper.link('Yes', null, {'ref': value.ref, 'state_law' : 1}, value.state == 1 ? 'selected' : null)}}{{:helper.link('No', null, {'ref': value.ref, 'state_law' : 0}, value.state != 1 ? 'selected' : null)}} |
+ {{if data.isMalf}}
+ {{:helper.link('Edit', null, {'edit_law': value.ref}, data.isAdmin ? null : 'disabled')}} |
+ {{:helper.link('Delete', null, {'delete_law': value.ref}, data.isAdmin ? null : 'disabled', data.IsAdmin ? 'redButton' : null)}} |
+ {{/if}}
+
+ {{/for}}
+
+ {{for data.inherent_laws}}
+
+ | {{:value.index}}. |
+ {{:value.law}} |
+ {{:helper.link('Yes', null, {'ref': value.ref, 'state_law' : 1}, value.state == 1 ? 'selected' : null)}}{{:helper.link('No', null, {'ref': value.ref, 'state_law' : 0}, value.state == 0 ? 'selected' : null)}} |
+ {{if data.isMalf}}
+ {{:helper.link('Edit', null, {'edit_law': value.ref})}} |
+ {{:helper.link('Delete', null, {'delete_law': value.ref}, null, 'redButton')}} |
+ {{/if}}
+
+ {{/for}}
+
+ {{/if}}
+
+ {{if data.has_supplied_laws}}
+
+ | Index | Law | State |
+ {{if data.isMalf}}
+ Edit |
+ Delete |
+ {{/if}}
+
+
+
+ Supplied Laws:
+
+ {{for data.supplied_laws}}
+
+ | {{:value.index}}. |
+ {{:value.law}} |
+ {{:helper.link('Yes', null, {'ref': value.ref, 'state_law' : 1}, value.state == 1 ? 'selected' : null)}}{{:helper.link('No', null, {'ref': value.ref, 'state_law' : 0}, value.state == 0 ? 'selected' : null)}} |
+ {{if data.isMalf}}
+ {{:helper.link('Edit', null, {'edit_law': value.ref})}} |
+ {{:helper.link('Delete', null, {'delete_law': value.ref}, null, 'redButton')}} |
+ {{/if}}
+
+ {{/for}}
+
+ {{/if}}
+
+
+
+ Statement Channel:
+
+
+ {{for data.channels}}
+ {{:helper.link(value.channel, null, {'law_channel' : value.channel}, value.channel == data.channel ? 'selected' : null)}}
+ {{/for}}
+
+
+
+
+
+ State Laws:
+
+
+ {{:helper.link('State Laws', null, {'state_laws' : 1})}}
+
+
+
+ {{if data.isMalf}}
+
+
+ Add Laws:
+
+
+
+ | Type | Law | Index | Edit | Add |
+ {{if data.isAdmin && !data.has_zeroth_laws}}
+ | Zero | {{:data.zeroth_law}} | N/A | {{:helper.link('Edit', null, {'change_zeroth_law' : 1})}} | {{:helper.link('Add', null, {'add_zeroth_law' : 1})}} |
+ {{/if}}
+ | Ion | {{:data.ion_law}} | N/A | {{:helper.link('Edit', null, {'change_ion_law' : 1})}} | {{:helper.link('Add', null, {'add_ion_law' : 1})}} |
+ | Inherent | {{:data.inherent_law}} | N/A | {{:helper.link('Edit', null, {'change_inherent_law' : 1})}} | {{:helper.link('Add', null, {'add_inherent_law' : 1})}} |
+ | Supplied | {{:data.supplied_law}} | {{:helper.link(data.supplied_law_position, null, {'change_supplied_law_position' : 1})}} | {{:helper.link('Edit', null, {'change_supplied_law' : 1})}} | {{:helper.link('Add', null, {'add_supplied_law' : 1})}} |
+
+
+
+ {{/if}}
+
+ {{if data.isMalf}}
+
+
+ Sync Laws:
+
+
+ {{:helper.link('Sync Laws', null, {'sync_laws' : 1})}}
+
+
+ {{/if}}
+
+
+
+ Law Notification:
+
+
+ {{:helper.link('Notify', null, {'notify_laws' : 1})}}
+
+
+{{else data.view == 1}}
+ {{for data.law_sets}}
+
+
+
{{:value.name}}
{{:value.header}}
+
+
+ {{if value.laws.has_ion_laws}}
+
+ | Index | Law |
+ {{for value.laws.ion_laws :lawValue:lawindex}}
+
+ | {{:lawValue.index}}. |
+ {{:lawValue.law}} |
+
+ {{/for}}
+
+ {{/if}}
+
+ {{if value.laws.has_zeroth_laws || value.laws.has_inherent_laws}}
+
+ | Index | Law |
+ {{for value.laws.zeroth_laws :lawValue:lawindex}}
+
+ | {{:lawValue.index}}. |
+ {{:lawValue.law}} |
+
+ {{/for}}
+ {{for value.laws.inherent_laws :lawValue:lawindex}}
+
+ | {{:lawValue.index}}. |
+ {{:lawValue.law}} |
+
+ {{/for}}
+
+ {{/if}}
+
+ {{if value.laws.has_supplied_laws}}
+
+ | Index | Law |
+ {{for value.laws.supplied_laws :lawValue:lawindex}}
+
+ | {{:lawValue.index}}. |
+ {{:lawValue.law}} |
+
+ {{/for}}
+
+ {{/if}}
+
+
+
+ {{:helper.link('Load Laws', null, {'transfer_laws' : value.ref})}}{{:helper.link('State Laws', null, {'state_law_set' : value.ref})}}
+
+
+ {{/for}}
+{{/if}}
\ No newline at end of file