?>
<br/>

        <?php 
echo Helper\form_label(t('Password'), 'password');
?>
        <?php 
echo Helper\form_password('password', $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Confirmation'), 'confirmation');
?>
        <?php 
echo Helper\form_password('confirmation', $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Default Project'), 'default_project_id');
?>
        <?php 
echo Helper\form_select('default_project_id', $projects, $values, $errors);
?>
<br/>

        <?php 
if (Helper\is_admin()) {
    ?>
            <?php 
Beispiel #2
0
?>
<br/>

        <?php 
echo Helper\form_label(t('Password'), 'password');
?>
        <?php 
echo Helper\form_password('password', $values, $errors, array('required'));
?>
<br/>

        <?php 
echo Helper\form_label(t('Confirmation'), 'confirmation');
?>
        <?php 
echo Helper\form_password('confirmation', $values, $errors, array('required'));
?>
<br/>

        <?php 
echo Helper\form_label(t('Default Project'), 'default_project_id');
?>
        <?php 
echo Helper\form_select('default_project_id', $projects, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_checkbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false);
?>
Beispiel #3
0
echo Helper\form_hidden('csrf', $values);
?>

                <?php 
echo Helper\form_label(t('Username'), 'username');
?>
                <?php 
echo Helper\form_text('username', $values, $errors, array('autofocus', 'required'));
?>
<br/>

                <?php 
echo Helper\form_label(t('Password'), 'password');
?>
                <?php 
echo Helper\form_password('password', $values, $errors, array('required'));
?>

                <?php 
echo Helper\form_checkbox('remember_me', t('Remember Me'), 1);
?>
<br/>

                <?php 
if (ENABLE_MULTIPLE_DB && count($databases) > 1) {
    ?>
                <div id="database-selector">
                    <h4><?php 
    echo t('Select another database');
    ?>
</h4>
Beispiel #4
0
    <div class="options">
        <?php 
echo Helper\form_checkbox('instapaper_enabled', t('Send bookmarks to Instapaper'), 1, isset($values['instapaper_enabled']) && $values['instapaper_enabled'] == 1);
?>
<br />

        <?php 
echo Helper\form_label(t('Instapaper username'), 'instapaper_username');
?>
        <?php 
echo Helper\form_text('instapaper_username', $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Instapaper password'), 'instapaper_password');
?>
        <?php 
echo Helper\form_password('instapaper_password', $values, $errors);
?>
<br/>
    </div>
    
    <div class="form-actions">
        <input type="submit" value="<?php 
echo t('Save');
?>
" class="btn btn-blue"/>
    </div>
</form>
</section>