* Add: カスタム絵文字の専用編集画面 * 新規作成画面に項目追加、編集画面に画像表示、旧テキストボックス削除 * Fix: カスタム絵文字のコピー処理で、コピーされていないプロパティがあった
23 lines
1.1 KiB
Text
23 lines
1.1 KiB
Text
- content_for :page_title do
|
|
= t('.title')
|
|
|
|
= simple_form_for @custom_emoji, url: admin_custom_emojis_path do |f|
|
|
= render 'shared/error_messages', object: @custom_emoji
|
|
|
|
.fields-group
|
|
= f.input :shortcode, wrapper: :with_label, label: t('admin.custom_emojis.shortcode'), hint: t('admin.custom_emojis.shortcode_hint')
|
|
|
|
.fields-group
|
|
= f.input :image, wrapper: :with_label, input_html: { accept: CustomEmoji::IMAGE_MIME_TYPES.join(' ') }, hint: t('admin.custom_emojis.image_hint', size: number_to_human_size(CustomEmoji::LIMIT))
|
|
|
|
.fields-group
|
|
= f.input :visible_in_picker, as: :boolean, wrapper: :with_label, label: t('admin.custom_emojis.visible_in_picker')
|
|
|
|
.fields-group
|
|
= f.input :aliases_raw, wrapper: :with_label, kmyblue: true, label: t('admin.custom_emojis.aliases'), hint: t('admin.custom_emojis.aliases_hint')
|
|
|
|
.fields-group
|
|
= f.input :license, wrapper: :with_label, kmyblue: true, label: t('admin.custom_emojis.license'), hint: t('admin.custom_emojis.license_hint')
|
|
|
|
.actions
|
|
= f.button :button, t('admin.custom_emojis.upload'), type: :submit
|