<script type='text' id='editVariables-tmpl'>
	
	<div id='editReport'>
		<div class="panel panel-default">
			<div class="panel-heading">
				{{title}} -  <span data-lang="attribute">属性</span>
			</div>

			<div class="panel-body" idOne={{idOne}} >
				<div class="input-group">
					<span class="input-group-addon" data-lang="name">名字</span>
					<input type="text" name="name" id = "text"  class="form-control"value={{name}} />
				</div>
				<div class="input-group">
					<span class="input-group-addon" data-lang="classOfVariable">变量所属类</span>
					<select id='cls' type="text" name="str" class="form-control">

						{{each cls as value key}}

							{{if value == "true"}}
								<option selected>{{key}}</option>
							{{else}}
								<option>{{key}}</option>
							{{/if}}
						{{/each}}
					</select>
				</div>
				<div class="input-group">
					<span class="input-group-addon" data-lang="calculationType">计算类型</span>
					<select id='option' type="text" name="str" class="form-control">

						{{each str as value key}}

							{{if value == "true"}}
								<option selected>{{key}}</option>
							{{else}}
								<option>{{key}}</option>
							{{/if}}
						{{/each}}
					</select>
				</div>
				<div class="input-group">
					<span class="input-group-addon" style='line-height:1.6' data-lang="resetType">重置类型</span>

                    <select id='resetType' type="text" name="resetType" class="form-control" >

                        {{each resetTypeOption as value key}}

                            {{if value == "true"}}
                                <option selected>{{key}}</option>
                            {{else}}
                                <option>{{key}}</option>
                            {{/if}}
                        {{/each}}
                    </select>

				</div>
				<div class="input-group {{if resetType !== 'Group'}}d-none {{else}} {{/if}}"  data-componentName="resetType" data-value="Group">
						<span class="input-group-addon" data-lang="resetGroup">重置组</span>
						<select id='resetGroup' type="text" name="resetGroup" class="form-control" >
							{{each resetGroupNames as value key}}
								{{if value == "true"}}
									<option selected>{{key}}</option>
								{{else}}
									<option>{{key}}</option>
								{{/if}}
							{{/each}}
						</select>
					</div>
				<div class="input-group">
					<span class="input-group-addon" style='line-height:1.6' data-lang="expression">表达式</span>
					<div  style='position:relative;'>
						<select id='field' type="text" name="splitType" value="" class="form-control" style='position:absolute;  top:0px;height:34px'>

							{{each splitType as value key}}
								
								{{if value == "true"}}
									<option selected>{{key}}</option>
								{{else}}
									<option>{{key}}</option>
								{{/if}}
							{{/each}}
						</select>
						<input id='fieldInput' value='{{f}}' class="form-control" type='text' style='position:absolute; top:0px; width:85%;border-right:none;outline:none;z-index:10;height:34px;'>
					</div>
				</div>

			</div>
		</div>
	</div>
</script>