Jump to content

[Solved] I Tag in Label


mr.mc.mauser
 Share

Recommended Posts

Hello,

i have Build an Easy Form: (quick and dirty)

    <?php
    $modules = wire('modules');

    $form = $modules->get("InputfieldForm");

        $form->setMarkup([
        'list' => "{out}",
        'item' => "\n\t<div class='form-group' {attrs}>\n{out}\n\t</div>",
        'item_label' => "<label>{out}</label>",

        ]);
        $form->method = "POST";
        $form->action = "./";
        $form->class = "form";
        // Name field
        $singleField = $modules->get('InputfieldText');
        $singleField->placeholder = __("Test1");
        $singleField->label ="Test";
        $form->add($singleField);

        $singleField = $modules->get('InputfieldText');
        $singleField->placeholder = __("Test2");
        $form->add($singleField);

        echo $form->render();
      ?>

In the Generated HTML for my Site is in the Label Tag an I Tag ? 

<form id="InputfieldForm1" class="form InputfieldForm" method="POST" action="./" data-colspacing="1">
    <div class='form-group' class='Inputfield InputfieldText ui-widget' id='wrap_InputfieldText2'>
<label>Test<i title='Umschalten offen/geschlossen' class='toggle-icon fa fa-fw fa-angle-down' data-to='fa-angle-down fa-angle-right'></i></label><div class='InputfieldContent ui-widget-content'><input id="InputfieldText2" class="InputfieldMaxWidth" type="text" maxlength="2048" placeholder="Test1" /></div>
    </div>
    <div class='form-group' class='Inputfield InputfieldText ui-widget' id='wrap_InputfieldText3'>
<div class='InputfieldContent ui-widget-content'><input id="InputfieldText3" class="InputfieldMaxWidth" type="text" maxlength="2048" placeholder="Test2" /></div>
    </div><input type='hidden' name='TOKEN1254019649X1487174874' value='4niTWcet6wsEdi09R/hPEEiZfOIoAxLw' class='_post_token' /></form>

How i can Remove the I Tag in my Label ?
 

Greetings

Robert

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...