Change: フィールド入力フォームのデザイン改善 (#672)
* Change: フィールド入力フォームのデザイン改善 * 翻訳の置き場所変更
This commit is contained in:
parent
31559f6b59
commit
116a6b50cd
4 changed files with 19 additions and 3 deletions
|
@ -118,12 +118,18 @@ code {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 0 -5px;
|
margin: 0 -5px;
|
||||||
|
|
||||||
.input {
|
.input,
|
||||||
|
.fields-label {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fields-label {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|
|
@ -28,10 +28,14 @@
|
||||||
%label= t('simple_form.labels.defaults.fields')
|
%label= t('simple_form.labels.defaults.fields')
|
||||||
%span.hint= t('simple_form.hints.account.fields')
|
%span.hint= t('simple_form.hints.account.fields')
|
||||||
|
|
||||||
|
.row
|
||||||
|
%p.fields-label= t('simple_form.labels.account.fields.name')
|
||||||
|
%p.fields-label= t('simple_form.labels.account.fields.value')
|
||||||
|
|
||||||
= f.simple_fields_for :fields do |fields_f|
|
= f.simple_fields_for :fields do |fields_f|
|
||||||
.row
|
.row
|
||||||
= fields_f.input :name, placeholder: t('simple_form.labels.account.fields.name'), input_html: { maxlength: 255 }
|
= fields_f.input :name, placeholder: fields_f.index.zero? ? t("simple_form.labels.account.fields.examples.name_#{fields_f.index + 1}") : t('simple_form.labels.account.fields.name'), input_html: { maxlength: 255 }
|
||||||
= fields_f.input :value, placeholder: t('simple_form.labels.account.fields.value'), input_html: { maxlength: 255 }
|
= fields_f.input :value, placeholder: fields_f.index.zero? ? t("simple_form.labels.account.fields.examples.value_#{fields_f.index + 1}") : t('simple_form.labels.account.fields.value'), input_html: { maxlength: 255 }
|
||||||
|
|
||||||
.fields-row
|
.fields-row
|
||||||
.fields-row__column.fields-row__column-6
|
.fields-row__column.fields-row__column-6
|
||||||
|
|
|
@ -168,6 +168,9 @@ en:
|
||||||
account:
|
account:
|
||||||
discoverable: Feature profile and posts in discovery algorithms
|
discoverable: Feature profile and posts in discovery algorithms
|
||||||
fields:
|
fields:
|
||||||
|
examples:
|
||||||
|
name_1: 例) GitHub
|
||||||
|
value_1: 例) https://github.com/xxxxxx
|
||||||
name: Label
|
name: Label
|
||||||
value: Content
|
value: Content
|
||||||
indexable: Include public posts in search results
|
indexable: Include public posts in search results
|
||||||
|
|
|
@ -179,6 +179,9 @@ ja:
|
||||||
account:
|
account:
|
||||||
discoverable: アカウントを見つけやすくする
|
discoverable: アカウントを見つけやすくする
|
||||||
fields:
|
fields:
|
||||||
|
examples:
|
||||||
|
name_1: 例) GitHub
|
||||||
|
value_1: 例) https://github.com/xxxxxx
|
||||||
name: ラベル
|
name: ラベル
|
||||||
value: 内容
|
value: 内容
|
||||||
indexable: 公開投稿を検索できるようにする
|
indexable: 公開投稿を検索できるようにする
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue