mirror of
https://github.com/jbcr/core.git
synced 2026-04-30 04:03:11 +02:00
added image preview to image filed
This commit is contained in:
Vendored
+1
-2
@@ -2,6 +2,5 @@
|
||||
|
||||
@import './bootstrap/bootstrap';
|
||||
@import './flatpickr/flatpickr';
|
||||
@import './baguette/baguette';
|
||||
@import './selectize/selectize';
|
||||
@import './baguette/baguette'
|
||||
|
||||
|
||||
+1
-19
File diff suppressed because one or more lines are too long
+10
-10
File diff suppressed because one or more lines are too long
@@ -6,11 +6,13 @@
|
||||
{% endfor %}
|
||||
|
||||
{% block title %}
|
||||
{{ icon(record) }} Edit {{ record.definition.singular_name }} » <strong>{{ record.title|default('New') }}</strong>
|
||||
Edit » <strong>{{ record.title|default('New') }}</strong>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
{#{{ dump(record.definition.fields) }}#}
|
||||
|
||||
<form method="post" id="editcontent" >
|
||||
|
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token('editrecord') }}">
|
||||
@@ -35,65 +37,65 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block aside %}
|
||||
|
||||
<div id="metadata" class="card">
|
||||
<div class="card-header">
|
||||
Meta information
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<form class="ui form">
|
||||
|
||||
<button type="submit" class="btn btn-primary mb-3" form="editcontent">
|
||||
<i class="fas fa-save mr-2"></i>Save
|
||||
</button>
|
||||
<input type="submit" class="btn btn-primary" value="Save" form="editcontent">
|
||||
|
||||
{% include '@bolt/editcontent/fields/select.twig' with {
|
||||
'label': 'field.status'|trans,
|
||||
'name': 'status',
|
||||
'value': record.status,
|
||||
'options': record.statusoptions,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
{% include '@bolt/editcontent/fields/select.twig' with {
|
||||
'label': 'field.status'|trans,
|
||||
'name': 'status',
|
||||
'value': record.status,
|
||||
'options': record.statusoptions,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
|
||||
{#<input type="text" name="author" value="{{ record.author }}">#}
|
||||
{#<input type="text" name="author" value="{{ record.author }}">#}
|
||||
|
||||
{% include '@bolt/editcontent/fields/datetime.twig' with {
|
||||
'label': 'field.createdAt'|trans,
|
||||
'name': 'createdAt',
|
||||
'value': record.createdAt,
|
||||
'readonly': true,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
{% include '@bolt/editcontent/fields/datetime.twig' with {
|
||||
'label': 'field.createdAt'|trans,
|
||||
'name': 'createdAt',
|
||||
'value': record.createdAt,
|
||||
'readonly': true,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
|
||||
{% include '@bolt/editcontent/fields/datetime.twig' with {
|
||||
'label': 'field.modifiedAt'|trans,
|
||||
'name': 'modifiedAt',
|
||||
'value': record.modifiedAt,
|
||||
'readonly': true,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
{% include '@bolt/editcontent/fields/datetime.twig' with {
|
||||
'label': 'field.modifiedAt'|trans,
|
||||
'name': 'modifiedAt',
|
||||
'value': record.modifiedAt,
|
||||
'readonly': true,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
|
||||
{% include '@bolt/editcontent/fields/datetime.twig' with {
|
||||
'label': 'field.publishedAt'|trans,
|
||||
'name': 'publishedAt',
|
||||
'value': record.publishedAt,
|
||||
'readonly': false,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
{% include '@bolt/editcontent/fields/datetime.twig' with {
|
||||
'label': 'field.publishedAt'|trans,
|
||||
'name': 'publishedAt',
|
||||
'value': record.publishedAt,
|
||||
'readonly': false,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
|
||||
{% include '@bolt/editcontent/fields/datetime.twig' with {
|
||||
'label': 'field.depublishedAt'|trans,
|
||||
'name': 'depublishedAt',
|
||||
'readonly': false,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
{% include '@bolt/editcontent/fields/datetime.twig' with {
|
||||
'label': 'field.depublishedAt'|trans,
|
||||
'name': 'depublishedAt',
|
||||
'readonly': false,
|
||||
'form': 'editcontent'
|
||||
} %}
|
||||
|
||||
|
||||
{% include '@bolt/editcontent/fields/text.twig' with {
|
||||
'label': 'field.id'|trans,
|
||||
'name': 'id',
|
||||
'value': record.id,
|
||||
'attributes': 'readonly form="editcontent"',
|
||||
} %}
|
||||
{% include '@bolt/editcontent/fields/text.twig' with {
|
||||
'label': 'field.id'|trans,
|
||||
'name': 'id',
|
||||
'value': record.id,
|
||||
'attributes': 'readonly form="editcontent"',
|
||||
} %}
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user