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/module/method/admin/edit.php

43 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2013-11-28 06:41:34 +00:00
<div class="span5">
<fieldset>
<legend>Method Details</legend>
2013-05-29 11:43:59 +00:00
2013-11-28 06:41:34 +00:00
<?php echo Form::input('notes',$o->notes,array('label'=>'Description','placeholder'=>'Method Description','class'=>'span5')); ?>
<?php echo Form::input('menu_display',$o->menu_display,array('label'=>'Menu Title','placeholder'=>'Menu Title')); ?>
2013-05-29 11:43:59 +00:00
2013-11-28 06:41:34 +00:00
</fieldset>
</div> <!-- /span -->
2013-05-29 11:43:59 +00:00
2013-11-28 06:41:34 +00:00
<div class="span6">
<fieldset>
<legend>Method Security</legend>
2013-05-29 11:43:59 +00:00
2013-11-28 06:41:34 +00:00
<table class="table table-striped table-condensed table-hover" id="list-table">
<thead><tr>
<th>Method</th>
<th>Notes</th>
<th>Group Active</th>
<th>Method Enable</th>
</tr></thead>
2013-05-29 11:43:59 +00:00
2013-11-28 06:41:34 +00:00
<tbody>
2013-05-29 11:43:59 +00:00
<?php foreach (ORM::factory('Group')->find_all() as $go) : ?>
<tr>
<td><?php echo HTML::anchor(URL::link('admin','group/edit/'.$go->id,TRUE),$go->display('name')); ?></td>
<td><?php echo $go->display('notes'); ?></td>
2013-11-08 11:02:32 +00:00
<td><?php echo $go->display('status'); ?></td>
2013-05-29 11:43:59 +00:00
<td><?php echo Form::checkbox('groups[]',$go->id,$o->has('group',$go)); ?></td>
</tr>
<?php endforeach ?>
2013-11-28 06:41:34 +00:00
</tbody>
</table>
</fieldset>
2013-05-29 11:43:59 +00:00
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>
</div>
</div> <!-- /span -->