Changeset 12030 for trunk/www


Ignore:
Timestamp:
09/08/11 12:55:15 (13 years ago)
Author:
Daniela Dorner
Message:
improved layout
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/po.js

    r12020 r12030  
    188188    //field descr
    189189    input4 = document.createElement("INPUT");
    190     input4.style.width = 200;
     190    input4.style.width = 300;
    191191    input4.id = 'newdescr0';
    192192    switch(addcase)
     
    201201        //fields for keys
    202202        input2 = document.createElement("INPUT");
    203         input2.style.width = 100;
     203        input2.style.width = 200;
    204204        input2.id = '1key0';
    205205        cell2.appendChild(input2);
     
    261261        input2 = document.createElement("INPUT");
    262262        input2.id = '1key0';
    263         input2.style.width = 100;
     263        input2.style.width = 200;
    264264        if (key1)
    265265            input2.value = key1;
     
    337337        //field for val
    338338        input3 = document.createElement("INPUT");
    339         input3.style.width = 100;
     339        input3.style.width = 200;
    340340        input3.id = 'newval0';
    341341        cell3.appendChild(input3);
     
    470470    }
    471471    else
    472         textval="<input align='right' id='newval"+index+"' value='"+oldval+"'>";
     472        textval="<input size='30' align='right' id='newval"+index+"' value='"+oldval+"'>";
    473473    document.getElementById('val'+index).innerHTML = textval;
    474474    //set field for description
    475     document.getElementById('descr'+index).innerHTML = "<input align='right' id='newdescr"+index+"' value='"+olddescr+"'>";
    476     // added to make min/max editable
    477     document.getElementById('min'+index).innerHTML = "<input align='right' id='newmin"+index+"' value='"+oldmin+"'>";
    478     document.getElementById('max'+index).innerHTML = "<input align='right' id='newmax"+index+"' value='"+oldmax+"'>";
     475    document.getElementById('descr'+index).innerHTML = "<input size='40' align='right' id='newdescr"+index+"' value='"+olddescr+"'>";
     476    if (oldtype=='int' || oldtype=='float')
     477    {
     478        document.getElementById('min'+index).innerHTML = "<input size='5' align='right' id='newmin"+index+"' value='"+oldmin+"'>";
     479        document.getElementById('max'+index).innerHTML = "<input size='5' align='right' id='newmax"+index+"' value='"+oldmax+"'>";
     480    }
    479481    /*
    480482    //set field for type
Note: See TracChangeset for help on using the changeset viewer.