Exemple #1
0
FHtml::hightlightErrorFields();
$user->scenario = 'editAccount';
if (isset($errors)) {
    echo FHtml::showErrors($errors);
}
if (isset($message)) {
    echo '<div style="font-weight: bold; padding-left: 165px;">' . $message . '</div>';
}
?>
        <div class="Input">
            <?php 
echo FHtml::activeHiddenField($user, 'Id');
?>
            <label for="User_Username">Username</label>
            <span style="line-height: 20px; font-weight: bold;margin: 3px 5px 0px 0px; background-color: none; display: block;"><?php 
echo FHtml::encode($user->Username);
?>
</span>
            <?php 
echo FHtml::activeHiddenField($user, 'Username');
?>
        </div>
        <div class="Input">
            <label for="User_FirstName">First name</label>
            <?php 
echo FHtml::activeTextField($user, 'FirstName', array('class' => 'text'));
?>
        </div>
        <div class="Input">
            <label for="User_LastName">Last name</label>
            <?php 
Exemple #2
0
    echo 'Edit ';
}
?>
Module</h2>
<?php 
if (!empty($module)) {
    echo FHtml::beginForm(array('/Core/modules/save'), 'post', array('id' => 'FormModuleEdit'));
    FHtml::hightlightErrorFields();
    ?>
<div class="Input">
    <label>Name: (*)</label>
    <?php 
    if ($module->IsNewRecord) {
        echo FHtml::activeTextField($module, 'Name');
    } else {
        echo FHtml::encode($module->Name);
        echo FHtml::activeHiddenField($module, 'Name');
    }
    ?>
</div>

<div class="Input">
    <label>Title:</label>
    <?php 
    echo FHtml::activeTextField($module, 'Title');
    ?>
</div>

<div class="Input">
    <label>Enabled: (*)</label>
    <div class="radio-list">