webbuild-cgi: implement auto-resizing of some input boxes
This commit is contained in:
parent
0deefe9b43
commit
2d68892ef4
@ -739,17 +739,17 @@ if [ "$MAINTAINERMODE" = "true" -o ! "${AUTOPORT_UPDATE[$ENVIRONMENT]}" ]; then
|
||||
|
||||
# SPECFILE creation
|
||||
if [ ! "${AUTOPORT_UPDATE[$ENVIRONMENT]}" -a "$MAINTAINERMODE" != "true" ]; then
|
||||
echo -n "<speccreate><![CDATA["
|
||||
echo -n " Start from URL:<input type=text id=speccreateurl value=\"\" size=\"50\">"
|
||||
echo -n " name:<input type=text id=speccreatename value=\"\" size=\"10\">"
|
||||
echo -n "<speccreate><![CDATA[<div style=\"white-space:nowrap;\">"
|
||||
echo -n " Start from URL:<input type=text id=speccreateurl value=\"\" style=\"width:32%\">"
|
||||
echo -n " name:<input type=text id=speccreatename value=\"\" style=\"width:10%\">"
|
||||
echo -n " type:<select id=speccreatetype>"
|
||||
for t in `ls /usr/share/autospec/templates`; do
|
||||
[ "$t" = "library" ] && SELECTED="selected=selected" || SELECTED=
|
||||
echo -n "<option value=\"$t\" $SELECTED>$t</option>"
|
||||
done
|
||||
echo -n "</select>"
|
||||
echo -n " version:<input type=text id=speccreateversion value=\"\" size=\"5\">"
|
||||
echo -n " branch:<input type=text id=speccreategitbranch value=\"\" size=\"5\">"
|
||||
echo -n " version:<input type=text id=speccreateversion value=\"\" style=\"width:5%\">"
|
||||
echo -n " branch:<input type=text id=speccreategitbranch value=\"\" style=\"width:5%\">"
|
||||
echo -n "<input type=button id=speccreatebutton value=\"Create .spec\" onclick=ajax_getvalues(\""
|
||||
echo -n "REQUEST=speccreate&ENVIRONMENT=$ENVIRONMENT&REPOSITORY=$REPOSITORY&"
|
||||
echo -n "PACKAGE=\"+encodeURIComponent(getElementById('speccreatename').value)+\"&"
|
||||
@ -757,7 +757,7 @@ if [ "$MAINTAINERMODE" = "true" -o ! "${AUTOPORT_UPDATE[$ENVIRONMENT]}" ]; then
|
||||
echo -n "SPECCREATEVERSION=\"+getElementById('speccreateversion').value+\"&"
|
||||
echo -n "SPECCREATEGITBRANCH=\"+getElementById('speccreategitbranch').value+\"&"
|
||||
echo -n "SPECCREATEURL=\"+encodeURIComponent(getElementById('speccreateurl').value));>"
|
||||
echo "]]></speccreate>"
|
||||
echo "</div>]]></speccreate>"
|
||||
elif [ "$MAINTAINERMODE" = "true" ]; then
|
||||
echo -n "<speccreate> </speccreate>"
|
||||
fi
|
||||
@ -1285,8 +1285,10 @@ if [ "$MAINTAINERMODE" != "true" ]; then
|
||||
echo -n "ADDPATCHURL=\"+encodeURIComponent(getElementById('addpatchurl').value)+\"&"
|
||||
echo -n "ADDPATCHNAME=\"+encodeURIComponent(getElementById('addpatchname').value));>"
|
||||
echo -n " <a href=\"http://pastebin.com\" target=_new>pastebin</a><br>"
|
||||
echo -n "URL:<input type=text id=addpatchurl value=\"\" size=\"28\">"
|
||||
echo -n "<br>$PACKAGE-${SPECVAR_Version}-<input type=text id=addpatchname value=\"\" size=\"10\">.patch"
|
||||
echo -n "URL:<input type=text id=addpatchurl value=\"\" style=\"size:100%\">"
|
||||
echo -n "<br><div style=\"white-space:nowrap;font-size:9px;width:100%;overflow:hidden\"><span style=\"float:left;margin-top:6px;\">$PACKAGE-${SPECVAR_Version}-</span>"
|
||||
echo -n "<span style=\"display:block;float:right;margin-top:6px;\">.patch</span>"
|
||||
echo -n "<span style=\"display:block;overflow:hidden;padding-right:5px;\"><input type=text id=addpatchname value=\"\" style=\"width:100%\"></span></div>"
|
||||
echo -n "</div><hr>"
|
||||
# info from package sources
|
||||
echo -n "<b>Info from package in the works:</b><br>"
|
||||
|
Loading…
Reference in New Issue
Block a user