PHP Classes

File: view/melis-templating-plugin-creator/templating-plugin-creator/partial/render-step3.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Templating Plugin Creator   view/melis-templating-plugin-creator/templating-plugin-creator/partial/render-step3.phtml   Download  
File: view/melis-templating-plugin-creator/templating-plugin-creator/partial/render-step3.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis Templating Plugin Creator
Create page template plugins for the Melis CMS
Author: By
Last change:
Date: 1 year ago
Size: 2,098 bytes
 

Contents

Class file image Download
<div class="col-md-12">
    <?php
        $form
= $this->stepForm['form1'];
       
$form->prepare();
        echo
$this->form()->openTag($form);
   
        foreach (
$form->getElements() As $key => $val) { ?>
            <div class="form-group">
                <?php $required = '';
                if (!empty(
$val->getAttribute('required'))) {
                   
$required = '<sup>*</sup>';
                }
               
?>

                <label class="d-flex flex-row justify-content-between" for="<?=$key?>">
                    <div class="label-text"><?=$val->getLabel().$required?></div>
                    <?php
                       
if (!empty($val->getOptions()['tooltip'])) { ?>
<div class="slider-open-tooltip">
                                 <i class="fa fa-info-circle fa-lg float-right tip-info" data-toggle="tooltip" data-placement="left" title="" data-original-title="<?= $this->translate($val->getOptions()['tooltip'])?>"></i>
                            </div>
                    <?php }
                   
?>
                </label>
                                 
                <div class = "form-group input-group">
                    <input class="<?=$val->getAttribute('class')?>" type="<?=$val->getAttribute('type')?>" id="<?=$key?>" name="<?=$key?>" required="required" value="<?=$val->getValue()?>">
                </div>
            </div>
    <?php }//end first foreach

   
echo $this->form()->closeTag();
?>

    <div id='field-form-div' class="tab-pane active">
        <?php
           
if (!empty($this->stepForm['fieldForm'])) {
                echo
$this->partial('melis-templating-plugin-creator/partial/field-form', array(
                   
'fieldFormArr' => $this->stepForm['fieldForm']
                ));
            }
       
?>
</div>
</div>

<script>
    fieldFormInit();
    widgetCollapsibleInitTemplating();
</script>