Updates to Module administration

This commit is contained in:
Deon George
2013-05-29 21:43:59 +10:00
parent 705518e9b3
commit d4168146ee
16 changed files with 287 additions and 215 deletions

View File

@@ -1,21 +0,0 @@
<?php echo Form::open(); ?>
<table>
<tr>
<td class="head">Module</td>
<td><?php echo $module->name; ?></td>
</tr>
<tr>
<td class="head">Name</td>
<td><?php echo $method->name; ?></td>
</tr>
<tr>
<td class="head">Notes</td>
<td><?php echo Form::input('notes',$method->name); ?></td>
</tr>
<tr>
<td class="head">Menu Display</td>
<td><?php echo StaticList_YesNo::form('menu_display',0); ?></td>
</tr>
</table>
<?php echo Form::submit('submit',_('Add'),array('class'=>'form_button')); ?>
<?php echo Form::close(); ?>

View File

@@ -1,8 +0,0 @@
<tr>
<td>
<a href="<?php echo URL::link('admin','group/edit/'.$group->id,TRUE); ?>"><?php echo $group->display('name'); ?></a>
</td>
<td><?php echo $group->display('notes'); ?></td>
<td><?php echo $group->display('status'); ?></td>
<td><?php echo Form::checkbox('groups[]',$group->id,$defined); ?></td>
</tr>

View File

@@ -1 +0,0 @@
</table>

View File

@@ -1,8 +0,0 @@
<!-- //@todo Translation required -->
<table class="box-left">
<tr class="head">
<td>Method</td>
<td>Notes</td>
<td>Group Active</td>
<td>Method Enabled</td>
</tr>

View File

@@ -0,0 +1,18 @@
<div class="row">
<div class="span10 offset1">
<fieldset>
<legend>Add Method</legend>
<?php echo Form::input('name',$name,array('label'=>'Method','disabled')); ?>
<?php echo Form::input('notes','',array('label'=>'Description','placeholder'=>'Method Description','class'=>'span8')); ?>
<?php echo Form::input('menu_display','',array('label'=>'Menu Title','placeholder'=>'Menu Title')); ?>
<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>
</fieldset>
</div> <!-- /span10 -->
</div> <!-- /row -->

View File

@@ -0,0 +1,47 @@
<div class="row">
<div class="span10 offset1">
<fieldset>
<legend>Configure Method </legend>
<?php echo Form::input('notes',$o->notes,array('label'=>'Description','placeholder'=>'Method Description','class'=>'span8')); ?>
<?php echo Form::input('menu_display',$o->menu_display,array('label'=>'Menu Title','placeholder'=>'Menu Title')); ?>
</fieldset>
</div> <!-- /span10 -->
</div> <!-- /row -->
<div class="row">
<div class="span10 offset1">
<fieldset>
<legend>Configure Method Security</legend>
<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>
<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>
<td><?php echo $go->label_bool('status',TRUE); ?></td>
<td><?php echo Form::checkbox('groups[]',$go->id,$o->has('group',$go)); ?></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
<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>
</fieldset>
</div> <!-- /span10 -->
</div> <!-- /row -->