{% import "bootstrap/wtf.html" as wtf %}
<div id="modal-create-config" class="modal fade" data-backdrop="static">
	<div class="modal-dialog">
		<form class="form" id="config_form" enctype="multipart/form-data" role="form">
			<div class="modal-content">
				<div class="modal-header">
					<a href="#" role="button" class="close cancel" aria-label="Close"><span aria-hidden="true">&times;</span></a>
					<h4 class="modal-title">New Configuration</h4>
				</div>
				<div class="modal-body">
					<div class="form-device">
					{{ config_form.hidden_tag() }}
					{{ wtf.form_errors(config_form, hiddens = "only") }}
					
					{{ wtf.form_field(config_form.name) }}
					{{ wtf.form_field(config_form.lockcode) }}
					{{ wtf.form_field(config_form.map_area_file) }}
					{{ wtf.form_field(config_form.map_area_filename, readonly = "readonly") }}
					</div>
				</div>
				<div class="modal-footer">
					<a href="#" role="button" class="btn btn-default cancel">Cancel</a>
					{{ wtf.form_field(config_form.submit, button_map = {'config_submit': 'primary'}) }}
				</div>
			</div>
		</form>
	</div>
</div>

{% import "bootstrap/wtf.html" as wtf %}
<div id="config-dialog" class="modal" data-backdrop="static">
	<div class="modal-dialog">
		<form class="form" id="config_form" enctype="multipart/form-data" role="form">
			<div class="modal-content">
				<div class="modal-header">
					<a href="#" role="button" class="close cancel" aria-label="Close"><span aria-hidden="true">&times;</span></a>
					<h4 class="modal-title">New Configuration</h4>
				</div>
				<div class="modal-body">
					{{ config_form.hidden_tag() }}
					{{ wtf.form_errors(config_form, hiddens = "only") }}
					
					{{ wtf.form_field(config_form.name) }}
					{{ wtf.form_field(config_form.lockcode) }}
					{{ wtf.form_field(config_form.map_area_file) }}
					{{ wtf.form_field(config_form.map_area_filename, readonly = "readonly") }}
				</div>
				<div class="modal-footer">
					<a href="#" role="button" class="btn btn-default cancel">Cancel</a>
					{{ wtf.form_field(config_form.submit, button_map = {'config_submit': 'primary'}) }}
				</div>
			</div>
		</form>
	</div>
</div>

Remove extra useless div and avoid fading dialog for show/hide.
Remove extra useless div and avoid fading dialog for show/hide.
