Marius Cramer
2014-12-19 825dd6792d2d46b7d97e1f1626a9071382977cd2
interface/web/tools/templates/import_ispconfig.htm
@@ -1,82 +1,84 @@
<h2><tmpl_var name="head_txt"></h2>
<div class='page-header'>
   <h1><tmpl_var name="head_txt"></h1>
</div>
<p><tmpl_var name="list_desc_txt"></p>
<div class="panel panel_language_import">
  
    <div class="pnl_formsarea">
        <fieldset class="inlineLabels"><legend>{tmpl_var name="legend_txt"}</legend>
            <div class="ctrlHolder">
                <p class="label">Remote API URL</p>
                <div class="multiField">
                    <input id="remote_server" type="text" value="{tmpl_var name='remote_server'}" name="remote_server" /> (e.g. https://www.example.com:8080/remote/ )
                </div>
        <legend>{tmpl_var name="legend_txt"}</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">Remote API URL</label>
                <div class="col-sm-9">
                    <div class="col-sm-9"><input type="text" id="remote_server" value="{tmpl_var name='remote_server'}" name="remote_server" /> (e.g. https://www.example.com:8080/remote/ )
                </div></div>
            </div>
            <div class="ctrlHolder">
                <p class="label">Remote User</p>
                <div class="multiField">
                    <input id="remote_user" type="text" value="{tmpl_var name='remote_user'}" name="remote_user" />
                </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">Remote User</label>
                <div class="col-sm-9">
                    <div class="col-sm-9"><input type="text" id="remote_user" value="{tmpl_var name='remote_user'}" name="remote_user" />
                </div></div>
            </div>
            <div class="ctrlHolder">
                <p class="label">Remote password</p>
                <div class="multiField">
                    <input id="remote_password" type="text" value="{tmpl_var name='remote_password'}" name="remote_password" />
                </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">Remote password</label>
                <div class="col-sm-9">
                    <div class="col-sm-9"><input type="text" id="remote_password" value="{tmpl_var name='remote_password'}" name="remote_password" />
                </div></div>
            </div>
        </fieldset>
    </div>
    <tmpl_if name="connected">
        <div class="pnl_formsarea">
            <fieldset class="inlineLabels"><legend>{tmpl_var name="legend2_txt"}</legend>
                <div class="ctrlHolder">
                    <label for="mail_domain">{tmpl_var name='mail_domain_txt'}</label>
                    <select name="mail_domain" id="mail_domain" class="selectInput">
            <legend>{tmpl_var name="legend2_txt"}</legend>
                <div class="form-group">
                    <label for="mail_domain" class="col-sm-3 control-label">{tmpl_var name='mail_domain_txt'}</label>
                    <div class="col-sm-9"><select name="mail_domain" id="mail_domain" class="form-control">
                        {tmpl_var name='mail_domain'}
                    </select>
                </div>
                <div class="ctrlHolder">
                    <label for="client_group_id">{tmpl_var name='client_group_id_txt'}</label>
                    <select name="client_group_id" id="client_group_id" class="selectInput">
                </div></div>
                <div class="form-group">
                    <label for="client_group_id" class="col-sm-3 control-label">{tmpl_var name='client_group_id_txt'}</label>
                    <div class="col-sm-9"><select name="client_group_id" id="client_group_id" class="form-control">
                        {tmpl_var name='client_group_id'}
                    </select>
                </div></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">{tmpl_var name="import_mailbox_txt"}</label>
                    <div class="col-sm-9">
                        <div class="col-sm-9"><input type="checkbox" id="import_mailbox" value="1" name="import_mailbox" checked="checked" />
                    </div></div>
                </div>
                <div class="ctrlHolder">
                    <p class="label">{tmpl_var name="import_mailbox_txt"}</p>
                    <div class="multiField">
                        <input id="import_mailbox" type="checkbox" value="1" name="import_mailbox" checked="checked" />
                    </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">{tmpl_var name="import_user_filter_txt"}</label>
                    <div class="col-sm-9">
                        <div class="col-sm-9"><input type="checkbox" id="import_user_filter" value="1" name="import_user_filter" checked="checked" />
                    </div></div>
                </div>
                <div class="ctrlHolder">
                    <p class="label">{tmpl_var name="import_user_filter_txt"}</p>
                    <div class="multiField">
                        <input id="import_user_filter" type="checkbox" value="1" name="import_user_filter" checked="checked" />
                    </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">{tmpl_var name="import_spamfilter_txt"}</label>
                    <div class="col-sm-9">
                        <div class="col-sm-9"><input type="checkbox" id="import_spamfilter" value="1" name="import_spamfilter" checked="checked" />
                    </div></div>
                </div>
                <div class="ctrlHolder">
                    <p class="label">{tmpl_var name="import_spamfilter_txt"}</p>
                    <div class="multiField">
                        <input id="import_spamfilter" type="checkbox" value="1" name="import_spamfilter" checked="checked" />
                    </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">{tmpl_var name="import_alias_txt"}</label>
                    <div class="col-sm-9">
                        <div class="col-sm-9"><input type="checkbox" id="import_alias" value="1" name="import_alias" checked="checked" />
                    </div></div>
                </div>
                <div class="ctrlHolder">
                    <p class="label">{tmpl_var name="import_alias_txt"}</p>
                    <div class="multiField">
                        <input id="import_alias" type="checkbox" value="1" name="import_alias" checked="checked" />
                    </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">{tmpl_var name="import_forward_txt"}</label>
                    <div class="col-sm-9">
                        <div class="col-sm-9"><input type="checkbox" id="import_forward" value="1" name="import_forward" checked="checked" />
                    </div></div>
                </div>
                <div class="ctrlHolder">
                    <p class="label">{tmpl_var name="import_forward_txt"}</p>
                    <div class="multiField">
                        <input id="import_forward" type="checkbox" value="1" name="import_forward" checked="checked" />
                    </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">{tmpl_var name="import_aliasdomain_txt"}</label>
                    <div class="col-sm-9">
                        <div class="col-sm-9"><input type="checkbox" id="import_aliasdomain" value="1" name="import_aliasdomain" checked="checked" />
                    </div></div>
                </div>
                <div class="ctrlHolder">
                    <p class="label">{tmpl_var name="import_aliasdomain_txt"}</p>
                    <div class="multiField">
                        <input id="import_aliasdomain" type="checkbox" value="1" name="import_aliasdomain" checked="checked" />
                    </div>
                </div>
            </fieldset>
        </div>
    </tmpl_if>
    
@@ -90,14 +92,14 @@
    <input type="hidden" name="remote_session_id" value="{tmpl_var name='remote_session_id'}">
    <input type="hidden" name="connected" value="{tmpl_var name='connected'}">
    <tmpl_if name="connected">
        <div class="buttonHolder buttons">
            <button class="positive iconstxt icoPositive" type="button" value="Import" onClick="submitForm('pageForm','tools/import_ispconfig.php');"><span>{tmpl_var name="btn_start_txt"}</span></button>
            <button class="negative iconstxt icoNegative" type="button" value="Cancel" onClick="loadContent('tools/index.php');"><span>{tmpl_var name="btn_cancel_txt"}</span></button>
        </div>
        <div class="clear"><div class="right">
            <button class="btn btn-default formbutton-default" type="button" value="Import" onClick="submitForm('pageForm','tools/import_ispconfig.php');">{tmpl_var name="btn_start_txt"}</button>
            <button class="negative iconstxt icoNegative" type="button" value="Cancel" data-load-content="tools/index.php"><span>{tmpl_var name="btn_cancel_txt"}</span></button>
        </div></div>
    <tmpl_else>
        <div class="buttonHolder buttons">
            <button class="positive iconstxt icoPositive" type="button" value="Import" onClick="submitForm('pageForm','tools/import_ispconfig.php');"><span>{tmpl_var name="btn_connect_txt"}</span></button>
            <button class="negative iconstxt icoNegative" type="button" value="Cancel" onClick="loadContent('tools/index.php');"><span>{tmpl_var name="btn_cancel_txt"}</span></button>
        </div>
        <div class="clear"><div class="right">
            <button class="btn btn-default formbutton-default" type="button" value="Import" onClick="submitForm('pageForm','tools/import_ispconfig.php');">{tmpl_var name="btn_connect_txt"}</button>
            <button class="negative iconstxt icoNegative" type="button" value="Cancel" data-load-content="tools/index.php"><span>{tmpl_var name="btn_cancel_txt"}</span></button>
        </div></div>
    </tmpl_if>
  </div>