Forums / Setup & design / Problem with form width in form templates

Problem with form width in form templates

Author Message

Tor Olav Steinsvoll

Saturday 26 July 2003 3:20:12 am

I hope that there is someone that can help me a bit here. I have trouble with setting the size of the form. I tried to put the form inside a table and set the width of the table but that didn't work. I also tried to set style in a stylesheet, but that didn't work either.

Here is the code I am using:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
{default content_object=$node.object
content_version=$node.contentobject_version_object
node_name=$node.name}

<form method="post" action={"content/action"|ezurl}>

<b>Subject</b>

<div class="skjema">{attribute_view_gui attribute=$node.data_map.subject}</div>

<b>Feedback</b>

<div class="skjema">{attribute_view_gui attribute=$node.data_map.feedback}</div>

{section name=ContentAction loop=$content_object.content_action_list show=$content_object.content_action_list}
<div class="block">
<input type="submit" name="{$ContentAction:item.action}" value="{$ContentAction:item.name}" />
</div>
{/section}

<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$content_object.id}" />
<input type="hidden" name="ViewMode" value="full" />

</form>

{/default}

</body>
</html>

Can someone please tell me what I am doing wrong here?

Regards from Tor Olav

Robin Sørlie

Saturday 26 July 2003 3:35:00 am

What do you mean by form width? I assume you mean the box where visitors can write their stuff. You can try this:

<b>Subject</b>

<div class="skjema" style="width: 200; height: 20">{attribute_view_gui attribute=$node.data_map.subject}</div>

<b>Feedback</b>

<div class="skjema" style="width: 200; height: 20">{attribute_view_gui attribute=$node.data_map.feedback}</div>

Just alter the width to what you need. Pretty sure you can spesify this in .css to.

-Robin

Tor Olav Steinsvoll

Saturday 26 July 2003 8:58:33 am

Thanks for your help Robin, but I got the same result as before. The texfield is way to wide.

I think it has to be some override I don't understand here. What you told me I tried to do in the CSS file too.

Any other suggestions?

Regards from Tor Olav

Bjørn Kaarstein

Monday 28 July 2003 12:10:16 am

Try to copy the core.css from standard to your own stylesheets folder. Then I think you need to alter some of the items under /* FORMS */. Like i.e. input.box, textarea.box
{
width: 200px;
}

Regards Bjørn

Robin Sørlie

Monday 28 July 2003 6:18:37 am

Yes, that might work, try to alter this in core.css:

/* FORMS */

form
{
padding: 0px;
margin: 0px;
}

input.box, textarea.box
{
width: 468px;
}

input.halfbox, textarea.halfbox
{
width: 230px;
}

Didn't think of that cause you didn't have any reference to this class in your html code, but since you use the attribute function I guess this automaticly points to core.css

eZ debug

Timing: Jan 31 2025 01:16:55
Script start
Timing: Jan 31 2025 01:16:55
Module start 'content'
Timing: Jan 31 2025 01:16:55
Module end 'content'
Timing: Jan 31 2025 01:16:55
Script end

Main resources:

Total runtime0.1706 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.0625370.2734
Module start 'content' 0.00750.0118 958.33591,005.4688
Module end 'content' 0.01940.1512 1,963.80473,901.0391
Script end 0.1706  5,864.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00432.4988200.0002
Check MTime0.00130.7497200.0001
Mysql Total
Database connection0.00110.659410.0011
Mysqli_queries0.085850.27331410.0006
Looping result0.00110.66391390.0000
Template Total0.150888.410.1508
Template load0.00080.485310.0008
Template processing0.150087.910310.1500
Override
Cache load0.00060.345710.0006
Sytem overhead
Fetch class attribute can translate value0.00191.091310.0019
XML
Image XML parsing0.00020.131210.0002
General
dbfile0.00452.6527200.0002
String conversion0.00000.002930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs