mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 18:12:40 +00:00
This PR adds password protected files. When creating a file an additional prompt will come up. This will ask if you would like to set a password. If left blank a password will not be set and the file will function normally. If a password is set, when viewing, cloning, renaming, or deleting a file, the password prompt will again come up asking for the previously set password. When cloned, the cloned file retains the password.
64 lines
2.3 KiB
Cheetah
64 lines
2.3 KiB
Cheetah
{{if data.error}}
|
|
<h2>An error has occured and this program can not continue.</h2>
|
|
Additional information: {{:data.error}}<br>
|
|
<i>Please try again. If the problem persists contact your system administrator for assistance.</i>
|
|
{{:helper.link('Restart program', null, { "PRG_closefile" : 1 })}}
|
|
{{else}}
|
|
{{if data.filename}}
|
|
<h2>Viewing file {{:data.filename}}</h2>
|
|
<div class='item'>
|
|
{{:helper.link('CLOSE', null, { "PRG_closefile" : 1 })}}
|
|
{{:helper.link('EDIT', null, { "PRG_edit" : 1 })}}
|
|
{{:helper.link('PRINT', null, { "PRG_printfile" : 1 })}}
|
|
</div><hr>
|
|
{{:data.filedata}}
|
|
{{else}}
|
|
<h2>Available files (local):</h2>
|
|
<table>
|
|
<tr><th>File name
|
|
<th>File type
|
|
<th>File size (GQ)
|
|
<th>Operations
|
|
{{for data.files}}
|
|
<tr><td>{{:value.name}}
|
|
<td>.{{:value.type}}
|
|
<td>{{:value.size}}GQ
|
|
<td>
|
|
{{:helper.link('VIEW', null, { "PRG_openfile" : value.name })}}
|
|
{{:helper.link('DELETE', null, { "PRG_deletefile" : value.name }, value.undeletable ? 'disabled' : null)}}
|
|
{{:helper.link('RENAME', null, { "PRG_rename" : value.name }, value.undeletable ? 'disabled' : null)}}
|
|
{{:helper.link('CLONE', null, { "PRG_clone" : value.name }, value.undeletable ? 'disabled' : null)}}
|
|
{{if !value.encrypted}}
|
|
{{:helper.link('ENCRYPT', null, { "PRG_encrypt" : value.name }, (value.undeletable) ? 'disabled' : null)}}
|
|
{{else}}
|
|
{{:helper.link('DECRYPT', null, { "PRG_decrypt" : value.name }, (value.undeletable) ? 'disabled' : null)}}
|
|
{{/if}}
|
|
{{if data.usbconnected}}
|
|
{{:helper.link('EXPORT', null, { "PRG_copytousb" : value.name }, value.undeletable ? 'disabled' : null)}}
|
|
{{/if}}
|
|
{{/for}}
|
|
</table>
|
|
{{if data.usbconnected}}
|
|
<h2>Available files (portable device):</h2>
|
|
<table>
|
|
<tr><th>File name
|
|
<th>File type
|
|
<th>File size (GQ)
|
|
<th>Operations
|
|
{{for data.usbfiles}}
|
|
<tr><td>{{:value.name}}
|
|
<td>.{{:value.type}}
|
|
<td>{{:value.size}}GQ
|
|
<td>
|
|
{{:helper.link('DELETE', null, { "PRG_usbdeletefile" : value.name }, value.undeletable ? 'disabled' : null)}}
|
|
{{if data.usbconnected}}
|
|
{{:helper.link('IMPORT', null, { "PRG_copyfromusb" : value.name }, value.undeletable ? 'disabled' : null)}}
|
|
{{/if}}
|
|
{{/for}}
|
|
</table>
|
|
{{/if}}
|
|
{{:helper.link('NEW DATA FILE', null, { "PRG_newtextfile" : 1 })}}
|
|
{{/if}}
|
|
|
|
{{/if}}
|