mirror of
https://github.com/flextype/flextype.git
synced 2025-08-21 04:11:42 +02:00
feat(admin-plugin): udpate admin templates #211
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
{% extends "plugins/admin/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="id">{{ tr('admin_name') }}</label>
|
||||
<input type="text" id="id" name="id" value="" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
|
||||
<small class="form-text text-muted">{{ tr('admin_help_text_for_snippets_name') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="btn-group custom-btn-group">
|
||||
<input type="submit" id="create" name="create" value="{{ tr('admin_create') }}" class="buttonbtn-black">
|
||||
<button type="button" class="buttondropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown">
|
||||
<input type="submit" id="create-and-edit" name="create-and-edit" value="{{ tr('admin_create_and_edit') }}" class="dropdown-item">
|
||||
</div>
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<div class="flex">
|
||||
<div class="w-full lg:w-3/12">
|
||||
<div class="form-group">
|
||||
<label for="id" class="form-control-title">{{ tr('admin_name') }}</label>
|
||||
<input type="text" id="id" name="id" value="" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
|
||||
<small>{{ tr('admin_help_text_for_snippets_name') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="button-group">
|
||||
<input type="submit" id="create" name="create" value="{{ tr('admin_create') }}" class="button">
|
||||
<button type="button" class="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown">
|
||||
<input type="submit" id="create-and-edit" name="create-and-edit" value="{{ tr('admin_create_and_edit') }}" class="dropdown-item">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
</form>
|
||||
{% endblock %}
|
@@ -1,16 +1,14 @@
|
||||
{% extends "plugins/admin/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="action" value="save-form">
|
||||
<input type="hidden" name="id" value="{{ id }}">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-group">
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="action" value="save-form">
|
||||
<input type="hidden" name="id" value="{{ id }}">
|
||||
<div class="flex">
|
||||
<div class="w-full">
|
||||
<textarea name="data" rows="0" cols="0" class="form-control code-editor js-code">{{ data }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
</form>
|
||||
{% endblock %}
|
@@ -1,20 +1,20 @@
|
||||
{% extends "plugins/admin/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="id_current" value="{{ id_current }}">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="id">{{ tr('admin_name') }}</label>
|
||||
<input type="text" id="id" name="id" value="{{ id_current }}" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
|
||||
<small class="form-text text-muted">{{ tr('admin_help_text_for_snippets_name') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" id="renameTemplate" name="rename_template" value="{{ tr('admin_save') }}" class="buttonbtn-black">
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="id_current" value="{{ id_current }}">
|
||||
<div class="flex">
|
||||
<div class="w-full lg:w-3/12">
|
||||
<div class="form-group">
|
||||
<label for="id" class="form-control-title">{{ tr('admin_name') }}</label>
|
||||
<input type="text" id="id" name="id" value="{{ id_current }}" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
|
||||
<small>{{ tr('admin_help_text_for_snippets_name') }}</small>
|
||||
</div>
|
||||
<div class="button-group">
|
||||
<input type="submit" id="renameTemplate" name="rename_template" value="{{ tr('admin_save') }}" class="button">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
</form>
|
||||
{% endblock %}
|
@@ -1,35 +1,35 @@
|
||||
{% extends "plugins/admin/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="theme" value="{{ theme }}">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="id">{{ tr('admin_name') }}</label>
|
||||
<input type="text" id="id" name="id" value="" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
|
||||
<small class="form-text text-muted">{{ tr('admin_help_text_for_temlates_name') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="type">{{ tr('admin_type') }}</label>
|
||||
<select class="form-control" name="type">
|
||||
<option value="partial">{{ tr('admin_partial') }}</option>
|
||||
<option value="template">{{ tr('admin_template') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="btn-group custom-btn-group">
|
||||
<input type="submit" id="create" name="create" value="{{ tr('admin_create') }}" class="buttonbtn-black">
|
||||
<button type="button" class="buttondropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown">
|
||||
<input type="submit" id="create-and-edit" name="create-and-edit" value="{{ tr('admin_create_and_edit') }}" class="dropdown-item">
|
||||
</div>
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="theme" value="{{ theme }}">
|
||||
<div class="flex">
|
||||
<div class="w-full lg:w-3/12">
|
||||
<div class="form-group">
|
||||
<label for="id" class="form-control-title">{{ tr('admin_name') }}</label>
|
||||
<input type="text" id="id" name="id" value="" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
|
||||
<small>{{ tr('admin_help_text_for_temlates_name') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="type" class="form-control-title">{{ tr('admin_type') }}</label>
|
||||
<select class="form-control" name="type">
|
||||
<option value="partial">{{ tr('admin_partial') }}</option>
|
||||
<option value="template">{{ tr('admin_template') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="button-group">
|
||||
<input type="submit" id="create" name="create" value="{{ tr('admin_create') }}" class="button">
|
||||
<button type="button" class="buttondropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown">
|
||||
<input type="submit" id="create-and-edit" name="create-and-edit" value="{{ tr('admin_create_and_edit') }}" class="dropdown-item">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
</form>
|
||||
{% endblock %}
|
@@ -1,18 +1,16 @@
|
||||
{% extends "plugins/admin/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="action" value="save-form">
|
||||
<input type="hidden" name="type" value="{{ type }}">
|
||||
<input type="hidden" name="id" value="{{ id }}">
|
||||
<input type="hidden" name="theme" value="{{ theme }}">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-group">
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="action" value="save-form">
|
||||
<input type="hidden" name="type" value="{{ type }}">
|
||||
<input type="hidden" name="id" value="{{ id }}">
|
||||
<input type="hidden" name="theme" value="{{ theme }}">
|
||||
<div class="flex">
|
||||
<div class="w-full">
|
||||
<textarea name="data" rows="0" cols="0" class="form-control code-editor js-code">{{ data }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
</form>
|
||||
{% endblock %}
|
@@ -1,22 +1,22 @@
|
||||
{% extends "plugins/admin/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="id_current" value="{{ id_current }}">
|
||||
<input type="hidden" name="type_current" value="{{ type_current }}">
|
||||
<input type="hidden" name="theme" value="{{ theme }}">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="id">{{ tr('admin_name') }}</label>
|
||||
<input type="text" id="id" name="id" value="{{ id_current }}" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
|
||||
<small class="form-text text-muted">{{ tr('admin_help_text_for_temlates_name') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" id="renameTemplate" name="rename_template" value="{{ tr('admin_save') }}" class="buttonbtn-black">
|
||||
<form method="post" id="form">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="id_current" value="{{ id_current }}">
|
||||
<input type="hidden" name="type_current" value="{{ type_current }}">
|
||||
<input type="hidden" name="theme" value="{{ theme }}">
|
||||
<div class="flex">
|
||||
<div class="w-full lg:w-3/12">
|
||||
<div class="form-group">
|
||||
<label for="id" class="form-control-title">{{ tr('admin_name') }}</label>
|
||||
<input type="text" id="id" name="id" value="{{ id_current }}" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
|
||||
<small>{{ tr('admin_help_text_for_temlates_name') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" id="renameTemplate" name="rename_template" value="{{ tr('admin_save') }}" class="button">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
</form>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user