Index: trunk/webapp/abscontrol/views.py =================================================================== diff --git a/trunk/webapp/abscontrol/views.py b/trunk/webapp/abscontrol/views.py --- a/trunk/webapp/abscontrol/views.py (revision 132) +++ b/trunk/webapp/abscontrol/views.py (revision 133) @@ -8,7 +8,55 @@ def new(request): profile_list = Profile.objects.all() - return render_to_response('abscontrol/new.html', {'profile_list': profile_list}) + txtAntenna = "[[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ + "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ + "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ + "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ + "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ + "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ + "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ + "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]]" + txtTxUp = "[[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]]" + txtTxDown = "[[1,1,1,1,0,0,0,0]," \ + "[1,1,1,1,0,0,0,0]," \ + "[1,1,1,1,0,0,0,0]," \ + "[1,1,1,1,0,0,0,0]," \ + "[0,0,0,0,1,1,1,1]," \ + "[0,0,0,0,1,1,1,1]," \ + "[0,0,0,0,1,1,1,1]," \ + "[0,0,0,0,1,1,1,1]]" + txtRxUp = "[[0,0,0,0,1,1,1,1]," \ + "[0,0,0,0,1,1,1,1]," \ + "[0,0,0,0,1,1,1,1]," \ + "[0,0,0,0,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]]" + txtRxDown = "[[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]," \ + "[1,1,1,1,1,1,1,1]]" + + txtUes = "[0.533333,0.00000,1.06667,0.00000]" + + return render_to_response('abscontrol/new.html', {'profile_list': profile_list, + 'txtAntenna' : txtAntenna, + 'txtUes' : txtUes, 'txtTxUp' : txtTxUp, + 'txtTxDown' : txtTxDown, 'txtRxUp' : txtRxUp, + 'txtRxDown' : txtRxDown, + }) def save(request): Index: trunk/webapp/static/css/style.css =================================================================== diff --git a/trunk/webapp/static/css/style.css b/trunk/webapp/static/css/style.css --- a/trunk/webapp/static/css/style.css (revision 132) +++ b/trunk/webapp/static/css/style.css (revision 133) @@ -87,11 +87,17 @@ #divProfile {border: 0px solid #dff; margin: 10px 0px; padding: 10px 10px; width: 500px} .flsAntenna {margin: 10px 0px; width: 750px; padding: 10px 10px} #divPattern textarea,input[type=text],label {font-family: Monaco; font-size: inherit;} -#divPattern input[type=text] {width: 200px} + #divPattern textarea {resize: none; overflow: hidden} -.divAntenna {float: left; margin: 10px; height: 150px} + +.divAntenna {float: left; margin: 10px; height: 160px; border: 1px solid #fcc !important; width: 260px} .divAntenna label {display: block} +.txtAntenna {max-width: 250px; max-height: 125px; width: 250px; height: 125px} + .divTx {display: block; float: left; margin: 10px; height: 150px} .divTx label {display: block} +.divTx textarea {width: 135px; max-width: 135px; height: 125px; max-height: 125px; text-align: justify} + .divUes {display: block; margin: 10px} -.txtAntenna {max-width: 200px; max-height: 120px} +.divUes input[type=text] {width: 240px; max-width: 240px;} + Index: trunk/webapp/templates/abscontrol/new.html =================================================================== diff --git a/trunk/webapp/templates/abscontrol/new.html b/trunk/webapp/templates/abscontrol/new.html --- a/trunk/webapp/templates/abscontrol/new.html (revision 132) +++ b/trunk/webapp/templates/abscontrol/new.html (revision 133) @@ -15,20 +15,20 @@ UP
- +
- +
- +
- +
@@ -37,20 +37,20 @@ DOWN
- +
- +
- +
- +