1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-28 23:40:41 +02:00

Flextype Box Plugin: Admin #125 #117

- Fieldsets Controller/Views implementation
This commit is contained in:
Awilum
2019-05-24 23:59:41 +03:00
parent 406e7c6c05
commit d56eb7b4c5
2 changed files with 21 additions and 2 deletions

View File

@@ -10,8 +10,8 @@
<input type="text" id="fieldsetTitle" name="title" value="" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_title_empty_input') }}">
</div>
<div class="form-group">
<label for="slug">{{ tr('admin_name') }}</label>
<input type="text" id="fieldsetName" name="name" value="" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
<label for="id">{{ tr('admin_name') }}</label>
<input type="text" id="fieldsetId" 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') }}">
</div>
<div class="form-group">
<input type="submit" id="createFieldset" name="create_fieldset" value="{{ tr('admin_create') }}" class="btn btn-black">

View File

@@ -0,0 +1,19 @@
{% extends "plugins/admin/views/partials/base.html" %}
{% block content %}
<form method="post" id="form">
{{ csrf() }}
<input type="hidden" id="fieldset-id-current-{{ id }}" name="fieldset-id-current" value="{{ id }}">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="id">{{ tr('admin_name') }}</label>
<input type="text" id="fieldsetId" name="id" value="{{ id }}" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_name_empty_input') }}">
</div>
<div class="form-group">
<input type="submit" id="renameFieldset" name="rename_fieldset" value="{{ tr('admin_save') }}" class="btn btn-black">
</div>
</div>
</div>
</form>
{% endblock %}