1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 19:01:40 +02:00

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

This commit is contained in:
Awilum
2020-02-01 15:10:29 +03:00
parent 285bc8f354
commit 60c6545652
2 changed files with 8 additions and 14 deletions

View File

@@ -10,15 +10,13 @@
<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 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>

View File

@@ -5,10 +5,6 @@
{{ 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>
<textarea name="data" rows="0" cols="0" class="js-code">{{ data }}</textarea>
</form>
{% endblock %}