Changed the lock screen to look a bit less clunky

git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1041 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
Abijah
2014-03-03 06:44:57 +00:00
parent 13f62edbd7
commit 0d59351341
2 changed files with 4 additions and 9 deletions

View File

@@ -269,7 +269,7 @@ class UnitsController extends AppController {
$this->data = $this->Unit->find
('first',
array('contain' => array('Lock' => array('id')),
'fields' => array('id'),
'fields' => array('id', 'name'),
'conditions' => array('Unit.id' => $id)
));

View File

@@ -25,11 +25,8 @@ function lockDiv($obj) {
'field_prefix' => 'Lock.%{id}',
'fields' => array
(
'id' => array('name' => 'Lock',
'label_attributes' => array('class' => 'required'),
'opts' => array('options' => $obj->varstore['locks']),
'after' => "Select the lock."),
'id' => array('name' => 'Select Lock',
'opts' => array('options' => $obj->varstore['locks'])),
))) . "\n" .
// END lock-n-div
@@ -117,14 +114,12 @@ echo $form->hidden('id') . "\n";
?>
<div CLASS="dynamic-set">
<fieldset CLASS="lock superset">
<legend>Locks</legend>
<h3>Set Locks on Unit <?php echo $this->data['Unit']['name']; ?></h3>
<input type="hidden" id="lock-entry-id" value="0">
<div id="locks"></div>
<fieldset> <legend>
<a href="#" onClick="addLock(true); return false;">Add a Lock</a>
</legend> </fieldset>
</fieldset>
</div>
<?php