ソースを参照

update userform

久保田隼基 8 年 前
コミット
9c2a429bb9
1 ファイル変更4 行追加4 行削除
  1. 4 4
      lib/views/me/index.html

+ 4 - 4
lib/views/me/index.html

@@ -75,11 +75,11 @@
           {% endif %}
         </div>
       </div>
-      <div class="form-group {% if not user.lang %}has-error{% endif %}">
-        <label for="userForm[lang]" class="col-sm-2 control-label">{{ t('Disclose E-mail') }}</label>
+      <div class="form-group {% if not user.emailpublished %}has-error{% endif %}">
+        <label for="userForm[emailPublished]" class="col-sm-2 control-label">{{ t('Disclose E-mail') }}</label>
         <div class="col-sm-4">
-          <label class="radio-inline"><input type="radio" name="userForm[lang]" value="{{ consts.language.LANG_EN_US }}" {% if user.lang == consts.language.LANG_EN_US %}checked="checked"{% endif %}>{{ t('Show') }}</label>
-          <label class="radio-inline"><input type="radio" name="userForm[lang]" value="{{ consts.language.LANG_JA }}" {% if user.lang == consts.language.LANG_JA %}checked="checked"{% endif %}>{{ t('Hide') }}</label>
+          <label class="radio-inline"><input type="radio" name="userForm[emailPublished]" value="{{ consts.emailPublished }}" {% if user.emailPublished == consts.emailpublished %}checked="checked"{% endif %}>{{ t('Show') }}</label>
+          <label class="radio-inline"><input type="radio" name="userForm[emailPublished]" value="{{ consts.emailPublished }}" {% if user.emailPublished == consts.emailpublished %}checked="checked"{% endif %}>{{ t('Hide') }}</label>
         </div>
       </div>