|
@@ -100,7 +100,7 @@
|
|
|
|
|
|
|
|
<legend>{{ t('Set Profile Image') }}</legend>
|
|
<legend>{{ t('Set Profile Image') }}</legend>
|
|
|
|
|
|
|
|
- <div class="form-group col-sm-offset-1 col-sm-3">
|
|
|
|
|
|
|
+ <div class="form-group col-md-2 col-sm-offset-1 col-sm-4">
|
|
|
<div class="radio">
|
|
<div class="radio">
|
|
|
<h4>
|
|
<h4>
|
|
|
<input type="radio" form="formImageType" name="imagetypeForm[isGravatarEnabled]" value="true" {% if user.isGravatarEnabled %}checked="checked"{% endif %}>
|
|
<input type="radio" form="formImageType" name="imagetypeForm[isGravatarEnabled]" value="true" {% if user.isGravatarEnabled %}checked="checked"{% endif %}>
|
|
@@ -114,7 +114,7 @@
|
|
|
<img src="{{ user|gravatar }}" width="64">
|
|
<img src="{{ user|gravatar }}" width="64">
|
|
|
</div><!-- /.col-sm* -->
|
|
</div><!-- /.col-sm* -->
|
|
|
|
|
|
|
|
- <div class="form-group col-sm-8">
|
|
|
|
|
|
|
+ <div class="form-group col-md-4 col-sm-7">
|
|
|
<div class="radio">
|
|
<div class="radio">
|
|
|
<h4>
|
|
<h4>
|
|
|
<input type="radio" form="formImageType" name="imagetypeForm[isGravatarEnabled]" value="false" {% if !user.isGravatarEnabled %}checked="checked"{% endif %}>
|
|
<input type="radio" form="formImageType" name="imagetypeForm[isGravatarEnabled]" value="false" {% if !user.isGravatarEnabled %}checked="checked"{% endif %}>
|
|
@@ -205,68 +205,54 @@
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
- <div class="row">
|
|
|
|
|
- {% if googleLoginEnabled() %}
|
|
|
|
|
-
|
|
|
|
|
- <div class="col-sm-6"> {# Google Connect #}
|
|
|
|
|
-
|
|
|
|
|
- <div class="form-box">
|
|
|
|
|
- <form action="/me/auth/google" method="post" class="form-horizontal" role="form">
|
|
|
|
|
- <fieldset>
|
|
|
|
|
- <legend><i class="fa fa-google-plus-square"></i> {{ t('Google Setting') }}</legend>
|
|
|
|
|
-
|
|
|
|
|
- {% set wmessage = req.flash('warningMessage.auth.google') %}
|
|
|
|
|
- {% if wmessage.length %}
|
|
|
|
|
- <div class="alert alert-danger">
|
|
|
|
|
- {{ wmessage }}
|
|
|
|
|
- </div>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
-
|
|
|
|
|
- <div class="form-group">
|
|
|
|
|
- {% if user.googleId %}
|
|
|
|
|
-
|
|
|
|
|
- <div class="col-sm-12">
|
|
|
|
|
- <p>
|
|
|
|
|
- {{ t('Connected') }}
|
|
|
|
|
-
|
|
|
|
|
- <input type="submit" name="disconnectGoogle" class="btn btn-default" value="{{ t('Disconnect') }}">
|
|
|
|
|
- </p>
|
|
|
|
|
- <p class="help-block">
|
|
|
|
|
- {{ t('page_me.form_help.google_disconnect1') }}<br>
|
|
|
|
|
- {{ t('page_me.form_help.google_disconnect2') }}
|
|
|
|
|
- </p>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- {% else %}
|
|
|
|
|
-
|
|
|
|
|
- <div class="col-sm-12">
|
|
|
|
|
- <div class="text-center">
|
|
|
|
|
- <input type="submit" name="connectGoogle" class="btn btn-google" value="Googleコネクト">
|
|
|
|
|
- </div>
|
|
|
|
|
- <p class="help-block">
|
|
|
|
|
- {{ t('page_me.form_help.google_connect1') }}<br>
|
|
|
|
|
- </p>
|
|
|
|
|
- {% if config.crowi['security:registrationWhiteList'] && config.crowi['security:registrationWhiteList'].length %}
|
|
|
|
|
- <p class="help-block">
|
|
|
|
|
- {{ t('page_register.form_help.email') }}<br>
|
|
|
|
|
- {{ t('page_me.form_help.google_connect2') }}
|
|
|
|
|
- </p>
|
|
|
|
|
- <ul>
|
|
|
|
|
- {% for em in config.crowi['security:registrationWhiteList'] %}
|
|
|
|
|
- <li><code>{{ em }}</code></li>
|
|
|
|
|
- {% endfor %}
|
|
|
|
|
- </ul>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ {% if googleLoginEnabled() %}
|
|
|
|
|
+ <div class="form-box">
|
|
|
|
|
+ <legend>{{ t('Google Setting') }}</legend>
|
|
|
|
|
+ <form action="/me/auth/google" method="post" class="form-horizontal col-sm-12" role="form">
|
|
|
|
|
+ <fieldset>
|
|
|
|
|
+ {% set wmessage = req.flash('warningMessage.auth.google') %}
|
|
|
|
|
+ {% if wmessage.length %}
|
|
|
|
|
+ <div class="alert alert-danger">
|
|
|
|
|
+ {{ wmessage }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
|
|
|
- {% endif %}
|
|
|
|
|
|
|
+ <div class="form-group">
|
|
|
|
|
+ {% if user.googleId %}
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <input type="submit" name="disconnectGoogle" class="btn btn-default" value="{{ t('Disconnect') }}">
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p class="help-block">
|
|
|
|
|
+ {{ t('page_me.form_help.google_disconnect1') }}<br>
|
|
|
|
|
+ {{ t('page_me.form_help.google_disconnect2') }}
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% else %}
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="text-center">
|
|
|
|
|
+ <input type="submit" name="connectGoogle" class="btn btn-google" value="Googleコネクト">
|
|
|
</div>
|
|
</div>
|
|
|
- </fieldset>
|
|
|
|
|
- </form>
|
|
|
|
|
- </div> {# /Google Connect #}
|
|
|
|
|
- {% endif %}
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <p class="help-block">
|
|
|
|
|
+ {{ t('page_me.form_help.google_connect1') }}<br>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ {% if config.crowi['security:registrationWhiteList'] && config.crowi['security:registrationWhiteList'].length %}
|
|
|
|
|
+ <p class="help-block">
|
|
|
|
|
+ {{ t('page_register.form_help.email') }}<br>
|
|
|
|
|
+ {{ t('page_me.form_help.google_connect2') }}
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <ul>
|
|
|
|
|
+ {% for em in config.crowi['security:registrationWhiteList'] %}
|
|
|
|
|
+ <li><code>{{ em }}</code></li>
|
|
|
|
|
+ {% endfor %}
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ </fieldset>
|
|
|
|
|
+ </form>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
|
|
|
</div> {# end of .tab-contents #}
|
|
</div> {# end of .tab-contents #}
|
|
|
|
|
|