Edit locations
authorThomas Mudrunka <tomas@mudrunka.cz>
Mon, 16 Apr 2012 07:58:32 +0000 (09:58 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Mon, 16 Apr 2012 07:58:32 +0000 (09:58 +0200)
index.php

index 6296552329f21e584583511ee65a902658dcf5a6..4c2f12c6dc5b41374f587407a2684c76cb585d1a 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -357,7 +357,7 @@ EOF;
 
        function table_add_relations(&$table, $class, $suffix_relations='_relations') {
                $where_url = '%d/?where[%c]==%v';
-               $relations = array( //TODO: Autodetect???
+               $relations = array( //TODO: Autodetect??? //TODO: Add [edit] link to all classes
                        'model' => array(
                                'model_id' => array(array('item',$where_url),array('edit','model/%v/edit/')),
                                'model_barcode' => array(array('store','assistant/%d?barcode=%v')),
@@ -373,7 +373,7 @@ EOF;
                        'room' => array('room_id' => array(array('item',$where_url))),
                        'status' => array('status_id' => array(array('item',$where_url))),
                        'location' => array(
-                               'location_id' => array(array('item',$where_url)),
+                               'location_id' => array(array('item',$where_url),array('edit','location/%v/edit/')),
                                'location_name' => array(array('smokeping','http://tartarus.brevnov.czf/cgi-bin/smokeping.cgi?filter=%v'))
                        )
                );
This page took 0.119465 seconds and 4 git commands to generate.