This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/application/views/setup/admin/module.php

33 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2013-11-28 06:41:34 +00:00
<div class="span11">
<fieldset>
<legend>Application Setup</legend>
2013-11-28 06:41:34 +00:00
<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 -->
2013-11-28 06:41:34 +00:00
<?php endforeach ?> <!-- /StaticList_RecurSchedule -->
</div> <!-- /tab-content -->
</div> <!-- /tabbable -->
</fieldset>
2013-11-28 06:41:34 +00:00
<div class="row">
<div class="offset2">
<button type="submit" class="btn btn-primary">Save changes</button>
<button type="button" class="btn">Cancel</button>
</div>
2013-11-28 06:41:34 +00:00
</div>
</div> <!-- /span -->