<commit_before>
<style type="text/css">
.list
{
    padding: 2px;
    background-color: #eee;
    margin-bottom: 10px;
    margin-left: 16px;
    width: 90%;
}
.scrolled_list
{
    height: 160px;
    overflow: auto;
}
</style>

<form method="get" id="wizard">
    <input type="button" onclick="wizard_submit('index');" value="&nbsp;&nbsp;&nbsp;Update Page&nbsp;&nbsp;&nbsp;"/>
    <h3>Information to display</h3>
    <div class="indent" id="datasource_area">
        <select name="datasource">
        <option value="">(Please Select)</option>
        <option value="summary">Virtual Organization Summary</option>
        <option value="activation">Activation Status</option>
        </select>

        <div id="summary_attrs" class="attrs indent hidden">
            <?=$this->render("vo/wizard_summary.phtml")?>
        </div>
        <div id="activation_attrs" class="attrs indent hidden">
            <?=$this->render("vo/wizard_activation.phtml")?>
        </div>
    </div>

    <div class="list_filter">

        <h3>VO to display</h3>
        <div class="indent">
            <div id="vo_area_standby">
                <p>Please select the information to display first.</p>
            </div>
            <div id="vo_area" class="hidden">
                <p>Select VO that you want to show above information (conditions are or-ed).</p>
                <?
                $checked = "";
                if(isset($_REQUEST["all_vos"])) { $checked = "checked=checked"; }
                echo "<input type=\"checkbox\" name=\"all_vos\" $checked onclick=\"if(this.checked) { disable(this);} else {enable(this);}\"/> All Virtual Organization<br/>";

                echo "<div class=\"hidden list\" id=\"all_vos_attrs\">";
                    $checked = "";
                    if(isset($_REQUEST["show_disabled"])) { $checked = "checked=checked"; }
                    echo "<input type=\"checkbox\" name=\"show_disabled\" $checked/> Show Removed Virtual Organization<br/>";
                echo "</div>";

                $model = new VirtualOrganization();
                $vos = $model->get();
                $kv = array();
                foreach($vos as $vo) { $kv[$vo->id] = array($vo->name, $vo->long_name); }
                echo fblist("vo", "Specific Virtual Organization".helpbutton("Virtual_Organization"), $kv);
                
                ?>
            </div>
        </div>

        <h3>Filter</h3>
        <div class="indent">
            <div id="filter_area_standby">
                <p>Please select the information to display first.</p>
            </div>
            <div id="filter_area" class="hidden">
                <p>Only show VO that matches following criteria (conditions are and-ed).</p>
                <?
                $kv = array();
                $kv[0] = "Inactive";
                $kv[1] = "Active";
                echo radiolist("active", "Active Status", $kv, 1); //1 by default
                ?>
            </div>
        </div>
    </div>

    <br/>
    <input type="button" onclick="wizard_submit('index');" value="&nbsp;&nbsp;&nbsp;Update Page&nbsp;&nbsp;&nbsp;"/>
    <?=$this->render("subscribe.phtml")?>

</form>

<script type="text/javascript">

function showhide_attrs(show_speed)
{
    var v = $("select[name=datasource]").val();
    $(".attrs").hide();
    if(v != "") {
        $("#"+v+"_attrs").show(show_speed);
        $("#vo_area").show(show_speed);
        $("#filter_area").show(show_speed);
        $("#vo_area_standby").hide();
        $("#filter_area_standby").hide();

        if(
            v == "foo_page_that_hasdatarange"
        ) {
            $("#_daterange_attrs").show(show_speed);
        }
    } else {
        $("#vo_area").hide();
        $("#filter_area").hide();
        $("#vo_area_standby").show();
        $("#filter_area_standby").show();
    }
    if(v == "activation") {
        $('.list_filter').hide();
    } else {
        $('.list_filter').show();
    }
}

