mirror of https://github.com/akuker/RASCSI.git
142 lines
5.4 KiB
HTML
142 lines
5.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<p><a href="/">{{ _("Cancel") }}</a></p>
|
|
<h2>{{ _("Disclaimer") }}</h2>
|
|
<p>{{ _("These device profiles are provided as-is with no guarantee to work equally to the actual physical device they are named after. You may need to provide appropirate device drivers and/or configuration parameters for them to function properly. If you would like to see data modified, or have additional devices to add to the list, please raise an issue ticket at <a href=\"%(url)s\">GitHub</a>.", url="https://github.com/akuker/RASCSI/issues") }}</p>
|
|
<h2>{{ _("Hard Drives") }}</h2>
|
|
|
|
<table cellpadding="3" border="black">
|
|
<tbody>
|
|
<tr>
|
|
<td><b>{{ _("Name") }}</b></td>
|
|
<td><b>{{ _("Size (MB)") }}</b></td>
|
|
<td><b>{{ _("Description") }}</b></td>
|
|
<td><b>{{ _("Ref.") }}</b></td>
|
|
<td><b>{{ _("Action") }}</b></td>
|
|
</tr>
|
|
{% for hd in hd_conf|sort(attribute='name') %}
|
|
<tr>
|
|
<td style="text-align:center">{{ hd.name }}</td>
|
|
<td style="text-align:center">{{ hd.size_mb }}</td>
|
|
<td style="text-align:left">{{ hd.description }}</td>
|
|
<td style="text-align:left">
|
|
{% if hd.url != "" %}
|
|
<a href="{{ hd.url }}">{{ _("Link") }}</a>
|
|
{% else %}
|
|
-
|
|
{% endif %}
|
|
</td>
|
|
<td style="text-align:left">
|
|
<form action="/drive/create" method="post">
|
|
<input type="hidden" name="vendor" value="{{ hd.vendor }}">
|
|
<input type="hidden" name="product" value="{{ hd.product }}">
|
|
<input type="hidden" name="revision" value="{{ hd.revision }}">
|
|
<input type="hidden" name="blocks" value="{{ hd.blocks }}">
|
|
<input type="hidden" name="block_size" value="{{ hd.block_size }}">
|
|
{{ _("Size:") }} <input type="number" name="size" min="512" max="274877906944" step="512" value="{{ hd.size }}">{{ _("B") }}
|
|
<input type="hidden" name="file_type" value="{{ hd.file_type }}">
|
|
<label for="file_name">{{ _("Save as:") }}</label>
|
|
<input type="text" name="file_name" value="{{ hd.secure_name }}" required />.{{ hd.file_type }}
|
|
<input type="submit" value="{{ _("Create") }}" />
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<hr/>
|
|
|
|
<h2>{{ _("CD-ROM Drives") }}</h2>
|
|
<p><em>{{ _("This will create a properties file for the given CD-ROM image. No new image file will be created.") }}</em></p>
|
|
<table cellpadding="3" border="black">
|
|
<tbody>
|
|
<tr>
|
|
<td><b>{{ _("Name") }}</b></td>
|
|
<td><b>{{ _("Size (MB)") }}</b></td>
|
|
<td><b>{{ _("Description") }}</b></td>
|
|
<td><b>{{ _("Ref.") }}</b></td>
|
|
<td><b>{{ _("Action") }}</b></td>
|
|
</tr>
|
|
{% for cd in cd_conf|sort(attribute='name') %}
|
|
<tr>
|
|
<td style="text-align:center">{{ cd.name }}</td>
|
|
<td style="text-align:center">{{ cd.size_mb }}</td>
|
|
<td style="text-align:left">{{ cd.description }}</td>
|
|
<td style="text-align:left">
|
|
{% if cd.url != "" %}
|
|
<a href="{{ cd.url }}">{{ _("Link") }}</a>
|
|
{% else %}
|
|
-
|
|
{% endif %}
|
|
</td>
|
|
<td style="text-align:left">
|
|
<form action="/drive/cdrom" method="post">
|
|
<input type="hidden" name="vendor" value="{{ cd.vendor }}">
|
|
<input type="hidden" name="product" value="{{ cd.product }}">
|
|
<input type="hidden" name="revision" value="{{ cd.revision }}">
|
|
<input type="hidden" name="block_size" value="{{ cd.block_size }}">
|
|
<label for="file_name">{{ _("Create for:") }}</label>
|
|
<select type="select" name="file_name">
|
|
{% for file in files|sort(attribute='name') %}
|
|
{% if file["name"].lower().endswith(cdrom_file_suffix) %}
|
|
<option value="{{ file["name"] }}">{{ file["name"].replace(base_dir, '') }}</option>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</select>
|
|
<input type="submit" value="{{ _("Create") }}" />
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<hr/>
|
|
|
|
<h2>{{ _("Removable Drives") }}</h2>
|
|
<table cellpadding="3" border="black">
|
|
<tbody>
|
|
<tr>
|
|
<td><b>{{ _("Name") }}</b></td>
|
|
<td><b>{{ _("Size (MB)") }}</b></td>
|
|
<td><b>{{ _("Description") }}</b></td>
|
|
<td><b>{{ _("Ref.") }}</b></td>
|
|
<td><b>{{ _("Action") }}</b></td>
|
|
</tr>
|
|
{% for rm in rm_conf|sort(attribute='name') %}
|
|
<tr>
|
|
<td style="text-align:center">{{ rm.name }}</td>
|
|
<td style="text-align:center">{{ rm.size_mb }}</td>
|
|
<td style="text-align:left">{{ rm.description }}</td>
|
|
<td style="text-align:left">
|
|
{% if rm.url != "" %}
|
|
<a href="{{ rm.url }}">{{ _("Link") }}</a>
|
|
{% else %}
|
|
-
|
|
{% endif %}
|
|
</td>
|
|
<td style="text-align:left">
|
|
<form action="/drive/create" method="post">
|
|
<input type="hidden" name="vendor" value="{{ rm.vendor }}">
|
|
<input type="hidden" name="product" value="{{ rm.product }}">
|
|
<input type="hidden" name="revision" value="{{ rm.revision }}">
|
|
<input type="hidden" name="blocks" value="{{ rm.blocks }}">
|
|
<input type="hidden" name="block_size" value="{{ rm.block_size }}">
|
|
{{ _("Size:") }} <input type="number" name="size" min="512" max="274877906944" step="512" value="{{ rm.size }}">{{ _("B") }}
|
|
<input type="hidden" name="file_type" value="{{ rm.file_type }}">
|
|
<label for="file_name">{{ _("Save as:") }}</label>
|
|
<input type="text" name="file_name" value="{{ rm.secure_name }}" required />.{{ rm.file_type }}
|
|
<input type="submit" value="{{ _("Create") }}" />
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<p><small>{{ _("%(disk_space)s MB disk space remaining on the Pi", disk_space=free_disk) }}</small></p>
|
|
<p><a href="/">{{ _("Cancel") }}</a></p>
|
|
|
|
{% endblock content %}
|