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

37 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2016-08-25 13:23:25 +00:00
<div class="col-md-12">
<fieldset class="col-md-5">
2014-09-29 07:30:54 +00:00
<legend>Method Details</legend>
2016-08-25 13:23:25 +00:00
<?php
echo View::factory('field/text')->set('data',['field'=>'notes','value'=>$o->notes,'text'=>'Description','class'=>'col-md-9','classlabelnum'=>'3']);
echo View::factory('field/text')->set('data',['field'=>'menu_display','value'=>$o->menu_display,'text'=>'Menu Title','class'=>'col-md-9','classlabelnum'=>'3']);
2016-08-25 13:23:25 +00:00
?>
2014-09-29 07:30:54 +00:00
</fieldset>
2016-08-25 13:23:25 +00:00
<fieldset class="col-md-7">
2014-09-29 07:30:54 +00:00
<legend>Method Security</legend>
<table class="table table-striped table-condensed table-hover" id="list-table">
<thead><tr>
<th>Method</th>
<th>Notes</th>
2016-08-25 13:23:25 +00:00
<th>Active</th>
<th>Enabled</th>
2014-09-29 07:30:54 +00:00
</tr></thead>
<tbody>
<?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>
2016-08-30 16:17:46 +00:00
<td><?php echo $go->display('active'); ?></td>
2014-09-29 07:30:54 +00:00
<td><?php echo Form::checkbox('groups[]',$go->id,$o->has('group',$go),array('nocg'=>TRUE)); ?></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</fieldset>
2016-08-25 13:23:25 +00:00
<?php echo View::factory('field/submit'); ?>
</div>