<commit_before>{% extends "MachigaiGameBundle:Help:base.html.twig" %}

{% block title %}ニックネーム変更{% endblock %}

{% block contents %}
<section>
 <img src="{{asset('/bundles/machigaigame/images/parts/header_nicknamechange_change.png')}}" width="100%">
 <br />
 <br />
 <p style="margin-top:5%">変更後のニックネームを入力し、登録内容確認ボタンを押してください。</p>
 <div style="margin:10%">
 {{ form (form) }}
 </div>
</form>
<img id="nicknamechange" src="{{ asset('/bundles/machigaigame/images/parts/button_nicknamechange_off.png')}}" style="width:35%;align:center; margin:1%" onclick="changeImage(this.id);submitNickname();" >
</section>
<img src="{{ asset('/bundles/machigaigame/images/parts/button_nicknamechange.png')}}" class="preload" >
<script>
var image_path = null;
var image_id = null;
$(function(){
	$('#form_confirm').hide();
})
function changeImage(imageId){
	var pre_src = $('#'+imageId).attr('src');
	var src = pre_src.replace(/_off/g,'');
	image_path = src;
	image_id = imageId;
	$('#'+imageId).attr("src",src);
	setTimeout("originalImage();", 200);
}
function originalImage(){
	var pre_src = $('#'+image_id).attr('src');
	var src = image_path.replace(/.png/g,'_off.png');
	$('#'+image_id).attr("src",src);
}
function submitNickname(){
	$('#form_confirm').trigger('click');
}
</script>
{% endblock %}<commit_msg>#406 【ヘルプ】2-04-1-1: ユーザー名変更: 「変更後のニックネーム」入力フォームが空で通ってしまう。（多分、半角全角スペースも通る）<commit_after>{% extends "MachigaiGameBundle:Help:base.html.twig" %}

{% block title %}ニックネーム変更{% endblock %}

{% block contents %}
<section>
 <img src="{{asset('/bundles/machigaigame/images/parts/header_nicknamechange_change.png')}}" width="100%">
 <br />
 <br />
 <p style="margin-top:5%">変更後のニックネームを入力し、登録内容確認ボタンを押してください。</p>
 <div style="margin:10%">
 {{ form (form) }}
 </div>
</form>
<img id="nicknamechange" src="{{ asset('/bundles/machigaigame/images/parts/button_nicknamechange_off.png')}}" style="width:35%;align:center; margin:1%" onclick="changeImage(this.id);submitNickname();" >
</section>
<img src="{{ asset('/bundles/machigaigame/images/parts/button_nicknamechange.png')}}" class="preload" >
<script>
var image_path = null;
var image_id = null;
$(function(){
	$('#form_confirm').hide();
})
function changeImage(imageId){
	var pre_src = $('#'+imageId).attr('src');
	var src = pre_src.replace(/_off/g,'');
	image_path = src;
	image_id = imageId;
	$('#'+imageId).attr("src",src);
	setTimeout("originalImage();", 200);
}
function originalImage(){
	var pre_src = $('#'+image_id).attr('src');
	var src = image_path.replace(/.png/g,'_off.png');
	$('#'+image_id).attr("src",src);
}
function submitNickname(){
	var nickname = $('#form_nickname').val();
	if(nickname.indexOf(/\S/) == -1){
		alert("ニックネームを入力してください。");
	}else{
		$('#form_confirm').trigger('click');
	}
}
</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.23346584748825444, 'fraction_numerical': 0.011926273942898446, 'mean_word_length': 6.908571428571428, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '938013', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1128, 'n_words': 156}