1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 05:43:10 +02:00

feat(admin-plugin): add help text for common form controls #280

This commit is contained in:
Awilum
2019-11-22 15:47:50 +03:00
parent 47516414ff
commit 4057bce686
4 changed files with 9 additions and 1 deletions

View File

@@ -193,6 +193,7 @@ admin_admin_panel: "Admin Panel"
admin_light: "Light"
admin_dark: "Dark"
admin_name: "Name"
admin_hide: "Hide"
admin_memcached_server: "Memcached Server"
admin_memcached_port: "Memcached Port"
admin_redis_socket: "Redis Socket"
@@ -300,4 +301,6 @@ admin_help_text_for_settings_errors_display_datails_label: "Display errors detai
admin_help_text_for_settings_errors_whoops_editor_label: "Whoops editor."
admin_help_text_for_settings_errors_whoops_page_title_label: "Whoops page title."
admin_help_text_for_fieldsets_hide: "Hide fieldsets from entries type select."
admin_hide: "Hide"
admin_help_text_for_entry_label: "Entry title."
admin_help_text_for_entry_name: "Entry unique name in lowercase chars only."
admin_help_text_for_entry_type: "Entry type based on Fieldset."

View File

@@ -9,10 +9,12 @@
<div class="form-group">
<label for="title">{{ tr('admin_title') }}</label>
<input type="text" id="title" 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') }}">
<small class="form-text text-muted">{{ tr('admin_help_text_for_entry_label') }}</small>
</div>
<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_entry_name') }}</small>
</div>
<div class="form-group">
<label>{{ tr('admin_type') }}</label>
@@ -21,6 +23,7 @@
<option value="{{ key }}">{{ fieldset }}</option>
{% endfor %}
</select>
<small class="form-text text-muted">{{ tr('admin_help_text_for_entry_type') }}</small>
</div>
<div class="form-group">
<input type="submit" id="create" name="create" value="{{ tr('admin_create') }}" class="btn btn-black">

View File

@@ -13,6 +13,7 @@
<div class="form-group">
<label for="entryName">{{ tr('admin_name') }}</label>
<input type="text" id="entryName" name="name" value="{{name_current}}" class="form-control" required="required" data-validation="length required" data-validation-allowing = "-_" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_title_empty_input') }}">
<small class="form-text text-muted">{{ tr('admin_help_text_for_entry_name') }}</small>
</div>
<div class="form-group">

View File

@@ -13,6 +13,7 @@
<option value="{{ key }}" {% if key == fieldset %}selected{% endif %}>{{ value }}</option>
{% endfor %}
</select>
<small class="form-text text-muted">{{ tr('admin_help_text_for_entry_type') }}</small>
</div>
<div class="form-group">
<input type="submit" id="saveEntry" name="save_entry" value="{{ tr('admin_save') }}" class="btn btn-black btn-fill btn-wd">