<div class="span11">
	<fieldset>
		<legend>Application Setup</legend>

		<div class="tabbable span9">

			<ul class="nav nav-tabs">
				<?php $c=0;foreach ($o->module_config_id($mid) as $id => $data) : ?>
					<li class="<?php echo $c++ ? '' : 'active'; ?>"><a href="#tab<?php echo $c; ?>" data-toggle="tab"><?php echo $data['object']->display('name'); ?></a></li>
				<?php endforeach ?>
			</ul>

			<div class="tab-content">
				<?php $c=0;foreach ($o->module_config_id($mid) as $id => $data) : ?>
					<div class="tab-pane <?php echo $c++ ? '' : 'active'; ?>" id="tab<?php echo $c; ?>">
						<?php foreach ($data['data'] as $k => $v) : ?>
							<?php echo Form::input('module_config['.$id.']['.$k.']',$v,array('label'=>$k,'placeholder'=>$k)); ?>
						<?php endforeach ?>
					</div> <!-- /tab-pane -->
				<?php endforeach ?> <!-- /StaticList_RecurSchedule -->
			</div> <!-- /tab-content -->

		</div> <!-- /tabbable -->
	</fieldset>

	<div class="row">
		<div class="offset2">
			<button type="submit" class="btn btn-primary">Save changes</button>
			<button type="button" class="btn">Cancel</button>
		</div>
	</div>
</div> <!-- /span -->
