Explorar o código

update userform

久保田隼基 %!s(int64=8) %!d(string=hai) anos
pai
achega
9c2a429bb9
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  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>