Skip to content

Display of input error

Mitsuru Mutaguchi edited this page Oct 5, 2021 · 5 revisions

目次

通常パターン

  • 対象項目を赤枠で囲む。
    @if ($errors && $errors->has('view_count')) border-danger @endif
  • 対象項目下のエラーメッセージは、「▲!○○○は必須です。」にする。 ※▲!はアイコン。
    @include('common.errors_inline', ['name' => 'learningtasks_name'])
  • プラグイン内の上部に共通エラーメッセージを表示する。
    @include('common.errors_form_line')
    共通部品 errors_inline.blade.php

対応サンプル

プラグイン共通のメール設定
https://github.com/opensource-workshop/connect-cms/commit/eb7d3eee87fca113d9f441555e3599a109bda761

サンプル画面

image

一覧編集パターン

・カテゴリ設定のエラー表示は別パターンとして扱う。統一できる所は統一する。

対応サンプル

カテゴリ
https://github.com/opensource-workshop/connect-cms/blob/master/resources/views/plugins/user/learningtasks/default/learningtasks_list_categories.blade.php

サンプル画面

image

Clone this wiki locally