1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-20 03:41:27 +02:00

feat(admin-plugin): update extends templates #211

This commit is contained in:
Awilum
2020-01-23 15:35:39 +03:00
parent 081cf7c070
commit d1a8f6fbab
3 changed files with 54 additions and 54 deletions

View File

@@ -10,7 +10,7 @@
{% set fieldset = parser_decode(filesystem_read(fieldset_path), 'yaml') %}
{% endif %}
<tr>
<td class="w-1 text-center {% if fieldset.hide %}opacity-50{% endif %}">
<td class="w-1 text-center{% if fieldset.hide %}opacity-50{% endif %}">
{% if fieldset.icon %}
<i class="{{ fieldset.icon }}"></i>
{% else %}
@@ -61,4 +61,4 @@
<a href="{{ path_for('admin.fieldsets.add') }}" class="btn">{{ tr('admin_create_new_fieldset') }}</a>
</div>
{% endif %}
{% endblock %}
{% endblock %}

View File

@@ -1,44 +1,44 @@
{% extends "plugins/admin/templates/partials/base.html" %}
{% block content %}
<table class="table no-margin">
<tbody>
<tr>
<td>{{ tr('admin_name') }}:</td>
<td>{{ theme_manifest.name }}</td>
</tr>
<tr>
<td>{{ tr('admin_version') }}:</td>
<td>{{ theme_manifest.version }}</td>
</tr>
<tr>
<td>{{ tr('admin_description') }}:</td>
<td>{{ theme_manifest.description }}</td>
</tr>
<tr>
<td>{{ tr('admin_author_name') }}:</td>
<td>{{ theme_manifest.author.name }}</td>
</tr>
<tr>
<td>{{ tr('admin_author_email') }}:</td>
<td>{{ theme_manifest.author.email }}</td>
</tr>
<tr>
<td>{{ tr('admin_author_url') }}:</td>
<td>{{ theme_manifest.author.url }}</td>
</tr>
<tr>
<td>{{ tr('admin_homepage') }}:</td>
<td>{{ theme_manifest.homepage }}</td>
</tr>
<tr>
<td>{{ tr('admin_bugs') }}:</td>
<td>{{ theme_manifest.bugs }}</td>
</tr>
<tr>
<td>{{ tr('admin_license') }}:</td>
<td>{{ theme_manifest.license }}</td>
</tr>
</tbody>
</table>
{% endblock %}
<table>
<tbody>
<tr>
<td>{{ tr('admin_name') }}:</td>
<td>{{ theme_manifest.name }}</td>
</tr>
<tr>
<td>{{ tr('admin_version') }}:</td>
<td>{{ theme_manifest.version }}</td>
</tr>
<tr>
<td>{{ tr('admin_description') }}:</td>
<td>{{ theme_manifest.description }}</td>
</tr>
<tr>
<td>{{ tr('admin_author_name') }}:</td>
<td>{{ theme_manifest.author.name }}</td>
</tr>
<tr>
<td>{{ tr('admin_author_email') }}:</td>
<td>{{ theme_manifest.author.email }}</td>
</tr>
<tr>
<td>{{ tr('admin_author_url') }}:</td>
<td>{{ theme_manifest.author.url }}</td>
</tr>
<tr>
<td>{{ tr('admin_homepage') }}:</td>
<td>{{ theme_manifest.homepage }}</td>
</tr>
<tr>
<td>{{ tr('admin_bugs') }}:</td>
<td>{{ theme_manifest.bugs }}</td>
</tr>
<tr>
<td>{{ tr('admin_license') }}:</td>
<td>{{ theme_manifest.license }}</td>
</tr>
</tbody>
</table>
{% endblock %}

View File

@@ -1,16 +1,16 @@
{% extends "plugins/admin/templates/partials/base.html" %}
{% block content %}
<form method="post" id="form">
{{ csrf() }}
<input type="hidden" id="action" name="action" value="save-form">
<input type="hidden" id="id" name="id" value="{{ id }}">
<div class="row">
<div class="col-12">
<div class="form-group">
<textarea name="data" rows="0" cols="0" class="form-control code-editor js-code">{{ theme_settings }}</textarea>
<form method="post" id="form">
{{ csrf() }}
<input type="hidden" id="action" name="action" value="save-form">
<input type="hidden" id="id" name="id" value="{{ id }}">
<div class="row">
<div class="col-12">
<div class="form-group">
<textarea name="data" rows="0" cols="0" class="form-control code-editor js-code">{{ theme_settings }}</textarea>
</div>
</div>
</div>
</div>
</form>
{% endblock %}
</form>
{% endblock %}