$(document).ready(function() {

    //setup form
    $("select[name=datasource]").change(function() {
        showhide_attrs('normal');
    });

    function list_click()
    {
        $("#all_vos_attrs").hide();
        if(this.checked) { $("input[name=all_vos]").attr("checked", ""); }
    }
    var items = $("input[name=all_vos]").siblings("input");<commit_msg>Added missing daterange control to voactivation page<commit_after>
<style type="text/css">
.list
{
    padding: 2px;
    background-color: #eee;
    margin-bottom: 10px;
    margin-left: 16px;
    width: 90%;
}
.scrolled_list
{
    height: 160px;
    overflow: auto;
}
</style>

<form method="get" id="wizard">
    <input type="button" onclick="wizard_submit('index');" value="&nbsp;&nbsp;&nbsp;Update Page&nbsp;&nbsp;&nbsp;"/>
    <h3>Information to display</h3>
    <div class="indent" id="datasource_area">
        <select name="datasource">
        <option value="">(Please Select)</option>
        <option value="summary">Virtual Organization Summary</option>
        <option value="activation">Activation Status</option>
        </select>

        <div id="summary_attrs" class="attrs indent hidden">
            <?=$this->render("vo/wizard_summary.phtml")?>
        </div>
        <div id="activation_attrs" class="attrs indent hidden">
            <?=$this->render("vo/wizard_activation.phtml")?>
        </div>
        <div id="_daterange_attrs" class="attrs indent hidden">
            <?=$this->render("rg/wizard__daterange.phtml")?>
        </div>
    </div>

    <div class="list_filter">

        <h3>VO to display</h3>
        <div class="indent">
            <div id="vo_area_standby">
                <p>Please select the information to display first.</p>
            </div>
            <div id="vo_area" class="hidden">
                <p>Select VO that you want to show above information (conditions are or-ed).</p>
                <?
                $checked = "";
                if(isset($_REQUEST["all_vos"])) { $checked = "checked=checked"; }
                echo "<input type=\"checkbox\" name=\"all_vos\" $checked onclick=\"if(this.checked) { disable(this);} else {enable(this);}\"/> All Virtual Organization<br/>";

                echo "<div class=\"hidden list\" id=\"all_vos_attrs\">";
                    $checked = "";
                    if(isset($_REQUEST["show_disabled"])) { $checked = "checked=checked"; }
                    echo "<input type=\"checkbox\" name=\"show_disabled\" $checked/> Show Removed Virtual Organization<br/>";
                echo "</div>";

                $model = new VirtualOrganization();
                $vos = $model->get();
                $kv = array();
                foreach($vos as $vo) { $kv[$vo->id] = array($vo->name, $vo->long_name); }
                echo fblist("vo", "Specific Virtual Organization".helpbutton("Virtual_Organization"), $kv);
                
                ?>
            </div>
        </div>

        <h3>Filter</h3>
        <div class="indent">
            <div id="filter_area_standby">
                <p>Please select the information to display first.</p>
            </div>
            <div id="filter_area" class="hidden">
                <p>Only show VO that matches following criteria (conditions are and-ed).</p>
                <?
                $kv = array();
                $kv[0] = "Inactive";
                $kv[1] = "Active";
                echo radiolist("active", "Active Status", $kv, 1); //1 by default
                ?>
            </div>
        </div>
    </div>

    <br/>
    <input type="button" onclick="wizard_submit('index');" value="&nbsp;&nbsp;&nbsp;Update Page&nbsp;&nbsp;&nbsp;"/>
    <?=$this->render("subscribe.phtml")?>

</form>

<script type="text/javascript">

function showhide_attrs(show_speed)
{
    var v = $("select[name=datasource]").val();
    $(".attrs").hide();
    if(v != "") {
        $("#"+v+"_attrs").show(show_speed);
        $("#vo_area").show(show_speed);
        $("#filter_area").show(show_speed);
        $("#vo_area_standby").hide();
        $("#filter_area_standby").hide();
        if(v == "activation") {
            $("#_daterange_attrs").show(show_speed);
        }
    } else {
        $("#vo_area").hide();
        $("#filter_area").hide();
        $("#vo_area_standby").show();
        $("#filter_area_standby").show();
    }
    if(v == "activation") {
        $('.list_filter').hide();
    } else {
        $('.list_filter').show();
    }
}

$(document).ready(function() {

    //setup form
    $("select[name=datasource]").change(function() {
        showhide_attrs('normal');
    });

    function list_click()
    {
        $("#all_vos_attrs").hide();
        if(this.checked) { $("input[name=all_vos]").attr("checked", ""); }
    }
    var items = $("input[name=all_vos]").siblings("input");
{'fraction_non_alphanumeric': 0.18710191082802546, 'fraction_numerical': 0.004549590536851683, 'mean_word_length': 2.19397021431166, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 0, '>': 143, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1343692', 'n_tokens_mistral': 2693, 'n_tokens_neox': 2605, 'n_words': 499}