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 $this->data = $this->Unit->find
('first', ('first',
array('contain' => array('Lock' => array('id')), array('contain' => array('Lock' => array('id')),
'fields' => array('id'), 'fields' => array('id', 'name'),
'conditions' => array('Unit.id' => $id) 'conditions' => array('Unit.id' => $id)
)); ));

View File

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