Changeset 697

Show
Ignore:
Timestamp:
08/22/05 00:34:21 (8 years ago)
Author:
fproulx
Message:

2005-08-22 Francois Proulx <francois.proulx@…>

  • Added edit button for quickly accessing Content editing mode
  • Changed the layout so the admin ui fits in a tighter space
Location:
trunk/wifidog-auth
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/ChangeLog

    r696 r697  
     12005-08-22 Francois Proulx <francois.proulx@gmail.com> 
     2        * Added edit button for quickly accessing Content editing mode 
     3        * Changed the layout so the admin ui fits in a tighter space 
     4         
    152005-08-21 Francois Proulx <francois.proulx@gmail.com> 
    26        * Added reference to new street address fields in mapping page and on status template 
  • trunk/wifidog-auth/wifidog/classes/Network.php

    r694 r697  
    226226                        $html .= "</div'>\n"; 
    227227                        $html .= "<div class='admin_section_tools'>\n"; 
     228                        $name = "node_".$this->id."_content_".$content->GetId()."_edit"; 
     229                        $html .= "<input type='button' name='$name' value='"._("Edit")."' onClick='window.location.href = \"".GENERIC_OBJECT_ADMIN_ABS_HREF."?object_class=Content&action=edit&object_id=".$content->GetId()."\";'>\n"; 
    228230                        $name = "content_group_".$this->id."_element_".$content->GetId()."_erase"; 
    229231                        $html .= "<input type='submit' name='$name' value='"._("Remove")."'>"; 
  • trunk/wifidog-auth/wifidog/classes/Node.php

    r695 r697  
    11<?php 
    2  
    3  
    42/********************************************************************\ 
    53 * This program is free software; you can redistribute it and/or    * 
     
    535533                $name = "node_".$this->getId()."_description"; 
    536534                $value = htmlspecialchars($this->getDescription(), ENT_QUOTES); 
    537                 $html .= "<input type='text' size ='50' value='$value' name='$name'>\n"; 
     535                $html .= "<textarea cols='50' rows='5' name='$name'>$value</textarea>\n"; 
    538536                $html .= "</div>\n"; 
    539537                $html .= "</div>\n"; 
     
    555553                $name = "node_".$this->getId()."_civic_number"; 
    556554                $value = htmlspecialchars($this->getCivicNumber(), ENT_QUOTES); 
    557                 $html .= "<input type='text' size ='50' value='$value' name='$name'>\n"; 
     555                $html .= "<input type='text' size ='10' value='$value' name='$name'>\n"; 
    558556                $html .= "</div>\n"; 
    559557                $html .= "</div>\n"; 
     
    565563                $name = "node_".$this->getId()."_street_name"; 
    566564                $value = htmlspecialchars($this->getStreetName(), ENT_QUOTES); 
    567                 $html .= "<input type='text' size ='50' value='$value' name='$name'>\n"; 
     565                $html .= "<input type='text' size ='25' value='$value' name='$name'>\n"; 
    568566                $html .= "</div>\n"; 
    569567                $html .= "</div>\n"; 
     
    575573                $name = "node_".$this->getId()."_city"; 
    576574                $value = htmlspecialchars($this->getCity(), ENT_QUOTES); 
    577                 $html .= "<input type='text' size ='50' value='$value' name='$name'>\n"; 
     575                $html .= "<input type='text' size ='25' value='$value' name='$name'>\n"; 
    578576                $html .= "</div>\n"; 
    579577                $html .= "</div>\n"; 
     
    585583                $name = "node_".$this->getId()."_province"; 
    586584                $value = htmlspecialchars($this->getProvince(), ENT_QUOTES); 
    587                 $html .= "<input type='text' size ='50' value='$value' name='$name'>\n"; 
     585                $html .= "<input type='text' size ='15' value='$value' name='$name'>\n"; 
    588586                $html .= "</div>\n"; 
    589587                $html .= "</div>\n"; 
     
    595593                $name = "node_".$this->getId()."_postal_code"; 
    596594                $value = htmlspecialchars($this->getPostalCode(), ENT_QUOTES); 
    597                 $html .= "<input type='text' size ='50' value='$value' name='$name'>\n"; 
     595                $html .= "<input type='text' size ='10' value='$value' name='$name'>\n"; 
    598596                $html .= "</div>\n"; 
    599597                $html .= "</div>\n"; 
     
    605603                $name = "node_".$this->getId()."_country"; 
    606604                $value = htmlspecialchars($this->getCountry(), ENT_QUOTES); 
    607                 $html .= "<input type='text' size ='50' value='$value' name='$name'>\n"; 
     605                $html .= "<input type='text' size ='15' value='$value' name='$name'>\n"; 
    608606                $html .= "</div>\n"; 
    609607                $html .= "</div>\n"; 
     
    615613                $name = "node_".$this->getId()."_public_phone"; 
    616614                $value = htmlspecialchars($this->getTelephone(), ENT_QUOTES); 
    617                 $html .= "<input type='text' size ='50' value='$value' name='$name'>\n"; 
     615                $html .= "<input type='text' size ='20' value='$value' name='$name'>\n"; 
    618616                $html .= "</div>\n"; 
    619617                $html .= "</div>\n"; 
     
    665663                $html .= "<div class='admin_section_title'>"._("Latitude")." : </div>\n"; 
    666664                $html .= "<div class='admin_section_data'>\n"; 
    667                 $html .= "<input type='text' size ='50' value='$gis_lat_value' id='$gis_lat_name' name='$gis_lat_name'>\n"; 
     665                $html .= "<input type='text' size ='15' value='$gis_lat_value' id='$gis_lat_name' name='$gis_lat_name'>\n"; 
    668666                $html .= "</div>\n"; 
    669667                $html .= "</div>\n"; 
     
    672670                $html .= "<div class='admin_section_title'>"._("Longitude")." : </div>\n"; 
    673671                $html .= "<div class='admin_section_data'>\n"; 
    674                 $html .= "<input type='text' size ='50' value='$gis_long_value' id='$gis_long_name' name='$gis_long_name'>\n"; 
     672                $html .= "<input type='text' size ='15' value='$gis_long_value' id='$gis_long_name' name='$gis_long_name'>\n"; 
    675673                $html .= "</div>\n"; 
    676674                $html .= "</div>\n"; 
     
    780778                        $html .= "</div>\n"; 
    781779                        $html .= "<div class='admin_section_tools'>\n"; 
     780                        $name = "node_".$this->id."_content_".$content->GetId()."_edit"; 
     781                        $html .= "<input type='button' name='$name' value='"._("Edit")."' onClick='window.location.href = \"".GENERIC_OBJECT_ADMIN_ABS_HREF."?object_class=Content&action=edit&object_id=".$content->GetId()."\";'>\n"; 
    782782                        $name = "node_".$this->id."_content_".$content->GetId()."_erase"; 
    783783                        $html .= "<input type='submit' name='$name' value='"._("Remove")."'>";