<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=2586&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=2586</link>
		<description><![CDATA[Die aktuellsten Beiträge in [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern.]]></description>
		<lastBuildDate>Sat, 13 Oct 2012 06:48:13 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21441#p21441</link>
			<description><![CDATA[<p>Bis alle Browser &#039;neue&#039; Features unterstützen, müssen wir wohl wieder ne Weile warten :-(.<br />Bis dato sieht das so aus:<br /><a href="http://www.w3schools.com/html5/att_input_required.asp" rel="nofollow">http://www.w3schools.com/html5/att_input_required.asp</a>.</p><p>Das aria-required hilft vor allem Leuten, die auf Hilfstechnologien angewiesen sind.</p>]]></description>
			<author><![CDATA[dummy@example.com (Cherry)]]></author>
			<pubDate>Sat, 13 Oct 2012 06:48:13 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21441#p21441</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21440#p21440</link>
			<description><![CDATA[<p>@ Cherry: Vielen Dank für den Tipp. Habe es bei mir noch etwas mehr den YAML-Klassen angepasst.</p><p>Beim Testen ist mir aufgefallen, dass Safari (5.1.7 Mac) keine HTML5-Formularvalidierung bringt und sofort in die JS-Variante springt. Weder die einfache Form <strong><em>required</em></strong> noch <strong><em>required=&quot;required&quot; aria-required=&quot;true&quot;</em></strong> funktionieren. Oder bevorzugt er etwa das JS, wenn es eins gibt? Chrome und Firefox basteln dagegen sofort ihre Feldlein rein.</p>]]></description>
			<author><![CDATA[dummy@example.com (COR9)]]></author>
			<pubDate>Fri, 12 Oct 2012 22:29:03 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21440#p21440</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21406#p21406</link>
			<description><![CDATA[<p>Noch ne Ergänzeung:</p><p>Ich habe gerade vor kurzem ein Formular so umgebaut, daß es mit YAML funktioniert.<br />Die Idee dazu wie das gehen könnte kam mir beim Lesen von<a href="http://www.i-do-this.com/blog/38/Qualify-FormBuilder-for-HTML5" rel="nofollow"> Jonathan Schmids Artikel </a></p><p>Mein Template sieht nun so aus:</p><div class="codebox"><pre class="vscroll"><code>[== Smarty ==]
{* Layout  / pure CSS *}
{literal}
&lt;script&gt;
function fbht(htid)
	{
		var fbhtc=document.getElementById(htid);
		if (fbhtc)
			{
			if (fbhtc.style.display == &#039;none&#039;)
				{
				fbhtc.style.display = &#039;inline&#039;;
				}
			else
				{
				fbhtc.style.display = &#039;none&#039;;
				}
			}
}
&lt;/script&gt;
{/literal}
{$fb_form_header}
{if $fb_form_done == 1}
	{* This first section is for displaying submission errors *}
	{if isset($fb_submission_error) &amp;&amp; $fb_submission_error}
		&lt;div class=&quot;error_message&quot;&gt;{$fb_submission_error}&lt;/div&gt;
		{if isset($fb_show_submission_errors) &amp;&amp; $fb_show_submission_errors}
			&lt;div class=&quot;error&quot; role=&quot;alert&quot;&gt;
			&lt;ul&gt;
			{foreach from=$fb_submission_error_list item=thisErr}
				&lt;li&gt;{$thisErr}&lt;/li&gt;
			{/foreach}
			&lt;/ul&gt;
		&lt;/div&gt;
		{/if}
	{/if}
{else}
	{* this section is for displaying the form *}
	{* we start with validation errors *}
	{if isset($fb_form_has_validation_errors) &amp;&amp; $fb_form_has_validation_errors}
		&lt;div class=&quot;error_message&quot;&gt;
		&lt;ul&gt;
		{foreach from=$fb_form_validation_errors item=thisErr}
			&lt;li&gt;{$thisErr}&lt;/li&gt;
		{/foreach}
		&lt;/ul&gt;
		&lt;/div&gt;
	{/if}
	{if isset($captcha_error) &amp;&amp; $captcha_error}
		&lt;div class=&quot;error_message&quot; role=&quot;alert&quot;&gt;{$captcha_error}&lt;/div&gt;
	{/if}

	{* and now the form itself *}
	{* hier geaendert fuer yaml form classes *}
	{eval var=$fb_form_start|replace:&quot;cms_form&quot;:&quot;ym-form ym-columnar linearize-form&quot; }
	{*geaendert bis hier *}
	&lt;div&gt;{$fb_hidden}&lt;/div&gt;
	&lt;div{if $css_class != &#039;&#039;} class=&quot;{$css_class}&quot;{/if}&gt;
	{if $total_pages gt 1}&lt;span&gt;{$title_page_x_of_y}&lt;/span&gt;{/if}
	{foreach from=$fields item=entry}
		{if $entry-&gt;display == 1}
			{strip}
			{if $entry-&gt;needs_div == 1}
				&lt;div required=&quot;required&quot; aria-required=&quot;true&quot;
				{if $entry-&gt;required == 1 || $entry-&gt;css_class != &#039;&#039; || $entry-&gt;valid == 0} class=&quot;
					{if $entry-&gt;required == 1}required{/if}
					{if $entry-&gt;css_class != &#039;&#039;} {$entry-&gt;css_class}{/if}
					{if $entry-&gt;valid == 0} fb_invalid{/if}
					&quot;
				{/if}
				&gt;
			{/if}
			{if $entry-&gt;hide_name == 0}
				&lt;label{if $entry-&gt;multiple_parts != 1} for=&quot;{$entry-&gt;input_id}&quot;{/if}&gt;{$entry-&gt;name}
				{if $entry-&gt;required_symbol != &#039;&#039;}
					{$entry-&gt;required_symbol}
				{/if}
				&lt;/label&gt;
			{/if}
			{if $entry-&gt;multiple_parts == 1}
				{section name=numloop loop=$entry-&gt;input}
					{if $entry-&gt;label_parts == 1}
						&lt;div&gt;{$entry-&gt;input[numloop]-&gt;input}&amp;nbsp;{$entry-&gt;input[numloop]-&gt;name}&lt;/div&gt;
					{else}
						{$entry-&gt;input[numloop]-&gt;input}
					{/if}
					{if isset($entry-&gt;input[numloop]-&gt;op) &amp;&amp; $entry-&gt;input[numloop]-&gt;op}{$entry-&gt;input[numloop]-&gt;op}{/if}
				{/section}
			{else}
			{* http://www.i-do-this.com/blog/38/Qualify-FormBuilder-for-HTML5 *}
{if $entry-&gt;smarty_eval == &#039;1&#039;}{if $entry-&gt;required == 1}{eval var=$entry-&gt;input|replace:&#039;&lt;input&#039;:&#039;&lt;input required=&quot;required&quot; aria-required=&quot;true&quot;&#039;|replace:&#039;&lt;textarea&#039;:&#039;&lt;textarea required=&quot;required&quot;&#039;}{else}{eval var=$entry-&gt;input}{/if}{else}{if $entry-&gt;required == 1}{$entry-&gt;input|replace:&#039;&lt;input&#039;:&#039;&lt;input required=&quot;required&quot; aria-required=&quot;true&quot;&#039;|replace:&#039;&lt;textarea&#039;:&#039;&lt;textarea required=&quot;required&quot;&#039;}{else}{$entry-&gt;input}{/if}{/if}
			{* changes bis hier *}
			{/if}
			{if $entry-&gt;helptext != &#039;&#039;}&amp;nbsp;&lt;a href=&quot;javascript:fbht(&#039;{$entry-&gt;field_helptext_id}&#039;)&quot;&gt;&lt;img src=&quot;modules/FormBuilder/images/info-small.gif&quot; alt=&quot;Help&quot; /&gt;&lt;/a&gt;
					&lt;span id=&quot;{$entry-&gt;field_helptext_id}&quot; style=&quot;display:none&quot; class=&quot;fbr_helptext&quot;&gt;{$entry-&gt;helptext}&lt;/span&gt;{/if}
			{if $entry-&gt;valid == 0} &lt;span&gt;{$entry-&gt;error}&lt;/span&gt;{/if} 
			{if $entry-&gt;needs_div == 1}
				&lt;/div&gt;
			{/if}
			{/strip}
		{/if}
	{/foreach}
	{if $has_captcha == 1}
		&lt;div class=&quot;captcha&quot;&gt;{$graphic_captcha}{$title_captcha}&lt;br /&gt;{$input_captcha}&lt;/div&gt;
	{/if}
	&lt;div class=&quot;submit&quot;&gt;{$prev}{$submit}&lt;/div&gt;
	&lt;/div&gt;
	{$fb_form_end}
{/if}
{$fb_form_footer}</code></pre></div><p>Zusätzlich zum Originaltemplate sind hier die require Attribute mit eingebaut, ebenso wie die aria-required Attribute.</p><p>Vielleicht hilft das ja mal jemandem.</p>]]></description>
			<author><![CDATA[dummy@example.com (Cherry)]]></author>
			<pubDate>Thu, 11 Oct 2012 16:48:58 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21406#p21406</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21400#p21400</link>
			<description><![CDATA[<p>@ NaN: Ich arbeite mit YAML und möchte deshalb lieber das Fromular etwas dem CSS-Framework annähern und es auch bissl abspecken, anstatt umgekehrt die YAML-Klassen zu ändern.</p><p>@ Klenkes: Danke, das hat geklappt.</p>]]></description>
			<author><![CDATA[dummy@example.com (COR9)]]></author>
			<pubDate>Thu, 11 Oct 2012 14:02:25 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21400#p21400</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21399#p21399</link>
			<description><![CDATA[<div class="quotebox"><cite>antibart schrieb:</cite><blockquote><div><p>Ich weiß nicht, ob sich da was in den allerneusten Version was geändert hat, aber eigentlilch geht das ganz einfach über</p><p>Formbuilder-&gt;Hauptseite&gt;Details des Hauptformulars&gt; &quot;CSS-Klasse für dieses Formular.&quot;</p><p>Ich selbst die Klasse aber nie gebraucht, um meine Formulare zu gestalten.</p><p>...</p></div></blockquote></div><p>das wird aber nicht aufs &lt;form&gt; tag angewandt sondern auf den div innerhalb des form tags <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Thu, 11 Oct 2012 13:58:34 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21399#p21399</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21398#p21398</link>
			<description><![CDATA[<p>Ich weiß nicht, ob sich da was in den allerneusten Version was geändert hat, aber eigentlilch geht das ganz einfach über</p><p>Formbuilder-&gt;Hauptseite&gt;Details des Hauptformulars&gt; &quot;CSS-Klasse für dieses Formular.&quot;</p><p>Ich selbst habe die Klasse aber nie gebraucht, um meine Formulare zu gestalten.</p><p>...</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Thu, 11 Oct 2012 13:48:58 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21398#p21398</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21397#p21397</link>
			<description><![CDATA[<p>Falls du es ändern willst, funktioniert dies schon:</p><div class="codebox"><pre><code>{$fb_form_start|replace:&quot;cms_form&quot;:&quot;hurra&quot;}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Thu, 11 Oct 2012 13:43:27 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21397#p21397</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21396#p21396</link>
			<description><![CDATA[<p>Blöde Frage: Wozu willst Du die CSS Klasse des Formulars ändern?<br />Kannst Du nicht einfach Dein CSS entsprechend anpassen?</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Thu, 11 Oct 2012 13:40:51 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21396#p21396</guid>
		</item>
		<item>
			<title><![CDATA[[GELÖST] Formbuilder: CSS-Klasse des Formulars ändern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21395#p21395</link>
			<description><![CDATA[<p>Habe zwar <a href="http://forum.cmsmadesimple.de/viewtopic.php?id=1908" rel="nofollow">dieses Thema</a> gelesen, schaffe es aber trotzdem nicht, die CSS-Klasse (Standard: <em>cms_form</em>) des Formulars zu ändern. Komme nicht an den Formularstart oder den Header ran. Wahrscheinlich wende ich <em>regex|replace</em> falsch an. Hat jemand einen Tipp?</p><p>Formbuilder-Version: 0.7.3</p>]]></description>
			<author><![CDATA[dummy@example.com (COR9)]]></author>
			<pubDate>Thu, 11 Oct 2012 13:33:24 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21395#p21395</guid>
		</item>
	</channel>
</rss>
